Disable Signatures per user
This modification is in the archives.
Well I've been having arguements about signature sizes with a user of mine.
Usually I'd ban the person but maybe it would be a better punishment just to disable their ability to display signatures within the postbit and a few people have asked for this on vbulletin.org and even released a hack for it but i don't really want to hack when i could do it via templates just as effectively and then i decided to share with everyone here This should work on any version of vb3 first create a new profile field Code:
Title: Allow Signature Description: Your Own Description here Type: Single-Selection Radio Buttons Options: Yes and on the second line No (case sensetive) Display Page: Edit profile (or anywhere u want) Set Default: Yes Field editable by user: No Field Hidden on Profile: Yes Field Searchable on Members List: No Show on Members List: No Allow user to input their own value for this option: No Now Find in Postbit / Postbit Legacy Code:
<if condition="$post['signature']"> Code:
<if condition="$post['signature'] AND $post[fieldXX]!= 'No'"> Code:
replace XX with the field of the new profile field Code:
$userinfo[signature] Code:
<if condition="$userinfo[fieldXX]!= 'No'">$userinfo[signature] <else /> <center>Signature Disabled By The Administrator</center></if> Code:
replace XX with the field of the new profile field and your done you can now enable and disable signatures in the postbit via their user options and the profile field will be hidden to all except moderators and above In member info it will show disabled by the administrator Download This modification is archived and cannot be downloaded. Screenshots
|