View Single Post
  #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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01283 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete