The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
Have you hacked your .php files at all?
|
#3
|
|||
|
|||
Only thing I did was star hack which I got from this forum. Do you think it's the cause?
Please let me know. |
#4
|
||||
|
||||
Did you edit usergroup.php?
|
#5
|
|||
|
|||
Nope.
When I did the star hack, I followed the instructions and I don't believe I edited usergroup.php. Any ideas? |
#6
|
||||
|
||||
What about the other options?
Are they saved when you save changes to that page? |
#7
|
||||
|
||||
Upload usergroup.php again and try it.
|
#8
|
|||
|
|||
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($user title)."',$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($user title)."','$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='".addsla shes($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='".addsla shes($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? |
#9
|
||||
|
||||
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. |
#10
|
|||
|
|||
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|