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)

Chris M 08-03-2002 01:55 PM

Never mind...Replace X with your userid...

Satan

Chris M 08-03-2002 03:00 PM

News Update:

Thanks to Xenon (:)), I will update the Lesser Admin CP, to Version 1.3, where, if you choose, you can allow users to update other member's usergroups, just not to Admin or Co-Admin...:)

Satan

Chris M 08-03-2002 04:07 PM

Is here!:)

See the First Post for Update information...

Satan

Hellburn 08-03-2002 04:44 PM

Step 5)

Edit admin2/usergroup.php

Sure admin2? This file is not in admin2.

Step 8) Step 8)

Open user.php : <--------- admin? or admin2?

Chris M 08-03-2002 05:16 PM

I corrected the admin2/usergroup.php mistake - It should be admin/usergroup.php

Step 8) - It says to edit admin2/user.php...

Satan

Hellburn 08-03-2002 05:23 PM

By Step 7) you say:
Open admin2/user.php

but by Step 8)
you say:
Open user.php :

what is right? two times the same file?

Chris M 08-03-2002 05:30 PM

Step 8 can be done in either or both...

Though I recommend doing it in admin2/user.php immediately...

Satan

Hellburn 08-03-2002 06:15 PM

i have installed the hack and his working fine but i have follow error at the user.php :

Parse error: parse error in /homepages/42/d4357757/htdocs/vb/admin2/user.php on line 309

Line 309 is correctly, i can not found a bug.
This is Line 309:

if ($userid==X) and ($bbuserinfo[userid]!=X) {

The X i have change to 2 (my userid)

Chris M 08-03-2002 06:34 PM

Yes...

There should be an extra set of brackets around it :

Code:

if (($userid==2) and {$bbuserinfo[userid]!=2)) {
Satan

Hellburn 08-03-2002 06:53 PM

i have the same error when i changed the code.

Chris M 08-03-2002 07:02 PM

Hmmm...

Send me your admin2/user.php file...

vbhelp@darkblazes.com

Satan

Hellburn 08-03-2002 07:11 PM

oki is ready

Chris M 08-03-2002 07:21 PM

:)

Satan

Xenon 08-03-2002 11:02 PM

Quote:

Originally posted by hellsatan
Code:

if (($userid==2) and {$bbuserinfo[userid]!=2)) {

false type of brakets: you have a { where a ( would be right, or just use one pair of brackets:

Code:

if ($userid==2 and $bbuserinfo[userid]!=2) {

also Satan, please do not recommend Users to send you full files...
Thank you

Chris M 08-03-2002 11:38 PM

Ok sorry...

Xenon - I must have slipped when typing (...

Satan

Hellburn 08-04-2002 09:32 AM

the admincp for a coAdmin is very small :) not the same of the demopicture from you. He can not posting Announcements etc. Why?

Chris M 08-04-2002 09:51 AM

Well...

The Admin Cp is only small, because this is a basic install...

To increase their abilites, you will need to copy the announcements.php file to the admin2 directory, then add a link to it in the admin2 index.php file...

:)

Satan

ExAvIoUr 08-04-2002 03:28 PM

i don't have a admin2 folder. i am a newbie at this.

Chris M 08-04-2002 03:45 PM

You have to create one:)

Satan

ExAvIoUr 08-04-2002 06:19 PM

oops. i didn't read the instructions. my bad.

Chris M 08-04-2002 09:04 PM

Lol its ok:)

Satan

tcs 08-11-2002 04:37 AM

I feel like a goober. I can find the userid numbers quick enaouk but can't find the usergroupid #. Where do I find this?

Night Owl 08-13-2002 03:35 AM

I have started getting this error again:

Quote:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: SELECT usertitle FROM usergroup WHERE usergroupid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Monday 12th of August 2002 05:34:26 PM
Script: http://www....admin2/user.php
Referer: http://www....admin2/user.php?s=&action=edit&userid=439
What does this mean? And what can I do to fix it? I am using version 1.2 of this hack.

Night Owl 08-14-2002 01:54 PM

Wugh. Still getting this error. It is weird. It only happens on a couple of users. When the co-admin goes into the cp to change an avatar or title, she will click on the change avatar button and get this message:

Quote:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: SELECT usertitle FROM usergroup WHERE usergroupid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Wednesday 14th of August 2002 10:46:50 AM
Script: http://.../admin2/user.php
Referer: http://.../admin2/user.php?s=&action=edit&userid=930
It will also happen on a couple of users when she tries to give them a new title.

244 08-14-2002 06:37 PM

Hey I'm getting a error messages that I can't make go away, any ideas?
Quote:

Parse error: parse error, unexpected T_LOGICAL_AND in /home/max/public_html/forums/admin2/user.php on line 297
Here is what is in that line
PHP Code:

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


Thankx,
244

Xenon 08-15-2002 11:00 PM

remove the char in front of your if

Dark Shogun 08-18-2002 01:54 AM

Quote:

VALUES (NULL,'".addslashes($title)."','".addslashes($user title)."',$cancontrolpanel,$canmodifyprofile,$canv iewmembers,$canview,$showgroup,$cansearch,$canemai l,$canpostnew,$canmove,$canopenclose,$candeletethr ead,$canreplyown,$canreplyothers,$canviewothers,$c aneditpost,$candeletepost,$canusepm,$canpostpoll,$ canvote,$canpostattachment,$ismoderator,$canaccess coadmin,$canpublicevent,$canpublicedit,$canthreadr ate,$cantrackpm,$candenypmreceipts,$maxbuddypm,$ma xforwardpm,$canwhosonline,$canwhosonlineip,$canget attachment)");
I can't find this anywhere in admin/usergroups.php

Dark Shogun

Donkeyballz 08-18-2002 04:48 AM

This hack looks nice man :D Good job

Xenon 08-18-2002 01:07 PM

@Shogun: If i'm right this is the part you should have in your file AFTER installing the hack.
Recheck one line in install file before

Chris M 08-31-2002 11:16 PM

Yes Shogun...

You are looking for the line you are supposed to replace;)

Satan

adalberto 09-06-2002 06:59 PM

Hallo.

I'am New admin for vbulletin and my english is not very good ;)

I have a question, where I copy this line ??

Quote:

-------DO NOT COPY THIS LINE-------

Copy this last step out as many times for as many admins as you need to protect from being deleted. To prevent them deleting other users in their usergroup, enter :

-------DO NOT COPY THIS LINE-------

if (($usergroupid==X) and ($bbuserinfo[usergroupid]!=6)) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}
---------------
Please to explain better this modify:
Quote:

