![]() |
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 |
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... |
much easier solution rick and Nathan...edit the the registeradult template.
find Code:
<input type="hidden" name="showsignatures" value="yes"> Code:
<input type="hidden" name="showsignatures" value="no"> |
ah :)
I'm not a prof in hacking and coding... :) |
But will that affect my 500 users who are already registered? What about first-time visitors who haven't registered yet?
|
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. |
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) |
Um, sorry to sound like a moron, but what do I do with those lines? Is there a command-line in vB somewhere?
|
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. |
trying the
UPDATE user SET options=options-1 WHERE options&1 option |
How would I go about making sigs invisible to guests?
|
You would edit admin/sessions.php and change this code:
$bbuserinfo['showsignatures']=1; to: $bbuserinfo['showsignatures']=0; You will also see the other bandwidth options there if you wish to change them. |
tubedogg,
I clicked on your link in your profile on how to run a query in phpmyadmin, but it gives me a bad link. can you point out that thread for me again? I'd like to turn vb code off for everyone. |
Also, is there a way to turn off VB code, but leave to clickable smilies in tact?
Basically, I don't want folks making big fonts and all. but smilies are cool. So, is it easier to simply turn something off rather than run a query? |
Here ya go evoir:
http://161.58.84.213/forum/showthrea...threadid=18558 Not sure about the other question. Feasibly you could remove $vbcode_buttons and that should do it - except that the smilies use javascript that's in the .js files included by the vbcode_buttons template. Maybe edit the .js files down to just the smilie parts and then include them in the vbcode_smilies template instead. |
so, if I want vb code to be OFF for all my members (so they have to actually turn it on if they want it)
I would type in phpmyadmin UPDATE user SET options=options+8 WHERE NOT(options&8) Including the parenthesis? I did that and nothing happened. still nhave vb code in my prefs and no xx yy response from phpmyadmin. Just wondering if I did it right. and thanks for your response, tubedogg. |
np :)
For whatever reason half the time phpMyAdmin returns a white screen instead of results. So assuming you got the white screen I'd say it went okay. Keep in mind this won't affect your templates - it will just set your prefs to no. You have to remove it from the templates manually. |
nope. I didn't get a white screen. the page simply reloaded.
and then I tried posting a message and the VB codes were there (which tells me it didn't change it in my or anyone else's profile.) Are you sure this is the correct code and proceedure? |
Try this one instead - I don't know but it looks like the latter half of freddie's post is backwards.
UPDATE user SET options=options-8 WHERE options&8 |
Actually, I think some of freddie's queries got reversed. Although I'm not 100% sure though.
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) |
All times are GMT. The time now is 11:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|