Helpful Information
 
 
Category: Community Discussions
Disable invisible mode for a certain usergroup?

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:

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.

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

or Julie you can simply edit the modifyprofile and register templates and remove the option for that usergroup ;) regards...

g-force2k2

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.. :)

You guys are the best, thanks a bunch! :banana:

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.










privacy (GDPR)