(NB : remember change X to the usergroupid of the Admin2 User)
----------------
Last question, for unistal this hack, this query, as I modify it:

Quote:

ALTER TABLE `usergroup` ADD `canaccesscoadmin` SMALLINT(6) DEFAULT '0' NOT NULL
Thank's, Adalberto

Chris M 09-06-2002 09:08 PM

@adalberto...

If I understand correctly, you want to know how to :
  • Copying the line
  • Understand what I meant with the instructions
  • Know how to Uninstall this hack

Right - Well I'll try;)

1.) Copying the line :

You can copy that line under this one :
PHP Code:

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

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

You can copy it out as many times as you need...

2.) Understand what I meant with the instructions :

I meant that you will have to change the letter "X" that is in the code to copy, to the usergroupid of the group you want to protect...

Here is a list of the ones you might want to know :
(The Numbers in Bold are the usergroupid)
2 - Registered User
5 - Super Moderator
6 - Administrator
7 - Moderator

3.) Know how to Uninstall this hack :

To Uninstall, simply reverse the changes made, and run this query :

[sql]ALTER TABLE `usergroup` DROP `canaccesscoadmin`[/sql]

Satan

adalberto 09-08-2002 05:18 PM

Quote:

Originally posted by hellsatan

If I understand correctly, you want to know how to :
Yes is correctly.

But in admin pannel, I when find, modify or add user result this error:
Parse error: parse error in /httpdocs/admin/user.php on line 308


Thank's Adalberto

Chris M 09-08-2002 05:23 PM

Have you made sure that you have changed the "X" in the code below?

PHP Code:

if (($usergroupid==X) and ($bbuserinfo[usergroupid]!=6)) { 
echo 
"<p>You cannot delete this Admin.</p>";
cpfooter();
exit;


Satan

adalberto 09-08-2002 06:09 PM

Quote:

Originally posted by hellsatan
Have you made sure that you have changed the "X" in the code below?
Yes...

mmm... sorry, but this X is 6 ?? :confused:

Chris M 09-08-2002 06:21 PM

6 is usually the usergroupid of Administrators...

Therefore you will need to change this :

PHP Code:

if (($usergroupid==X) and ($bbuserinfo[usergroupid]!=6)) { 
echo 
"<p>You cannot delete this Admin.</p>";
cpfooter();
exit;


to
PHP Code:

if (($usergroupid==6) and ($bbuserinfo[usergroupid]!=6)) { 
echo 
"<p>You cannot delete this Admin.</p>";
cpfooter();
exit;


Satan

adalberto 09-08-2002 06:30 PM

Quote:

Originally posted by hellsatan
[B]6 is usually the usergroupid of Administrators...

Mmm... I had already change, but this error remains :bored:

Sorry, this number where I find??

Chris M 09-08-2002 06:40 PM

Goto your Admin Control Panel...

Scroll down until you find under "Usergroups", the Modify link...

Click it...

Hover over the group you want to protect, and look in the bottom left corner...There should be a link...

The number on the end of the link is the usergroupid...

If that does not work, post the lines that the error is occuring on...

Satan

adalberto 09-08-2002 07:10 PM

The usergroupid is exact 6

The error line is this:

if ($userid==42) and ($bbuserinfo[userid]!=42) {

42 is amministrator number.

Mmmm... I forgot, have a 2.2.7 vBulletin version :bored:

Chris M 09-08-2002 07:55 PM

You need 2 sets of brackets;)

It should be :

PHP Code:

if (($userid==42) and ($bbuserinfo[userid]!=42)) { 

Satan


All times are GMT. The time now is 04:18 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.01322 seconds
  • Memory Usage 1,827KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_php_printable
  • (11)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