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)
-   -   [final]Lesser Admin Cp... (https://vborg.vbsupport.ru/showthread.php?t=41556)

monstergamer 04-24-2003 12:12 AM

[edit]i figured it out[edit]

Chris M 04-24-2003 07:02 PM

Ok cool:)

Satan

monstergamer 04-24-2003 11:08 PM

great hack
clicks install

soccerclue 04-25-2003 10:14 PM

hi satan,

what should I do actually if I want to make my Lesser Admin can have all the options that I want except that they cannot degrade my status and I don't want Lesser Admin to promote people to Admin or degrade Lesser Admin to lower status. Like I asked previously, should I copy all the files in admin folder to admin2 folders? Is there any other way so that I don't need to duplicate all the files? Hope you can help me. Thanks.

sabret00the 04-29-2003 01:19 PM

i now have a supermod cp :cool:

Chris M 04-29-2003 06:15 PM

Your other alternative to that would be to make the user an admin, and just apply the hack I released called "Total Admin Security", which is incorporated into this hack:)

@sabret00the;) Cool - Me too:D (I have too many usergroups now though:s lol)

Satan

Frozen Dreams 04-30-2003 03:32 PM

hours and hours I have been trying to install your lesser admin cp ... and when trying to change any aspect of a usergroup now I always get an sql error returned

I have installed 1.4 on a 2.2.9 - and went through the entire installation several times ... Always sql error 1064 in usergroups.php

edited:
no clue how I did it - but this time it works ;)

One more question though - is your security hack included in 1.4 - or do I still have to install it? Since I dont want anyone besides the admin edit anything in the admin accounts

Chris M 04-30-2003 04:27 PM

1.4 does include the security:)

Satan

Chris M 04-30-2003 05:37 PM

I have re-written the Version 1.4 files, and they are to be attached here:)

This file:
install_lesseradmincp_txt.php

Satan

Chris M 04-30-2003 05:38 PM

I have re-written the Version 1.4 files, and they are to be attached here:)

This file:
install_lesseradmincp_usergroups_txt.php

Satan

GaleForce 04-30-2003 07:24 PM

Gonna give it a try later, this hack will be extremely useful for me ;)

Chris M 04-30-2003 08:36 PM

Glad you like it:)

Satan

disfitness 05-15-2003 12:04 AM

Your instructions say...

PHP Code:

find:
-----

//load config
require("./config.php");

// init db **********************
// load db class
$dbservertype strtolower($dbservertype);
$dbclassname="./db_$dbservertype.php";
require(
$dbclassname);

$DB_site=new DB_Sql_vb;

$DB_site->appname="vBulletin Control Panel";
$DB_site->appshortname="vBulletin (cp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;

replace with:
-------------

//load config
require("./../admin/config.php");

// init db **********************
// load db class
$dbclassname="./../admin/db_$dbservertype.php";
require(
$dbclassname);

$DB_site=new DB_Sql_vb;

$DB_site->appname="vBulletin Admin Control Panel";
$DB_site->appshortname="vBulletin (mcp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
$DB_site->connect();

--------------------------- 

But that code doesn't exist. The code looks (in 2.2.9) like this...

PHP Code:

//load config
require("./config.php");
if (
$debug != 1) {
    unset(
$showqueries);
    unset(
$explain);
}

// init db **********************
// load db class
$dbservertype strtolower($dbservertype);
$dbclassname="./db_$dbservertype.php";
require(
$dbclassname);

$DB_site=new DB_Sql_vb;

$DB_site->appname="vBulletin Control Panel";
$DB_site->appshortname="vBulletin (cp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;

$DB_site->connect(); 

Your instructions would mean you have 2 connect statements in the final code. Also, you have removed the debug lines and the "$dbservertype" line? What's going on?

Chris M 05-17-2003 10:54 AM

@disfitness - That was probably by accident that I removed the
Code:

$dbservertype = strtolower($dbservertype);
line...

How do you get 2 connect statements?:confused:

Satan

gmarik 05-18-2003 02:32 PM

Sounds great - but the screenshots kinda don't show nothingnew to me...

Chris M 05-18-2003 02:43 PM

Hmmm...

There isn't really much they can show other than what they do;)

Satan

monstergamer 05-23-2003 03:20 PM

if i want them to be able to un-ban or ban some one how can i do this

