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 -->
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 -->