lichtflits
03-23-2002, 11:59 AM
is it posibel to make a hack so the administrator (maybe Smod and mod) turn the signature off from some users.
Admin
03-23-2002, 12:21 PM
Ok, here's something that's not even tested.
Run this query:
ALTER TABLE user ADD showselfsig smallint(6) DEFAULT '1' NOT NULL
In user.php find this:
maketextareacode("Signature","signature",$user[signature],8,45);
And add this right after that:
makeyesnocode('Display this user\'s signature', 'showselfsig', $user['showselfsig']);
And now find this:
showemail=$showemail,
And add this right after:
showselfsig=$showselfsig,
(NOTE THE COMMAS!)
In functions.php replace this:
if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==0 or $bbuserinfo[showsignatures])) {
With this:
if ($post[showsignature] and $post['showselfsig'] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==0 or $bbuserinfo[showsignatures])) {
If it works I'll release it later. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.