View Full Version : Restrict usergroups to see signatures
COBRAws
10-11-2005, 04:39 PM
I want to restrict certain members to see signatures for example, what do i need to do?
I go to postbit template and find:
<if condition="$post['signature']">
but, I cant remember the code i have to replace with to exclude certain usergroups to see it.
Something similar to this:
<if condition="$post['signature'] AND $usergrpup['????] != 1">
Help please
Andreas
10-11-2005, 04:44 PM
Easiest way
postbit_display_complete
if (!is_member_of($this->registry->userinfo, x, y,z))
{
unset($this->post['signature']);
}
Replace x, y and z with the Usergroups that should not be able to view Signatures.
Most efficient way:
- Use an SQL-Query to turn Sig display off for all Users in Usergroups you don't want to be able to view sigs
- Create a Plugin for Hook userdata_presave that checks if the user is in an unsergroup that does not have permission and then unset the view signatures option
COBRAws
10-11-2005, 05:03 PM
woh000!
ermm... Am I suposed to put that in the template or is it a PHP File edit?
sorry but im not much of a coder heh
Andreas
10-11-2005, 05:10 PM
Neither :)
It's a Plugin for Hook postbit_display_complete
COBRAws
10-11-2005, 07:23 PM
thanks, ill have to wait till I learn then. =D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.