how does bbcode parsing work?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
jackqu7
Registered User
Posts: 97
Joined: Wed Jan 02, 2002 12:01 pm

how does bbcode parsing work?

Post by jackqu7 »

hi,
I'm pretty new to php, and I was wondering how you guys parse bbcode and how you extract variables (like what URL to make an anchor too).
I've tried looking at the code but it seems kinda strange! and also it didn't work when I tried it in a separate file.
thanks to any one who can enlighten me on this subject, :D
jack

nathan
Former Team Member
Posts: 126
Joined: Mon Aug 06, 2001 7:58 pm
Location: Victoria, BC, Canada

Post by nathan »

Nathan Codding
old-school phpBB developer
Image

jackqu7
Registered User
Posts: 97
Joined: Wed Jan 02, 2002 12:01 pm

Post by jackqu7 »

i've looked at that post before, it tells me how you nest the tags etc, but I was wondering how the actual working out if theres a tag there and what it does works.
sorry if it's a bit out of scope and thanks for any further assistance,
jack

nathan
Former Team Member
Posts: 126
Joined: Mon Aug 06, 2001 7:58 pm
Location: Victoria, BC, Canada

Post by nathan »

Yeah, it's a bit out of scope. The code's not _that_ hardcore, once you understand the roles of the two different passes we make.
Nathan Codding
old-school phpBB developer
Image

Locked

Return to “2.0.x Support Forum”