vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - User Signature Picture Switch (https://vborg.vbsupport.ru/showthread.php?t=147699)

El_Muerte 05-19-2007 10:00 PM

User Signature Picture Switch
 
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:
Code:

this is a test [sigpic]of the sigpic switch mod[/sigpic]
The user will see:
Code:

this is a test of the sigpic switch mod
Installation instructions:
  1. Upload the bitfield_sigpicswitch.xml file to forum/includes/xml
  2. Import product-sigpicswitch.xml
  3. Edit the modifyoptions template.
    After:
    HTML Code:

    <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:
    HTML Code:

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


All times are GMT. The time now is 12:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01511 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete