![]() |
Plugin problem
I got in plugin code:
$content = "<if condition=\"THIS_SCRIPT != 'adv_index'\">something</if>"; $vbulletin->templatecache['headinclude'] = $vbulletin->templatecache['headinclude'] . fetch_template('my_template'); eval('$vbulletin->templatecache[\'headinclude\']'); and in my_template I have: $content and unfortunately in page source I see those ifs.... I should see only "something" if I'm on adv_index without those ifs. <if condition="THIS_SCRIPT != 'adv_index'">something</if> Anyone any idea how to do that ? I cant place those ifs in template... Is this doable? How? |
I don't know if there's a way to do that in a template, that's an interesting question.
But I think you'd just need: Code:
if (THIS_SCRIPT != 'adv_index') ETA:...or maybe Code:
$content = (THIS_SCRIPT != 'adv_index') ? somthing : ''; |
All times are GMT. The time now is 04:13 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:
|