How to make a change

draque

New Member
When i close a thread i whant to put automatic in first post a image with this.

closed10.gif


Thanks. Anyoane help me ?
 
In postbit and postbit_legacy template find:
PHP:
$post[message]
and add this below:
PHP:
<if condition="!$show['closethread'] AND !$GLOBALS['FIRSTPOSTID']"><img src="http://i48.servimg.com/u/f48/11/98/66/29/closed10.gif" /></if>
 
How to make it in the last post of the thread?

mq4u9.png


Like, in the bottom post, not the top one, that way, if I'm the admin and lock it cos of flaming, it would be more efficient.
 
draque said:
Man. it's not work. He put the image for all posts and the thread with are not closed.

This has been tested and actually running on my own forum, if it did not work for you then YOU did something wrong while adding it!...and as you can see from the screenshot above it works for others!

@mmmxiv: Not sure if that can be done, I haven't heard of an if "lastpost" conditional, why not create a bbcode that will add the image when you reply to thread saying its being closed....

Title: Closed
BB Code Tag Name: closed
Replacement:
Code:
<img src="path/to/image/{param}" />
Example:
Code:
[closed]closed.gif[/closed]
Description: Adds closed image to post.
Use {option}: No
Button Image: No (this way only you and staff know it exists)
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: No
 
Yes but i want to put automatically on forum when i close the thread.

This code
Code:
<if condition="!$show['closethread'] AND !$GLOBALS['FIRSTPOSTID']"><img src="http://i48.servimg.com/u/f48/11/98/66/29/closed10.gif" /></if>

I put in postbit_legacy but the image show in all thread. Show in thread who are not closed yet.
 
I have done this, draque, and it worked for me, look back at your steps, cos you have to be doing SOMETHING wrong mate. look at my screenie, thats legacy too, and it's working, proof.

@Hoxxy - The BBCode will be able to be used by all though, which is why it is so convient to put it into the templates.

I do know that if there is no button, only staff and I know it is there, but I have made my BBCode list public, so people could see what does what.

Unless there is a mod which disallows certain users using a certain BBCode?
 
I appologise it seems the above code I gave is not working properly and so I will look into it more as I would like this feature also ;)

@mmmxiv:
About this hack:
This hack will give you advanced control on BBCode. You will be able to define for each usergroup what BBCode they may or may not use. This hack works for both standard AND custom BB code!

Note:
I got this from vb.org 3.6.x section and havent tested it so possibly may have security token errors
 
Hoxxy why my picture "thread closed" see when the thread is open ?

I have put in posbit_legacy this code.
Code:
<if condition="!$show['closethread'] AND !$GLOBALS['FIRSTPOSTID']"><img src="http://i48.servimg.com/u/f48/11/98/66/29/closed10.gif" /></if>

Yes but i want to put the picture automatically on forum when i close the thread.
 
Hoxxy why my picture "thread closed" see when the thread is open ?

I have put in posbit_legacy this code.
Code:
<if condition="!$show['closethread'] AND !$GLOBALS['FIRSTPOSTID']"><img src="http://i48.servimg.com/u/f48/11/98/66/29/closed10.gif" /></if>

Yes but i want to put the picture automatically on forum when i close the thread.
 
Back
Top