Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: ExistenZ on September 27, 2005, 05:35:14 PM

Title: Put code in ALL signatures
Post by: ExistenZ on September 27, 2005, 05:35:14 PM
Right, I need to put a simple html code in ALL the signatures of ALL users of the forum. Their customized signature, then a line open, and then comes my html code.

Which files must I edit?
Title: Re: Put code in ALL signatures
Post by: 1MileCrash on September 27, 2005, 05:41:11 PM
easy. I did the very same thing on my forums to put an image.

open display.template.php, and look for-

Quote// Show the member's signature?
      if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
         echo '
                     <hr width="100%" size="1" class="hrcolor" />
                     <div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div>';

add this red text.

Quote// Show the member's signature?
      if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
         echo '
                     <hr width="100%" size="1" class="hrcolor" />
                     <div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '<br/>You can add the code here.</div>';

hope this helps.  :P
Title: Re: Put code in ALL signatures
Post by: ExistenZ on September 27, 2005, 05:48:33 PM
Tippmaster! You are by far the most usefull person I have ever met! I am going to combine this with your other tutorial which allows you to put custom html in a certain place via the admin panel! YOU ARE A GENIUS!
Title: Re: Put code in ALL signatures
Post by: 1MileCrash on September 27, 2005, 05:51:58 PM
good idea. That will work perfectly.