PDA

View Full Version : End-User Options - User Signature Picture Switch


El_Muerte
05-19-2007, 10:00 PM
This mod adds an UserCP option that grants users the ability to enable or disable signature pictures, just like it's possible for them to completely disable signatures.
The option is found under UserCP -> Edit Options -> Thread Display Options -> Visible Post Elements
When disabled the user will only see the description text that was included between the sigpic tags.
For example if the signature code is:
this is a test of the sigpic switch mod
The user will see:
this is a test of the sigpic switch mod

Installation instructions:


Upload the bitfield_sigpicswitch.xml file to forum/includes/xml
Import product-sigpicswitch.xml
Edit the modifyoptions template.
After:

<div><label for="cb_showimages"><input type="checkbox" name="options[showimages]" value="1" id="cb_showimages" $checked[showimages] />$vbphrase[show_images] ($vbphrase[including_attached_and_img_code])</label><input type="hidden" name="set_options[showimages]" value="1" /></div>

Put:

<!-- sigpicswitch -->
<div><label for="cb_showsigpics"><input type="checkbox" name="sigpicswitch[showsigpics]" value="1" id="cb_showsigpics" $checked[showsigpics] />$vbphrase[show_sigpics]</label><input type="hidden" name="set_options[showsigpics]" value="1" /></div>
<!-- /sigpicswitch -->

El_Muerte
05-20-2007, 01:45 PM
Known bugs

none


Note: users of the versions older than 1.0.2 will need to empty the signature cache

FleaBag
05-20-2007, 02:57 PM
This will really come in handy for mobile browsers! Thanks. :)

FreshFroot
05-21-2007, 12:15 AM
wow.. nice stuff thanks mate!

Hornstar
05-21-2007, 05:02 AM
can you show me a pic of it in use, thanks.

El_Muerte
05-21-2007, 12:28 PM
a picture of it in use? well.. imagine a signature with a sigpic, now remove the sigpic, that is how it looks.

johnrizz
05-22-2007, 10:40 AM
Great Mod! I love it, thanks!!:up: