The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional BBCODES
Hello all,
Thanks for the help upfront. I was hoping to do a bbcode that allowed me to put some sort of conditional statement as to what the user inputs, however after searching for awhile it looks like conditional statements are not allowed in bbcode using bulletin 4.0. This leaves me to believe it can be achieved via vBcode, however i'm not sure where to start. What i'm looking to do is have the same function as a bbcode but with conditional statements (with a button added to the editor, etc.). Could someone point me in the right direction on how I would go about doing that. Thanks so much, Brad |
#2
|
|||
|
|||
Yeah, conditionals aren't allowed, and if they were they probably wouldn't work like you'd expect because of post caching. The message text (and bbcode) is processed and saved so it doesn't have to be done every time someone views a post. But what you can do is fake it by writing a plugin and doing your own processing (like a str_replace()) on the message text before it's displayed (and that's obviously going to add some overhead). Also, you'd be on your own for providing a button in the editor.
What do you mean by "as to what the user inputs"? What input did you want to check exactly? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|