View Full Version : Disable invisible mode for a certain usergroup?
Sweet Cheeks
09-03-2002, 07:33 PM
Hi guys,
we have a Loserville user group and I want to make it so they cannot use the Quick access to invisible/visible mode (hack link here http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=363 )
I already have it so they can't edit their profile, yet they can still click the quick invisible link. Any ideas?
Thanks a bunch :banana:
DrkFusion
09-03-2002, 07:38 PM
Maybe try removing the Quick Invisible Link
*edit*
nm
You can make a little php code in the php template so that the link will appear for certain usergroup only.
NTLDR
09-03-2002, 07:44 PM
Indeed Drk is correct use this code in your phpinclude template:
//Invisible - visible link code
if ($bbuserinfo[userid]==X) { //Losers Group
$inviscode = "";
} else { //All Other Groups
$inviscode = "code here";
}
//End Invisible - visible link code
Change X to the usergroup id of that group and change code here to the code for that link (remember to put a \ before every " in the code, then add $inviscode to the template :D
g-force2k2
09-03-2002, 08:21 PM
or Julie you can simply edit the modifyprofile and register templates and remove the option for that usergroup ;) regards...
g-force2k2
Logician
09-04-2002, 09:26 AM
ehem.. Why didnt you ask in the hack's thread? I dont leave questions unanswered, do I? :glasses:
Anyway here is your solution, edit index.php and find the hack code you added there and replace it as:
// Logician shortcut to visibility hack
if ($bbuserinfo[usergroupid]!=XX) {
if ($bbuserinfo[invisible]==1) {$logvisible=' | <a href="member.php?s='.$session[sessionhash].'&action=makemevisible">Be Visible!</a>';}
else {$logvisible=' | <a href="member.php?s='.$session[sessionhash].'&action=makemeinvisible">Be Invisible!</a>';}
}
// Logician shortcut to visibility hack
Replace XX with the usergroupid of Loserville group..
Enjoy.. :)
Sweet Cheeks
09-04-2002, 12:24 PM
You guys are the best, thanks a bunch! :banana:
L-Mane
05-19-2003, 05:21 PM
Ok I just looked at this and dont understand it. I want to disable Registered users and allow Mods and Admins to remain invisible if they would like to.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.