![]() |
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 |
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> |
Thx Lynne, I did try that but alas it does not seem to have an affect! I also tried maxposts but to no avail :-(
|
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.
|
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:
|
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> |
Wonderful Lynne - you rock! Now to start annew thread on my second problem!
|
All times are GMT. The time now is 09:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|