Put code in ALL signatures

Started by ExistenZ, September 27, 2005, 05:35:14 PM

Previous topic - Next topic

ExistenZ

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?
Regards,
Andre

1MileCrash

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
The only thing php can't do is tell you how much milk is left in the fridge.



ExistenZ

#2
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!
Regards,
Andre

1MileCrash

good idea. That will work perfectly.
The only thing php can't do is tell you how much milk is left in the fridge.



Advertisement: