Hello, I'm running vb 3.7 and I've used this code to display specific ads for specific thread:
Code:
<if condition="$thread['threadid'] == '12345'">Specific Ad for Thread #12345
<else/>
Generic Ad
</if>
but if I use this conditional into the SHOWTHREAD template everything works well.
I need to get work thi conditional into a custom template called by SHOWTHREAD template,
so I've inserted into SHOWTHREAD template this:
, I've create the "showthread_specads" custom template,
and this plugin:
Product:Vbulletin
Name: showthread_specads
Code:
Quote:
eval('$specads = "' . fetch_template('showthread_specads') . '";');
|
My custom template is called normally by showthread but if I insert into it the same conditional I've used for SHOWTHREAD template, the conditional don't work .
I suppose there 's something to change here :
Code:
<if condition="$thread['threadid'] == '12345'">Specific Ad for Thread #12345
<else/>
Generic Ad
</if>
but I don't know what.
Does anyone could help me ,please?