Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: peterwaalker on January 27, 2014, 08:36:38 AM

Title: Thread Closed stamp
Post by: peterwaalker on January 27, 2014, 08:36:38 AM
Helo,
Please i want to know whether there is any mod package that will give me what i want.
I want a picture of thread closed to show up whenever i lock a topic. thanks

See attachment below
Title: Re: Thread Closed stamp
Post by: Gary on January 27, 2014, 09:52:30 AM
A locked icon will appear against the topic when viewing all of the topics in the list. Wouldn't that be enough?
Title: Re: Thread Closed stamp
Post by: margarett on January 27, 2014, 10:13:57 AM
http://custom.simplemachines.org/mods/index.php?mod=1177

On the message body, put your image in.
Title: Re: Thread Closed stamp
Post by: peterwaalker on February 05, 2014, 07:46:25 AM
Quote from: margarett on January 27, 2014, 10:13:57 AM
http://custom.simplemachines.org/mods/index.php?mod=1177

On the message body, put your image in.

I tried to put the image in the message field
e.g (http://www.xxxxxxxx.com/themes/xxxx/images/img/threadclosed.png) but it refused to show-up when the thread is locked.
Any other solution?
Thanks...

Title: Re: Thread Closed stamp
Post by: margarett on February 05, 2014, 09:20:15 AM
That's one of those "ask in the topic support topic" questions ;)

Anyway, since we're here already :P
I tried and it worked. I put the lock image in "Themes/default/images/thread_closed.jpg"
Look at the attachment, you'll see I put the BBC image code with my local URL for it. The image shows as expected.

You can even automate it more by editing Modifications.english.php and find:
$txt['topicLocked'] = 'Topic Locked!';
Replace with:
$txt['topicLocked'] = '[img]http://localhost/smf2/Themes/default/images/thread_closed.jpg[/img]';
(of course, adjust the image URL with your own)

And then it will show up automatically in the "reason" window.