![]() |
Custom HTML not accepting vb conditions
1 Attachment(s)
I've made a setting in forum manager which adds an extra option to add custom html to each forum.
my problem is when i use if conditions EXAMPLE: Code:
<if condition="THIS_SCRIPT == 'showthread">showthread</if> I created the row Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD (bannercode TEXT NOT NULL DEFAULT '')"); Code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"> Code:
if (THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread'){ |
May be this
Code:
<if condition="THIS_SCRIPT == showthread">showthread</if> |
Quote:
I think it has something to do with the way the data is used from the DB but Im at a loss right now. |
I did come up with a workaround by creating 2 separate options within the forum manager, one for forumdisplay, and one for showthread, but I really do need some help getting these to both be within one option.
|
I have been using Add banner above forum
It allows you to add html per forum and still works with 3.8 |
1 Attachment(s)
Quote:
Code:
<if condition="THIS_SCRIPT == showthread">showthread</if> Glad to see your still around eddie =) |
Your trying to add the if conditions as the custom html but it's basicly seen as php and will not render meaning all it spits out is the html/text.
My suggestion would be to maybe just double up i.e create 2 sets of options 1 for showthread and 1 for forumdisplay rather then if else as it currently is, then have an enable/disable option for each. |
All times are GMT. The time now is 02:09 AM. |
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:
|