The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditionals
Hi,
i have searched but cannot find the conditional to do the following:- Show an ad after the last post AND also only if there is more than one reply to the thread. Could anyone help me with this? Thanks TIm |
#2
|
||||
|
||||
What template are you putting the condition in? If the postbit/_legacy, then I think the variables are $post['postid'] (you want that to not be 1) and $post['islastshown']. So, something like:
HTML Code:
<vb:if condition="$post['islastshown'] AND $post['postcount'] != 1">stuff</vb:if> |
#3
|
|||
|
|||
Thx Lynne, I did try that but alas it does not seem to have an affect! I also tried maxposts but to no avail :-(
|
#4
|
||||
|
||||
I tried it on my site and it worked just fine. Exactly where are you putting it and can we have a link to a page where it should show up.
|
#5
|
|||
|
|||
Hi Lynne, I am putting the code right at the bottom of the postbit legacy template.
An example of a thread with no posts is here.. http://www.tacklebox.com.au/forums/f...ir-travel.html I also have another conditional to show the ads after the first post which uses the following: PHP Code:
|
#6
|
||||
|
||||
Whoops, I'm sorry. I had first written $post['postid'] before doing it on my site and figuring out it was actually $post['postcount']
HTML Code:
<vb:if condition="$post['islastshown'] AND $post['postcount'] != 1">stuff</vb:if> |
#7
|
|||
|
|||
Wonderful Lynne - you rock! Now to start annew thread on my second problem!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|