Please help me with a conditional that will only show code if the editpost.php is firstpost
Need conditional please!!!
|
2014-01-11, 08:59 PM
What kind of code do you want to show? You can use the approach that I described (check if Post_id can be found as firstpost in _threads), but the actual way of "showing" code depends on where you want to show it.
I am adding a text code just above the subject simple <td></td> editpost template
This ain't working it hides the code
I am not sure how and where $script is defined. If those are from the plug-in which handles some bb code then you might not have globalized them so they are "locked" in the function. Add global $script, $firstspot to that and try if that works.
I am not sure how that plug-in (php in template?) works either.
2014-01-11, 09:27 PM
I am using templates conditionals plugin that allows you to add conditionals directly into the template
2014-01-12, 04:19 AM
Make sure to make the $script and $firstpost variable global in the function (I assume that it is the plug-in that we have built for some formatting BB-code like functionality).
This might work, depending on how the conditionals plugin works and when/how often is the template code rebuilt.
2014-01-12, 11:35 AM
Thank buddy very much I really appreciate all your help.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)