Chris M 05-25-2003 11:25 AM

Do you mean via vBulletin options?

Satan

monstergamer 05-25-2003 06:48 PM

Quote:

Today at 08:25 AM hellsatan said this in Post #178
Do you mean via vBulletin options?

Satan

yes i would like the co-admins to be able to ban and unban via the admin2 CP

Chris M 05-25-2003 10:56 PM

I believe there already is a hack for vBulletin options which restricts it to certain functions...

You could copy the options.php file to the admin2, then install that on that file:)

Satan

monstergamer 05-25-2003 11:11 PM

you want me just to copy it?
i did that and nothing
i have no option to ban or unban any where

Chris M 05-27-2003 11:30 AM

It is under the "banning options" header;)

Satan

monstergamer 05-27-2003 12:07 PM

i see no baning option at all

Chris M 05-28-2003 10:39 AM

Really?:eek:

Do you not have:

Quote:

[Edit Options]
[IP Logging Options]
[Floodcheck Options]
[Banning Options]
Satan

monstergamer 05-28-2003 03:44 PM

[edit]yes i do[edit]

but i want to have it where i can ban by user name or id
not by ip

monstergamer 05-28-2003 11:21 PM

is there a way you can make a addon for it like the hack
SuperMods can Unban from ModCP!

except make it for the co-admin
co-admins can Unban from admin2 CP!

Chris M 05-29-2003 09:31 AM

If you install version 1.4 (usergroup) version, they can do just that:)

Satan

csidlernet 05-31-2003 06:47 AM

Sickass hack. better then the one i added...

monstergamer 05-31-2003 07:20 AM

Quote:

05-29-03 at 06:31 AM hellsatan said this in Post #187
If you install version 1.4 (usergroup) version, they can do just that:)

Satan

i did not see this option to ban and un-ban and user
(not ip) user or user id

Tubbie 05-31-2003 07:55 AM

i cant find the sreens :(

monstergamer 05-31-2003 08:12 AM

now since i install the 1.4
my co-admins cant change any thing in some one profile
need help

Chris M 05-31-2003 09:23 AM

Who's profile are they trying to edit?

Satan

monstergamer 05-31-2003 07:00 PM

any bodies except the admin

Chris M 05-31-2003 07:04 PM

If they are trying to edit another co-admin, they cannot...

Satan

monstergamer 06-01-2003 02:54 AM

ok i fixed that problem
and i really hate to bug you
but they cant edit any bodies post

Chris M 06-01-2003 10:19 AM

Did you make them a Super Moderator?

Satan

monstergamer 06-01-2003 07:42 PM

i got it
thanx

Chris M 06-01-2003 08:35 PM

No problems;):)

Satan

monstergamer 06-01-2003 09:27 PM

i re-installed it and moded it a little
i left some of it the same and only changed it like this
so co-admins could not add or move people to or from the Administrators usergroup

in admin2/user
find
PHP Code:

// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") { 

add under
PHP Code:

if (($userid==1) and ($bbuserinfo[userid]!=1)) { 
echo 
"<p>You cannot update this Admin.</p>";
  
cpfooter();
  exit;
}
if ((
$usergroupid==6) and ($bbusergroupinfo[usergroupid]!=6)) { 
echo 
"<p>You cannot make this person Admin.</p>";
  
cpfooter();
  exit;


find
PHP Code:

// ###################### Start Kill #######################

if ($HTTP_POST_VARS['action']=="kill") { 

and add under
PHP Code:

if ($userid==1) { 
echo 
"<p>You cannot delete this Admin.</p>";
  
cpfooter();
  exit;
}
if (
$usergroupid==6) { 
echo 
"<p>You cannot delete this Admin.</p>";
  
cpfooter();
  exit;
}{ 

the rest i left the same

monstergamer 06-01-2003 09:35 PM

this is what it looks like well you click on a user
http://www.monstergamer.net/stuff/1.gif

dropdown box
http://www.monstergamer.net/stuff/2.gif

when they try to edit the admin
http://www.monstergamer.net/stuff/3.gif

when they try to move some one in to the Administrators usergroup
http://www.monstergamer.net/stuff/move.gif


All times are GMT. The time now is 02:10 PM.

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.01584 seconds
  • Memory Usage 1,834KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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