The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Custom HTML not accepting vb conditions
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> <if condition="THIS_SCRIPT == 'forumdisplay">forumdisplay</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']"> <center> <a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a> </center> <br /> <else /> <if condition="$foruminfo['banner']"> <center> <img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /> </center> <br /> <else /> <if condition="$foruminfo['bannercode']"> <center> $foruminfo[bannercode] </center> <br /> </if> </if> </if> Code:
if (THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread'){ if (THIS_SCRIPT == 'forumdisplay'){ $search_text = '$navbar'; $vbulletin->templatecache['FORUMDISPLAY'] = str_replace($search_text, $search_text.fetch_template('add_banner'), $vbulletin->templatecache['FORUMDISPLAY']); }else{ if ($foruminfo['bannerthread'] == '1'){ $search_text = '$navbar'; $vbulletin->templatecache['SHOWTHREAD'] = str_replace($search_text, $search_text.fetch_template('add_banner'), $vbulletin->templatecache['SHOWTHREAD']); } } eval('$add_banner = "' . fetch_template('add_banner') . '";'); } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|