vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   ADVANCED MOD CONTROL PANEL v2.0 (https://vborg.vbsupport.ru/showthread.php?t=22663)

jrwap 08-06-2001 10:45 PM

I think that could be a useful feature if I am understanding it correctly.

I am basicly setting up communities for various organizations and allowing them to run them on their own with only minimal help from me. I would want the mods to have complete control over many aspects of the forum. Obviously, I wouldn't want them to be able to edit the templetes and things of that nature.

I think that this is a very good hack and with a few more additions it should become part of the actual software. Please keep us up to date with any additions.

Thanks,

-JRW

almighty one 08-19-2001 06:08 PM

ok i couldnt find this post till just now anyways i get a parese error on a line when i try this hack i dont know if it is the way i ama dding the part that says add this to end of file there is the end like ?> do i put it before this yes? or after it? i figured it had to be before that could soemone who has this working tell eme xactly where to insert the start unban part of code thanx alot

SirSteve 08-20-2001 04:43 PM

This thread needs to be started over... I cannot understand any of it. Is this an actual working hack?

almighty one 08-20-2001 09:44 PM

someone said they got it working i just need a little help here to get mine working i really need one of my co admins to access user profiles to edit them please help me here if ya got it working

drives_fast 08-21-2001 12:30 AM

Unplugged,
I tried to e-mail you but your status stated that you did not want to receive e-mails.

Would you please e-mail me at drivesfast@globaldungeon.net. I would like to use this hac please.

anothony121 08-21-2001 12:41 AM

I want the hack E-mail me the Info where to download it please.



Lisandrogrullon@hotmail.com

k@mi 08-21-2001 08:11 PM

I want it so that Mods can change the user level of a person Except to Mod or above...
ie: A Regular User can be changed to "Clan Member"

:/

k@mi 08-21-2001 09:27 PM

got it working
:)
heres how i did it:

Under:
PHP Code:

maketableheader("Edit User:</b> $user[username]<b>","",0);
makeinputcode("User Name","ausername",$user[username],0); 

Add:
PHP Code:

makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]); 

Modify:
PHP Code:

  $countadmin=$DB_site->query_first("SELECT COUNT(*) AS users FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND usergroup.cancontrolpanel=1 AND user.userid<>$userid");
  
$getperms=$DB_site->query_first("SELECT cancontrolpanel FROM usergroup WHERE usergroupid=$usergroupid");
  if (
$countadmin[users]==and $getperms[cancontrolpanel]!=1) {
    echo 
"<p>You are about to edit the last user with control panel access so that they do not have control panel access. This would lock you out of the control panel, so you cannot proceed.</p></body></html>";
    exit;
  } 

To: (change ($usergroupid != "19" && $usergroupid != "2") to what you want if to be allowed to change, 19 just happens to be our clan members group, 2 is the registered group)
PHP Code:

  if    ($usergroupid != "19" && $usergroupid != "2")    {
      echo 
"<p>You may not change this user to this level.</p></body></html>";
      exit;
  
      }
  else    {
  
$countadmin=$DB_site->query_first("SELECT COUNT(*) AS users FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND usergroup.cancontrolpanel=1 AND user.userid<>$userid");
  
$getperms=$DB_site->query_first("SELECT cancontrolpanel FROM usergroup WHERE usergroupid=$usergroupid");
  if (
$countadmin[users]==and $getperms[cancontrolpanel]!=1) {
    echo 
"<p>You are about to edit the last user with control panel access so that they do not have control panel access. This would lock you out of the control panel, so you cannot proceed.</p></body></html>";
    exit;
  }



Lordmusic 08-22-2001 08:39 PM

k@mi, does that work with 2.0.3 and can you restrict what user groups have this full power?

SirSteve 08-22-2001 08:43 PM

Can someone start over from the beginning with this hack?


All times are GMT. The time now is 01:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01026 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete