ThePimp
02-10-2006, 08:10 PM
Here's what I'm trying to do in the threadbit template:
<if condition="SOME CODE TO GENERATE A RANDOM CHANCE 1:50">
<if condition="$show['gotonewpost']">
<strong><a href="SPONSOR URL" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a href="SPONSOR URL" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
<else />
<if condition="$show['gotonewpost']">
<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
</if>
In essence, I want to show a sponsor's blind link in place of the thread URL on a 1:50 chance. I'm not really sure of the most efficient way, or how to carry this objective out.
Pleeease help.
Thank you.
<if condition="SOME CODE TO GENERATE A RANDOM CHANCE 1:50">
<if condition="$show['gotonewpost']">
<strong><a href="SPONSOR URL" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a href="SPONSOR URL" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
<else />
<if condition="$show['gotonewpost']">
<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
</if>
In essence, I want to show a sponsor's blind link in place of the thread URL on a 1:50 chance. I'm not really sure of the most efficient way, or how to carry this objective out.
Pleeease help.
Thank you.