PDA

View Full Version : Automatically Post an Image When Thread Closed?


cleaningh89ss
09-04-2011, 05:45 PM
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?

BSMedia
09-04-2011, 07:41 PM
You can create a simple bbcode to use.

TheLastSuperman
09-05-2011, 12:14 AM
Or you could edit the postbit template and add this in below where the message is inserted:

<vb:if condition="$show['closethread']"><img src="images/myimage.png" alt="Closed Thread"/></vb:if>

:cool:

Lynne
09-05-2011, 03:31 PM
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.

cleaningh89ss
09-05-2011, 06:58 PM
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.

So what would the exact code be and what would be the best way to do this? :eek:

Lynne
09-05-2011, 10:10 PM
If you put it in the postbit, then you would use something like:
<vb:if condition="$show['closethread'] AND $post['islastshown']"><img src="images/myimage.png" alt="Closed Thread"/></vb:if>
Without an image showing exactly what you want, it's hard to just guess as this.