The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Is there a way that I can get VB to automatically post and image when a thread is closed?
IE: Either have it auto post [the closed thread image] in a post after any mod or admin close the topic or have the mod or admin post [closed1] or something in the last post and then close it so the image shows? |
|
#2
|
|||
|
|||
|
You can create a simple bbcode to use.
|
|
#3
|
||||
|
||||
|
Or you could edit the postbit template and add this in below where the message is inserted:
Code:
<vb:if condition="$show['closethread']"><img src="images/myimage.png" alt="Closed Thread"/></vb:if>
|
|
#4
|
||||
|
||||
|
Except Michael, I think that would add the image to every single post. So, you'd want to add in "AND $post['islastshown']" into the condition.
Alternately, do something similar in the SHOWTHREAD template. |
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
||||
|
||||
|
If you put it in the postbit, then you would use something like:
HTML Code:
<vb:if condition="$show['closethread'] AND $post['islastshown']"><img src="images/myimage.png" alt="Closed Thread"/></vb:if> |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|