View Full Version : Complex BB Code Creation - including conditions
jezza101
08-09-2010, 09:42 AM
The custom bb code admin panel is easy to use, however is it possible to create more complicated bb codes that use PHP?
I am replicating a bb code plugin from my previous forum software that used php to manipulate the {param} string, and a second one that made a db call.
What is the best way to implement bb codes like this?
Many thanks.
BirdOPrey5
08-09-2010, 04:00 PM
You can't use 'real' bb codes to do anything with PHP or the Database. That said people have released products like the [you] hack or the [table] bb code that LOOK LIKE bb code to the users but are actually full products with plugins.
jezza101
08-10-2010, 08:30 AM
Thanks for the reply, having spent some time yesterday downloading other bb code plugins (including the table one) I had reached the same conclusion.
I guess I am a bit disappointed as other forum software I have used have allowed us to easily create rich functional bb codes and I was under the impression vBulletin had everything covered.
Still, it looks like what I want to do will be possible by creating a plugin that acts on the right hooks, it just means that I've got to work out how to parse the input correctly and work out which hooks to hook into!
Unfortunately other authors don't seem to agree on which hooks need to be used, so far i've found bb code plugins that use:
postbit_display_complete
newpost_preview
printthread_post
newreply_form_reviewbit
BirdOPrey5
08-10-2010, 09:15 AM
I've heard that if you use global_start it should work everywhere, there is another [you] hack that only uses that hook- at least that is what i was told once, never confirmed it but it made sense.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.