• Welcome to Simple Machines Community Forum. Please login or sign up.
October 24, 2021, 12:18:57 AM

News:

Join the Facebook Fan Page.


Topic Locked Message

Started by vbgamer45, May 06, 2008, 06:40:10 PM

Previous topic - Next topic

vbgamer45

May 06, 2008, 06:40:10 PM Last Edit: May 20, 2008, 03:14:12 AM by [SiNaN]
Link to Mod

Topic Locked Message


Original Author: [SiNaN]
Previous Authors: live627
SMF Version: 2.0.X
Mod Version: 2.2

Description:
This mod adds a message to locked topics. When you click the Lock Topic tab, you then see a window asking whether to post a reason and what it shall be. The reason is simply a post added to the topic.

You also have the option to remove the reason upon unlocking.

It should work on any theme that uses the same base Profile template as the SMF core theme, for anything else you may have to do a theme edit, but it is a very small edit in the profile itself.

Changelog:
    Version 2.2
        Updated for 2.0
        Removed support for 1.1
        Taken Over by Runic
    Version 2.1
        Updated for RC2 compatibility and removed ALL beta support
    Version 2.0
        Added 2.0 beta support
        Added an option to remove the reason upon unlocking
        Added ability to add a reason for locking a topic on topic view
    Version 1.0
        Initial Release

Why Not Visit:
http://www.smfhacks.com
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


karlbenson

Indeed. a nice mod.

I've got a habit of posting. closing this topic, and then forgetting to do so. ;)

Eliana Tamerin

Nice.

Kinda wish it was like the moving topic method, so that it would allow for someone to make a custom reasoning for that topic if moved from the Display page. Otherwise, if it was among several topics locked, similar to moving topics, it would revert to the default message defined in admin. Does that make sense?

Anyways, great mod, very useful and informative. Gives a nice ending and solves the problem of members going "Who locked my !@#$%^& topic?!"
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Apllicmz

nice Work
iam translate Portuguese

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['enableTopicLockedMessage'] = 'Tópico bloqueado mensagem activado?';
$txt['TopicLockedMessagebody'] = 'Tópico bloqueado mensagem corpo:';
$txt['topicLocked'] = 'Tópico fechado!';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['enableTopicLockedMessage'] = 'Tópico bloqueado mensagem activado?';
$txt['TopicLockedMessagebody'] = 'Tópico bloqueado mensagem corpo:';
$txt['topicLocked'] = 'Tópico fechado!';]]></add>
</operation>
</file>


Suporte Utf8

<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['enableTopicLockedMessage'] = 'T&oacute;pico bloqueado mensagem activado?';
$txt['TopicLockedMessagebody'] = 'T&oacute;pico bloqueado mensagem corpo:';
$txt['topicLocked'] = 'T&oacute;pico fechado!';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['enableTopicLockedMessage'] = 'T&oacute;pico bloqueado mensagem activado?';
$txt['TopicLockedMessagebody'] = 'T&oacute;pico bloqueado mensagem corpo:';
$txt['topicLocked'] = 'T&oacute;pico fechado!';]]></add>
</operation>
</file>



jossanaijr

Hi, thanks but it is not working.
Any suggestion?
Installed using 1.1.5 english default theme without any error.
A lot of MODs.... No error log
Already enabled in features.

[SiNaN]

Eliana, again I will add that in next update.

Thanks for you all. ;)

jossanaijr, you should turn it on from Admin CP >> Features and Options >> Topic Locked Message enabled? option.
Former SMF Core Developer | My Mods | SimplePortal

jossanaijr

Quote from: [SiNaN] on May 07, 2008, 09:25:23 AM
jossanaijr, you should turn it on from Admin CP >> Features and Options >> Topic Locked Message enabled? option.
As I said it is already done.

[SiNaN]

Hımmm, interesting. Can you provide me an account which just has topic lock permission in a test board of your forum?
Former SMF Core Developer | My Mods | SimplePortal

Minare

SiNaN great work bro, u saved lots of ours time we used to waste for posting after locking a topic

thank u, I ll use
O güzel Râsulu Yesrip yolunda
Hicret coşkusuyla aramalısın
Ayrılık Anne'den Baba'dan Yâr'dan
Ezelden geçerek kavuşmalısın

http://www.meryemce.biz

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

jossanaijr

Quote from: [SiNaN] on May 07, 2008, 09:44:49 AM
Hımmm, interesting. Can you provide me an account which just has topic lock permission in a test board of your forum?
Done.

[SiNaN]

Quote from: jossanaijr on May 08, 2008, 06:57:20 AM
Quote from: [SiNaN] on May 07, 2008, 09:44:49 AM
Hımmm, interesting. Can you provide me an account which just has topic lock permission in a test board of your forum?
Done.

Tested. It does what it should.
Former SMF Core Developer | My Mods | SimplePortal

jossanaijr

ok, now I understood what is happening.
When you choose lock topic in tab button it is ok but if you choose to modify a topic and then lock it clicking in the lock sign it does not work.
Also if you have those lock sing enabled as admin and just click in it does not work also.

chrisb

is there any themes you need to edit to make it work on another theme, as i am getting the box , but no wording is displaying on th features and options page.


[SiNaN]

Quote from: chrisb on May 08, 2008, 08:54:01 AM
is there any themes you need to edit to make it work on another theme, as i am getting the box , but no wording is displaying on th features and options page.

What is your forum's language?
Former SMF Core Developer | My Mods | SimplePortal

chrisb


L.G.S

Is this planned for 2.0 at all?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


jossanaijr

[SiNaN], did you check this?
Quote from: jossanaijr on May 08, 2008, 08:31:26 AM
ok, now I understood what is happening.
When you choose lock topic in tab button it is ok but if you choose to modify a topic and then lock it clicking in the lock sign it does not work.
Also if you have those lock sing enabled as admin and just click in it does not work also.

perro88

thanks for the mod :P nice job as usual

Advertisement: