vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   How to set "showsignatures" default to "no" for all users and visitors (https://vborg.vbsupport.ru/showthread.php?t=15931)

Nathan 05-04-2001 05:13 AM

My users are VERY fond of big, elaborate signatures, and that tends to turn-off first-time visitors who are on dial-up. I want everyone's "showsignatures" option to be set to "no" by default, instead of yes. Then they can go turn on sigs in their cp if they want to see them.

Thanks!

:D

rickjansen105 05-04-2001 08:25 AM

uhm, edit the register.php file, set there behind the option ya want, 0 instead or 1 (or 1 instead of 0)
correct me please if i am wrong...

tubedogg 05-04-2001 08:59 AM

much easier solution rick and Nathan...edit the the registeradult template.

find
Code:

<input type="hidden" name="showsignatures" value="yes">
and change it to
Code:

<input type="hidden" name="showsignatures" value="no">
simple as that. no need to edit the PHP files.

rickjansen105 05-04-2001 09:20 AM

ah :)

I'm not a prof in hacking and coding... :)

Nathan 05-04-2001 05:59 PM

But will that affect my 500 users who are already registered? What about first-time visitors who haven't registered yet?

tubedogg 05-04-2001 06:16 PM

you cannot affect that for visitors. it is quite simply impossible.

i can't see any easy way to affect your current members because of the way options are stored. not to mention, your current members have probably figured out what the deal is already can can turn them off by themselves if they really want to.

what i said above will affect anyone when registering.

Freddie Bingham 05-04-2001 06:24 PM

Set Everyone's showsignatures to off:
UPDATE user SET options=options-1 WHERE options&1

Set Everyone's showsignatures to on
UPDATE user SET options=options+1 WHERE NOT(options&1)

Set Everyone's showavatars to off:
UPDATE user SET options=options-2 WHERE options&2

Set Everyone's showavatars to on:
UPDATE user SET options=options+2 WHERE NOT(options&2)

Set Everyone's showimages to off:
UPDATE user SET options=options-4 WHERE options&4

Set Everyone's showimages to on:
UPDATE user SET options=options+4 WHERE NOT(options&4)

Set Everyone's showvbcode to off:
UPDATE user SET options=options-8 WHERE options&8

Set Everyone's showvbcode to on:
UPDATE user SET options=options+8 WHERE NOT(options&8)

Nathan 05-04-2001 10:39 PM

Um, sorry to sound like a moron, but what do I do with those lines? Is there a command-line in vB somewhere?

tubedogg 05-04-2001 10:48 PM

Wow...I guess it is easy. :)

Those are MySQL queries. You use either MySQL via Telnet, or via phpMyAdmin. There's a link in my sig to how to run a query via phpMyAdmin.

Nathan 05-05-2001 12:49 AM

trying the
UPDATE user SET options=options-1 WHERE options&1
option


All times are GMT. The time now is 11:24 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.01527 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete