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]
- You can edit the message to be displayed from the language file
[glow=black,2,300]
Caracteristicas:[/glow]
- Puede cambiar el mensaje que sera mostrado desde los archivos de lenguaje
[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/)
Se ve muy bueno amigo ;)
Lastima que no es compatible con 1.1.11 :(
Saludos y Felicitaciones !
Funciona perfecto en la versión 1.1.11 (claro que con instalación manual), muy buena idea y muchas gracias.
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.
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
Update: Now for SMF 2.0!
Grettings ;)
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>
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>
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>
Thanks branko!
Support for Smf 2.0.1
Any translation are welcome.
Cheers!
Attached languages.xml file with Serbian latin, Serbian cyrillic and Croatian translation... ;)
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!
2.0.2 Support!
Cheers
Thank you for this simple mod.