The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
If bbcode exists in post show something on showthread
I am trying to show a section on the showthread page only if a specific bbcode was used, is there any way to accomplish this?
|
#2
|
|||
|
|||
Can't you just check the post contents before it's parsed by the BBCode parser? Use the strpos function to check for "[BBCODE".
|
#3
|
||||
|
||||
got to thinking on this, first thing that pops into my head is something like:
Code:
$var = $this->post['message']; if (strpos($var, '[BBCODENAME]') !== false) { STUFF } so say the tabs are MAIN POST, BBCODE1, BBCODE2 so bbcode1 and 2 content would only show within the tabbed page, I'm over complicating it... I may have to stick to the original way I was doing this, and not use it as a bbcode. |
#4
|
||||
|
||||
Why assign it to $var ?
Just use PHP Code:
|
#5
|
||||
|
||||
That works a lot nicer but still doesn't allow me to quite get the end result I'm looking for.
As for the { Just my typing style Code:
If (this) { This stuff } else { That stuff } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|