The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Automatically Post an Image When Thread Closed?
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
|
|||
|
|||
So what would the exact code be and what would be the best way to do this?
|
#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:
|