The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Impossible to be sure without some sort of context.
What code is around it, where have you actually put this ? |
#12
|
|||
|
|||
I have this at the end of the postbit legacy template. I'm trying to get an ad to show every x number of posts.
|
#13
|
||||
|
||||
I just added this code to the very end of my postbit_legacy template and it shows after post 5, 10, 15, and 20 (other than the formatting being bad):
HTML Code:
<vb:if condition="(THIS_SCRIPT == 'showthread') AND (($post['postcount'] % 5) == 0)"> <div class="attachments" align=center> This is a test. </div> </vb:if> |
#14
|
|||
|
|||
Thank you Lynne. It works by itself but when I combine it with another conditional to only shoe the ad in specific forums it only shows the ad once:
Code:
<vb:if condition="(THIS_SCRIPT == 'showthread') AND (($post['postcount'] % 5) == 0) AND in_array($GLOBALS['forumid'], array(419,232))"> |
#15
|
||||
|
||||
How about you post the full code you are using.
First you post some snippet and claim it doesnt work (when it looks fine). Lynne uses that exact same code, which works, and now suddenly it works for you ? Except you now you claim some other code doesnt work (which again, on the face of it, looks fine). We cannot help you if you dont give us all the information. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|