Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2001, 12:14 PM
peteqlee
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #2  
Old 09-27-2001, 01:32 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you hacked your .php files at all?
Reply With Quote
  #3  
Old 09-27-2001, 02:54 PM
peteqlee
Guest
 
Posts: n/a
Default

Only thing I did was star hack which I got from this forum. Do you think it's the cause?

Please let me know.
Reply With Quote
  #4  
Old 09-27-2001, 04:44 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you edit usergroup.php?
Reply With Quote
  #5  
Old 09-27-2001, 05:21 PM
peteqlee
Guest
 
Posts: n/a
Default

Nope.

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

Any ideas?
Reply With Quote
  #6  
Old 09-27-2001, 05:24 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about the other options?
Are they saved when you save changes to that page?
Reply With Quote
  #7  
Old 09-27-2001, 07:54 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upload usergroup.php again and try it.
Reply With Quote
  #8  
Old 09-28-2001, 04:49 AM
peteqlee
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #9  
Old 09-28-2001, 12:54 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 09-28-2001, 02:06 PM
peteqlee
Guest
 
Posts: n/a
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04035 seconds
  • Memory Usage 2,240KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete