![]() |
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?
|
Can't you just check the post contents before it's parsed by the BBCode parser? Use the strpos function to check for "[BBCODE".
|
got to thinking on this, first thing that pops into my head is something like:
Code:
$var = $this->post['message']; 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. |
Why assign it to $var ?
Just use PHP Code:
|
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) { |
All times are GMT. The time now is 02:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|