The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have read about How To Show A Banner After The First Post In A Thread 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! |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Ah - sorry.
Try this : Code:
<if condition="$post['postid'] == $thread['lastpostid']"> Your Banner Code Goes Here </if> |
|
#5
|
|||
|
|||
|
Thanks for your help
![]() I tried this and it worked. <if condition="$post['islastshown']"> I am sure that your code will also work. |
|
#6
|
|||
|
|||
|
No worries - just glad you got sorted
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|