View Full Version : Miscellaneous Hacks - Disable User Signature
tnguy3n
12-31-2004, 10:00 PM
Modded by tnguy3n (Thinh Nguyen)
This mod allows admin to disable a user's signature if one violates or abusing forum's signature rule.
File Mod: 3
Queries: 1
Phrases: 3
Installation Time: 3-4 mins
Pls click "INSTALL" if you use it.
daFish
01-01-2005, 11:53 AM
Is it possible to add the function so moderators and super moderators are allowed to use this mod?
SVTOA
01-01-2005, 12:05 PM
Nice work, don't get me wrong, but what about just creating a usergroup that can't use signatures and assigning troublemakers to that group? Will this add extra queries each time that member's userinfo is called up be it in a post or when you check profile, etc?
daFish
01-02-2005, 07:43 AM
Fter installing this hack, i've found oiut that some things are missing.
1. There is no such line in usercp.php
if (!$vboptions['allowsignatures'])
{
eval(print_standard_error('error_signaturedisabled '));
}
2. When getting into the user settings in the acp, nolabel is shown for Disable Sig and when you select "Yes" and save, the settings won't be saved (maybe missing query for the update).
tnguy3n
01-03-2005, 01:12 PM
Fter installing this hack, i've found oiut that some things are missing.
1. There is no such line in usercp.php
if (!$vboptions['allowsignatures'])
{
eval(print_standard_error('error_signaturedisabled '));
}
2. When getting into the user settings in the acp, nolabel is shown for Disable Sig and when you select "Yes" and save, the settings won't be saved (maybe missing query for the update).
sorry, it should be profile.php , and the link to edit Signature still there; however, when the user clicks on it, it'd display the error message saying that the signature is disabled.
@ SVTOA: if one user on the board violates your signature rules, you'd disable signature option of the whole group? that's just sound unfair.
SVTOA
01-03-2005, 01:31 PM
sor
@ SVTOA: if one user on the board violates your signature rules, you'd disable signature option of the whole group? that's just sound unfair.
How is that unfair??? It's a group you assign people to so they have no signature!!! They can't be assigned to it unless you put them there.
Not any more unfair than doing it with this hack. We must not be understanding each other...
SnowBot
01-03-2005, 01:53 PM
nice little hack :)
SnowBot
01-03-2005, 02:47 PM
Only problem is, is that the default is set to know so you you are editing anything else and forget to re-tick it to YES the sig will be disabled. Can you make it so the default is set to YES?
SnowBot
01-03-2005, 03:20 PM
hhmm well after installing this it doesnt work correctly at all. For me i can only disable my own sig and not others.
daFish
01-03-2005, 04:29 PM
sorry, it should be profile.php , and the link to edit Signature still there; however, when the user clicks on it, it'd display the error message saying that the signature is disabled.
Thanks. Got that, but what about the second issue?
tnguy3n
01-04-2005, 04:45 AM
Thanks. Got that, but what about the second issue?
it's one bug of this hack, i'll look into it, and make it stuck. :)
daFish
01-04-2005, 02:27 PM
it's one bug of this hack, i'll look into it, and make it stuck. :)
Great. :)
SternFan
01-05-2005, 03:44 PM
Thanks. Got that, but what about the second issue?
I got The phrase to show up by manually adding another phrase called allowsig1 with the same text, "Allow Signatures ?" to the Global phrases from the admin CP Phrase Manager. After you add that, edit the admincp/user.php file, and find this:
print_yes_no_row($vbphrase['allowsig'], 'user[allowsig]', $user['allowsign']);
With this line:
print_yes_no_row($vbphrase['allowsig1'], 'user[allowsig]', $user['allowsig']);
This takes care of both the text display on the admin CP and also the function of being able to update it. The default will now display as "Yes" instead of "No"
SternFan
01-05-2005, 04:26 PM
Is it possible to add the function so moderators and super moderators are allowed to use this mod?
Yes, I added it to my mod profile editor, that way only mods that you give profile editing permissions to are able to disable sigs. In the /modcp/user.php file, find:
print_input_row($vbphrase['icq_uin'], 'user[icq]', $user['icq'], 0);
And above it insert:
print_yes_no_row($vbphrase['allowsig1'], 'user[allowsig]', $user['allowsig']);
Note: this will only work if you have completed the fixes I listed in my thread above.
daFish
01-06-2005, 11:37 AM
Excellent, i'll take a look into it. Thank you SternFan.
SternFan
01-10-2005, 01:34 PM
Excellent, i'll take a look into it. Thank you SternFan.
No problem!
babolo
01-12-2005, 01:27 AM
Ok signatues are automatically set to no when a user registers. How can I make it so its not?
tnguy3n
01-25-2005, 04:47 PM
@ SternFan, thanks for the bug fix, but technically, you don't have to add any additional phrase. There's one typo, $user['allowsign'] , which should be $user['allowsig'] .
I updated the instruction, it should work now.
For those who installed and didn't have it worked, open admincp/user.php,
FIND:
print_yes_no_row($vbphrase['allowsig'], 'user[allowsig]', $user['allowsign']);
REPLACE WITH:
print_yes_no_row($vbphrase['allowsig'], 'user[allowsig]', $user['allowsig']);
@ babolo , it's possible, but it requires addional hack in register.php file.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.