Log in

View Full Version : Turn-off "Who's online" for Moderators


peteqlee
09-27-2001, 12:14 PM
Hi, there

What I like to do is let only administrators see the "who's online" and turn off this feature for moderators and normal members. I now know how to do it, control panel -- user groups and permissions -- edit.

However, everytime I change the setting to be "no" to "Can View Who's Online" and save, it says "Record updated!" but when I click "edit" again to see whether it's really changed, it stays with "Yes" and it drives me nuts!

I tried thousand times but it simply not work. How can I turn this off for other members?

Thanks in advance.

Freddie Bingham
09-27-2001, 01:32 PM
Have you hacked your .php files at all?

peteqlee
09-27-2001, 02:54 PM
Only thing I did was star hack which I got from this forum. Do you think it's the cause?

Please let me know.

Freddie Bingham
09-27-2001, 04:44 PM
Did you edit usergroup.php?

peteqlee
09-27-2001, 05:21 PM
Nope.

When I did the star hack, I followed the instructions and I don't believe I edited usergroup.php.

Any ideas?

Admin
09-27-2001, 05:24 PM
What about the other options?
Are they saved when you save changes to that page?

Freddie Bingham
09-27-2001, 07:54 PM
Upload usergroup.php again and try it.

peteqlee
09-28-2001, 04:49 AM
In fact, I DID hack usergroup.php according to instructions on star hack. Here's what I did:

****In admin/usergroup.php****
**Find
makeinputcode("User Status<br>Use this to override the default 'ladder' of user status titles","usertitle");
**Right under it, add
makeinputcode("Stars shown<br>Use this to override the default 'ladder' of stars","starlevel");
makeinputcode("Star image shown<br>Give this group a unique star image - do not add the .gif after the image name!","starimg");
**Find
if ($HTTP_POST_VARS['action']=="insert") {

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,can view,cansearch,canemail,canpostnew,canmove,canopen close,candeletethread,canreply own,canreplyothers,canviewothers,caneditpost,cande letepost,canusepm,canpostpoll, canvote,canpostattachment,ismoderator,canpubliceve nt,canpublicedit,canthreadrate ,cantrackpm,candenypmreceipts,maxbuddypm,maxforwar dpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$ca nmodifyprofile,$canviewmembers,$canview,$cansearch ,$canemail,$canpostnew,$canmov e,$canopenclose,$candeletethread,$canreplyown,$can replyothers,$canviewothers,$ca neditpost,$candeletepost,$canusepm,$canpostpoll,$c anvote,$canpostattachment,$ism oderator,$canpublicevent,$canpublicedit,$canthread rate,$cantrackpm,$candenypmrec eipts,$maxbuddypm,$maxforwardpm)");
**Replace it with
if ($HTTP_POST_VARS['action']=="insert") {

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,starlevel,starimg,can controlpanel,canmodifyprofile, canviewmembers,canview,cansearch,canemail,canpostn ew,canmove,canopenclose,candel etethread,canreplyown,canreplyothers,canviewothers ,caneditpost,candeletepost,can usepm,canpostpoll,canvote,canpostattachment,ismode rator,canpublicevent,canpublic edit,canthreadrate,cantrackpm,candenypmreceipts,ma xbuddypm,maxforwardpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."','$starlevel','$stari mg',$cancontrolpanel,$canmodifyprofile,$canviewmem bers,$canview,$cansearch,$cane mail,$canpostnew,$canmove,$canopenclose,$candelete thread,$canreplyown,$canreplyo thers,$canviewothers,$caneditpost,$candeletepost,$ canusepm,$canpostpoll,$canvote ,$canpostattachment,$ismoderator,$canpublicevent,$ canpublicedit,$canthreadrate,$ cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforw ardpm)");

**Find
makeinputcode("User Status<br>Use this to override the default 'ladder' of user status titles","usertitle",$usergroup[usertitle]);
**Right under it, add
makeinputcode("Stars shown<br>Use this to override the default 'ladder' of stars","starlevel",$usergroup[starlevel]);
makeinputcode("Star image shown<br>Give this group a unique star image - do not add the .gif after the image name!","starimg",$usergroup[starimg]);
**Find
exit;
}
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrol panel=$cancontrolpanel,canmodifyprofile=$canmodify profile,canviewmembers=$canvie wmembers,canview=$canview,cansearch=$cansearch,can email=$canemail,canpostnew=$ca npostnew,canmove=$canmove,canopenclose=$canopenclo se,candeletethread=$candeletet hread,canreplyown=$canreplyown,canreplyothers=$can replyothers,canviewothers=$can viewothers,caneditpost=$caneditpost,candeletepost= $candeletepost,canusepm=$canus epm,canpostpoll=$canpostpoll,canvote=$canvote,canp ostattachment=$canpostattachme nt,ismoderator=$ismoderator,canpublicedit=$canpubl icedit,canpublicevent=$canpubl icevent,canthreadrate=$canthreadrate,cantrackpm=$c antrackpm,candenypmreceipts=$c andenypmreceipts,maxbuddypm=$maxbuddypm,maxforward pm=$maxforwardpm WHERE usergroupid=$usergroupid");
**Replace it with
exit;
}
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',starlevel= '$starlevel',starimg='$starimg',cancontrolpanel=$c ancontrolpanel,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,cansearch=$c ansearch,canemail=$canemail,canpostnew=$canpostnew ,canmove=$canmove,canopenclose =$canopenclose,candeletethread=$candeletethread,ca nreplyown=$canreplyown,canrepl yothers=$canreplyothers,canviewothers=$canviewothe rs,caneditpost=$caneditpost,ca ndeletepost=$candeletepost,canusepm=$canusepm,canp ostpoll=$canpostpoll,canvote=$ canvote,canpostattachment=$canpostattachment,ismod erator=$ismoderator,canpublice dit=$canpublicedit,canpublicevent=$canpublicevent, canthreadrate=$canthreadrate,c antrackpm=$cantrackpm,candenypmreceipts=$candenypm receipts,maxbuddypm=$maxbuddyp m,maxforwardpm=$maxforwardpm WHERE usergroupid=$usergroupid");

Now, any ideas?

Admin
09-28-2001, 12:54 PM
Looks like the Star hacks was done before the online.php was added to vBulletin, and thus the query misses the part where the "Can View Who's Online" is updated.

Like freddie said with so much grace (;)), upload the original version of usergroup.php.

peteqlee
09-28-2001, 02:06 PM
You mean upload the original usergroup.php? What will happen to stars hack then? Do I have to modify it before uploading it OR upload first then see it's working or not?

I'm confused. :confused: :confused: :confused:

Freddie Bingham
09-28-2001, 02:23 PM
You will break your stars hack but you do understand you have caused your own problem because you modified the source code. I am going to move this thread to the hacking forum.

tubedogg
09-29-2001, 06:08 PM
I suggest using the latest version of the stars hack as the appearance of what you pasted in your post tells me it is from an old version. The newest version works correctly.

peteqlee
10-03-2001, 06:05 AM
Then can I just run the new install script for "stars hack" on top of existing "stars hack" or do I have to uninstall or remove the old version of "stars hack"?

If the answer is latter one, then how do I remove the hack?

Again, thanks for your help.