Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on December 22, 2009, 03:54:28 PM

Title: Attention Locked Topic
Post by: vbgamer45 on December 22, 2009, 03:54:28 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=2325)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fbit.ly%2FkZVDB6&hash=7836fdef4323714489209ed06cd4e4f88c199aea)

[glow=black,2,300]Attention Locked Topic[/glow]
Developed by 4kstore (http://www.smfsimple.com/index.php?action=profile;u=55) for SMFSimple.com (http://www.smfsimple.com/)
2.0.X



[glow=black,2,300]El soporte oficial de los desarrolladores de nuestros mods lo encontraras en SMFSimple.com[/glow]



[glow=black,2,300]Description:[/glow]
With this mod you may inform the user that is seeing a closed topic, it just requires adding a couple of lines.

[glow=black,2,300]Descripcion:[/glow]
Con este mod usted podra notificarles a los usuario que esta viendo un tema cerrado, solo requiere de agregar un par de lineas


[glow=black,2,300]Features:[/glow]

[glow=black,2,300]Caracteristicas:[/glow]



[glow=black,2,300]Screenshots | Imagenes[/glow]

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FPx3DM.jpg&hash=57d90f46e09fbeca508379b54aa5d3fe651b1145)


Language Support | Lenguajes Soportados

English & English British
Spanish Latin - Es
More Translations (http://www.smfsimple.com/index.php/topic,4684.0.html)



[glow=black,2,300]Attention Locked Topic[/glow]

[glow=black,2,300]Copyright 2011 | SMFSimple.com (http://www.smfsimple.com/)[/glow]

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc-sa%2F3.0%2F88x31.png&hash=be27368905a4a8052533722bf679594f2501899d) (http://creativecommons.org/licenses/by-nc-sa/3.0/)
Title: Re: Attention Locked Topic
Post by: marko_andres on December 22, 2009, 08:54:21 PM
Se ve muy bueno amigo ;)

Lastima que no es compatible con 1.1.11 :(

Saludos y Felicitaciones !
Title: Re: Attention Locked Topic
Post by: Cap. Price on December 30, 2009, 12:46:14 AM
Funciona perfecto en la versión 1.1.11 (claro que con instalación manual), muy buena idea y muchas gracias.
Title: Re: Attention Locked Topic
Post by: oOo--STAR--oOo on February 12, 2010, 09:43:19 AM
Sorry i found an error with this mod on install..

The error is in ./Themes/default/Display.template.php

and the error is the String you are looking for you have typed it incorrectly..

you have put


FIND
echo ' <div class="inner" id="msg_', $message['id'], '"', '> ', $message['body'], '</div>
ADD BEFORE
if ($context['is_locked']) { echo' <div class="errorbox"><p class="alert">!!</p>', $txt['attentionlockedtopic'] ,'</div>'; }


When infact it should be looking for it in this format


      echo '
                        <div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>



EDIT i have corrected all the errors in the Next post.. and attached a fully working install.

Title: Re: Attention Locked Topic
Post by: oOo--STAR--oOo on February 12, 2010, 09:54:37 AM
O.k. just gone to insall it.. then i got error install.php..

There is no install.php in the zip..

So there is a missing file with install information in the script please could you fix this..

EDIT:
Kk edited the line out that looks for install.php and works a treat..

installs sucessfully now no errors..

Attached a fully working version of this mod..
REQUEST.. how come it displays topic locked on every single post..

Any change you could advise me how to make it display on the 1st post only.. I would really like it just on the 1st post..

I dont want it on every post. other wise it looks a bit OTT.

Thanks

Title: Re: Attention Locked Topic
Post by: SSimple Team on August 08, 2011, 11:41:15 PM
Update: Now for SMF 2.0!
Grettings ;)
Title: Re: Attention Locked Topic
Post by: Branko. on September 13, 2011, 04:34:53 AM
Serbian latin translation
<file name="$languagedir/Modifications.serbian_latin.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attentionlockedtopic'] = 'Ova tema je zaključana';
]]></add>
</operation>
</file>


Serbian latin utf-8
<file name="$languagedir/Modifications.serbian_latin-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attentionlockedtopic'] = 'Ova tema je zaključana';
]]></add>
</operation>
</file>
Title: Re: Attention Locked Topic
Post by: Branko. on September 13, 2011, 04:38:07 AM
Serbian cyrillic translation
<file name="$languagedir/Modifications.serbian_cyrillic.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attentionlockedtopic'] = 'Ова тема је закључана';
]]></add>
</operation>
</file>


Serbian cyrillic utf-8
<file name="$languagedir/Modifications.serbian_cyrillic-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attentionlockedtopic'] = 'Ова тема је закључана';
]]></add>
</operation>
</file>

Title: Re: Attention Locked Topic
Post by: Branko. on September 13, 2011, 04:41:12 AM
Croatian translation
<file name="$languagedir/Modifications.croatian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attentionlockedtopic'] = 'Ova tema je zaključana';
]]></add>
</operation>
</file>


Croatian utf-8
<file name="$languagedir/Modifications.croatian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['attentionlockedtopic'] = 'Ova tema je zaključana';
]]></add>
</operation>
</file>
Title: Re: Attention Locked Topic
Post by: SSimple Team on September 15, 2011, 04:27:27 PM
Thanks branko!
Title: Re: Attention Locked Topic (Support for SMF 2.0.1)
Post by: SSimple Team on September 27, 2011, 01:00:47 AM
Support for Smf 2.0.1
Any translation are welcome.
Cheers!
Title: Re: Attention Locked Topic (Support for SMF 2.0.1)
Post by: Branko. on September 27, 2011, 09:18:05 AM
Attached  languages.xml file with Serbian latin, Serbian cyrillic and Croatian translation... ;)
Title: Re: Attention Locked Topic (Support for SMF 2.0.1)
Post by: 4Kstore on September 27, 2011, 09:59:46 AM
Quote from: Branko. on September 27, 2011, 09:18:05 AM
Attached  languages.xml file with Serbian latin, Serbian cyrillic and Croatian translation... ;)

Thanks Branko, the languages was added in this topic: http://www.smfsimple.com/index.php/topic,4684.0.html
Grettings!
Title: Re: Attention Locked Topic (Support for SMF 2.0.1)
Post by: 4Kstore on February 07, 2012, 04:54:10 PM
2.0.2 Support!
Cheers
Title: Re: Attention Locked Topic (Support for SMF 2.0.1)
Post by: Eclipse16V on March 07, 2012, 05:18:10 AM
Thank you for this simple mod.