View Full Version : Displaying a banner after last post in a thread!
contactsonia
04-13-2005, 06:10 AM
I have read about How To Show A Banner After The First Post In A Thread (http://www.vbulletin.com/forum/showthread.php?t=123281) but I could not find a way how to display a banner after last post in a thread. Could you please help me in that?
Any help will be highly appricated!
manguish
04-13-2005, 06:25 AM
The second post in that same thread answers your question.
You'll have your forum set to display X many posts per page - just substitute the 1 for however many posts you are displaying.
contactsonia
04-13-2005, 06:38 AM
But I donno how many replies are in a particular thread. For example, suppose there are 13 replies in a thread. So I would like to display banner after 13th post.
I need to know the variable name which holds the count of total posts in a thread.
manguish
04-13-2005, 08:59 AM
Ah - sorry.
Try this :
<if condition="$post['postid'] == $thread['lastpostid']">
Your Banner Code Goes Here
</if>
contactsonia
04-13-2005, 09:48 AM
Thanks for your help :)
I tried this and it worked.
<if condition="$post['islastshown']">
I am sure that your code will also work.
manguish
04-13-2005, 12:22 PM
No worries - just glad you got sorted ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.