News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Scrolling Signatures

Started by theunder-ground, April 14, 2006, 01:34:21 PM

Previous topic - Next topic

theunder-ground

We had a limit on the size of sig that people were allowed to have.  People were will breaking this rule so we put in scrolling signatures.  This is a way to limit the amount of scrolling needed to pass a sig, but also allow people to have what they want in their sig.

This works in 1.06/1.07 and 1.1 RC2.

You should only need to change the default theme, unless you are using a custom theme that has it's own display.template.php

In the display.template.php

Find:

<div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div>';

Replace with one of the following:

This one will allow it to still align fully left, but scroll.

<div align="left" style="overflow: auto; width: 100%; height: 400px; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div>';

This will make it smaller in width, while centering the sig, but leaving the text left aligned if wanted: *note* you can still align the contents of the sig with the center bb code.

<div align="center"><div align="left" style="overflow: auto; width: 400px; height: 400px; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div></div>';

This does the same as above, but will automatically align everything center.  No extra codes needed in the sig content.

<div align="center"><div style="overflow: auto; width: 400px; height: 400px; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div></div>';

We have it set to 400 by 400.  To customize this to your own settings just change the height/ Width settings.

If a team/ staff member wants this can go into the tips and tricks forum.

Advertisement: