The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is there anyway to tell if a thread is sticky, from showthread.php, without any additional queries?
I have some adsense ads in my first and last postbit. I want to disable those ads if the thread is 'stuck'. EDIT I figured it out. I can't believe I didn't think of this before I posted... Altered the showthread.php url in the threadbit template (if condition)... Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]<if condition="$show['sticky']">&st=1</if> Code:
<if condition="(($post[postcount]==1 and $issticky!=1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))"> Code:
if ($_GET[st] ==1) { $issticky = 1; } |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|