News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Default signature

Started by live627, May 02, 2010, 03:00:39 AM

Previous topic - Next topic

live627

Link to Mod

Default Signature
by 130860




Introduction
This mod allows the admin to add a custom code (you can use bbc) that will appear on the signature only if the user has not been set a signature.

settings for this mod can be found in

- Admin->Configuration->Modifications for 2.0


For  2.0 RC3 only


Supported Languages
o English/utf8
o Spanish_es/utf8
o Spanish_latin/utf8

I welcome translations, please post it on the support post ;)


$txt['def_sig_user_code'] = 'Place your code for default signature here:(you can use bbc code) ';


Installation
Simply install the package to install on the SMF Default Theme AND any other theme which does NOT have a custom Display.template.php


if you have a custom Display.template.php   do this:


Code (find) Select


// Show the member's signature?
      if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
         echo '
                     <div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';




Code ( add after) Select


elseif   (empty($message['member']['signature']) && empty($options['show_no_signatures']) &&!empty($modSettings['def_sig_user_code']) )
{
 
echo '
                     <div class="signature" id="msg_', $message['id'], '_signature">', parse_bbc($modSettings['def_sig_user_code']) , '</div>';

}   




Changelog


1.0 - April 05, 2010
Initial release

Aportadordelmix


~DS~

"Slap me for having no signature"
:P
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Arantor

Interesting, you could use http://custom.simplemachines.org/mods/index.php?mod=2327 for the same purpose without doing any theme edits though ;)

mirahalo

Quote from: Arantor on May 02, 2010, 06:15:04 AM
Interesting, you could use http://custom.simplemachines.org/mods/index.php?mod=2327 for the same purpose without doing any theme edits though ;)

LOL   I didn't even know about that mod :P

Arantor

It's so easily done though, and this version works on 2.0 RC3 - I don't know if the other works on RC3 without changes, it'll need emulation as a minimum though.

iPhoneDestek

translation in german and german-utf8



<file name="$languagedir/Modifications.german.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Default Signatur Mod translation by SirtLanVadisi.net
    $txt['def_sig_user_code'] = 'Platzieren Sie Ihren Code für die Standard-Unterschrift hier: (Sie können BBC-Code verwenden) ';
// End Default Signatur Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.german-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Default Signatur Mod translation by SirtLanVadisi.net
    $txt['def_sig_user_code'] = 'Platzieren Sie Ihren Code für die Standard-Unterschrift hier: (Sie können BBC-Code verwenden) ';
// End Default Signatur Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>



tranlation in turkish and turkish-utf8



<file name="$languagedir/Modifications.turkish.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Default Signatur Mod translation by SirtLanVadisi.net
    $txt['def_sig_user_code'] = 'Buraya varsayılan imza için kodunuzu veriniz: ( BBC kodu kullanabilirsiniz) ';
// End Default Signatur Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.turkish-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Default Signatur Mod translation by SirtLanVadisi.net
    $txt['def_sig_user_code'] = 'Buraya varsayılan imza için kodunuzu veriniz: ( BBC kodu kullanabilirsiniz)  ';
// End Default Signatur Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>



$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


Advertisement: