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)

adalberto 09-08-2002 08:22 PM

Ahhh... Now it's ok... but in your file (1.3) is:
PHP Code:

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

;) ;)

Thank's very much for your help :D

TheSaint-AeD 09-15-2002 03:03 PM

First of all I want to say Thx a lot @ Satan for this great Hack! This was exactly what I was searching for.


While hacking the files I encountered some Problems due to some Errors you made. Here they are :) :


Wrong Link in the first Post of the Thread:

The File-Attachement points to a file named 'instructionsupdate2.txt' which unfortunately is the 1.2 Version and not the newest 1.3 Version.


Script Error in the 1.2 Version:

Search this Code in instructionsupdate2.txt

PHP Code:

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


This refers to users.php at about line 300. As you can see while reading this thread, the code causes problems to the Users. This is, because the hint that your user-ID is 1 is missing and two brackets () are missing. The right Code is:

PHP Code:

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


This solves the problems discussed over the last 5 pages, perhaps a Mod could delete those posts as the Solution is here and the thread gets too complicated.


With friendly greetings, TheSaint-AeD

P. S.: Now I will hack the files to 1.3 Version, I'll keep you informed if I encounter any Problems, even if they are the same.

Chris M 09-15-2002 03:42 PM

@File attachment - I decided to leave 1.2 as the Attached Version, as either 1.2 or 1.3 can be used;) Both take different avenues of hacking:)

@Errors - 1.2 & 1.3 versions updated:)

I used "X", because your userid might not be 1;)

Thanks for the positive feedback:)

Satan

TheSaint-AeD 09-15-2002 04:23 PM

I tried to update my 1.2 Version to 1.3 . As this Hack was the only installed Hack on my VB 2.2.7 I simply took user.php in an unchanged version and performed Step 7+8 aswell as the alternate options on the bottom. Now I get a blank screen if I try to log in the Lesser-Admin-CP on /admin2/index.php ?

Any suggestions?

Comment: I'm no Newbie and did exactly what was described in the hack.

TheSaint-AeD 09-16-2002 01:49 PM

Dear VB-Staff, I need help with the Problem stated above, I'm not able to find a solution to this, as I hacked everything like stated from Satan.

And I have some further Questions:

How is it possible, to give some Groups Access to the LA-CP (Lesser Admin CP) and not only the Group Co Admin? Can I simply add them as Lesser Admins over the ACP or do I have to hack every single Group?

TheSaint-AeD 09-16-2002 04:27 PM

ok.

I took a whole unmodified VBB 2.2.7 and applied the 1.3 Hack to be sure, I made no mistakes during the last tryout, and I encounter still the same problem: a blank screen on admin2/index.php

I didn't encounter this Problem in the previously applies 1.2 version, but I need the 1.3 Version as I want to ally my lesser Admins to create/change User Groups.

Chris M 09-17-2002 02:49 PM

Hmmm...

I can suggest 2 things:

1 is that you did not hack global.php correctly...
2 is that you uploaded the files in ASCII mode, not Binary...;)

Satan

TheSaint-AeD 09-17-2002 11:09 PM

hmm...

1. I edited global.php exactly as told in your 1.3 file
2. I uploaded it in Binary...

TheSaint-AeD 09-18-2002 12:24 PM

Okay. I will edit global.php once again (for the third time) to make sure I did no mistakes. I'll keep you informed on the Progress.

TheSaint-AeD 09-20-2002 02:57 PM

Ok, I got it working now. There are no errors in Satan's Script. It was just, that I made some personal Changes to it because my Lesser Admins get more Options as in his Hack, and in theses changes made an error.

Sorry.

Thx again for this great Hack, Satan. In my Opinion, the most important Hack on hole vB.org

Chris M 09-20-2002 03:02 PM

Lol...

Glad you found out what was wrong;) I know that there was that 2 bracket error in version 1.2 & 1.3, but that was pretty much all I could find as regards errors;)

If anyone has any suggestions for 1.4, or what have you, by all means make them:)

Satan

TheSaint-AeD 09-24-2002 10:21 PM

Do you know anything about vB3? Imo this should get a standart Feature to it as I never want a Board again without it!

Chris M 09-25-2002 02:18 PM

Lol...

I doubt that will happen;)

I will update this for vB3 as soon as it is released, as I will still want the same kind of optionability...

Satan

Sengir 10-11-2002 03:05 PM

Hmm I like this idea.. I would like to allow the admin to change member's usergroups.. But restrict them from adding specific ones. Will this hack allow for this? Also would like to prevent them from changing forum permissions.

Chris M 10-11-2002 05:39 PM

Hmmm...

I will investigate into the usergroups bit:D

And the forum permissions...I shall get back to you;)

Satan

Sengir 10-12-2002 01:08 PM

Thanks :) Seems sometimes admins like to give people access they shouldn't have.. Plus, I don't want anyone changing all the work I've done on the forums permissions.. :)

Chris M 10-12-2002 01:55 PM

Right...

If you download Version 1.3 of this hack, it contains the instructions for allowing them to change users...

I will also be uploading an addon .txt file soon, with the instructions for just that...

As for the forum permissions...I recommend not adding that to the /admin2/ folder directory;)

Satan

!!!cyr0n_k0r 10-17-2002 04:43 AM

why dont the pictures work?

TheSaint-AeD 10-17-2002 07:18 AM

Quote:

Originally posted by Sengir
Hmm I like this idea.. I would like to allow the admin to change member's usergroups.. But restrict them from adding specific ones. Will this hack allow for this? Also would like to prevent them from changing forum permissions.
Customizing the lesser Admin Hack to your Board ist simple :)

If you want LA's zu be able to Change the Usergroup, simply undo all Changes from Step 7.

If you don't want LA's to be able to edit User-Groups as such, be sure the file "usergroup.php" isn't in /admin2/ and check /admin2/index.php for the NAV-Options (Step9) and be sure, to kill the Usergroup-Nav-Options ^^

Hope that helps you.

spaceb 10-18-2002 11:01 AM

why when i editing some group i dont see the lesser admin option?

TheSaint-AeD 10-18-2002 01:13 PM

Did you run the MySQL Querry properly?

spaceb 10-18-2002 03:27 PM

yes i did and its all working fine only when i editing another groups and leeser admin group i dont see the option of lesser admin but when i creating a new group i see it

Chris M 10-18-2002 06:29 PM

Hmmm...

Are you sure that you made the changes to the "forum.php" file correctly?

@!!!cyr0n_k0r - Hmmm...They should work:confused:

Satan

Koss 11-27-2002 05:23 AM

Thanks for this awesome hack, but I have one question:
when you say open global.php (in step 6) you mean admin/global.php right?

Koss 11-27-2002 05:39 AM

arghhh nvm found it

Koss 11-27-2002 06:57 AM

man I cant login....can someone help?

Koss 12-03-2002 06:29 AM

bump?

dmark101 12-11-2002 08:05 PM

this is the error message i get from my admin2 forum after installing and trying to look up a user:

Quote:

There seems to have been a slight problem with the *********.com Forums database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.
i'm not sure what the problem is, but i haven't installed any mods on the lesser admin area at all. it's only with admin2/user.php as well.

any clues?

Chris M 12-12-2002 12:48 PM

@Koss - The changes refer to the admin2/global.php file - Not the admin/global.php file

@dmark101 - Have you made sure to run the Queries?

Satan

Strider Xero 12-15-2002 09:26 AM

i'd like the Lesser admin to be able to upload/modify avatars too...how can I add this option to their cp?

dmark101 12-15-2002 11:20 AM

Quote:

Originally posted by hellsatan
[B@dmark101 - Have you made sure to run the Queries?[/B]
i'm not entirely sure what you mean by this.


when i first installed this mod, it worked great. now, my lesser admins can access all of the other functions, but they cannot look up a user.

thanks.

Chris M 12-15-2002 02:57 PM

Sorry...I wasnt thinking straight;)

A database error suggests one of two things:

a.) You have removed a hack, which affects the database and admin/user.php...You may have forgotten to remove the part of code in the admin2/user.php, and therefore it is trying to search the database for a field that doesnt exist...
b.) You have installed a new hack that affects admin/user.php, and havent made the changes to admin2/user.php...

:)

Satan

Bison 12-18-2002 11:01 PM

Tested this and all I get is a blank screen after uploading the files.

The "admin2/index.php" pages doesn't show up at all!

PS: and I did upload this in binary ... toggled every file from binary/ascii ... no luck! :(

Chris M 12-18-2002 11:29 PM

That suggests to me that you didnt edit global.php in the admin2 folder;)

Satan

Bison 12-18-2002 11:49 PM

I did ... I'll show you the file ... check your pm's! ;)

Chris M 12-19-2002 12:02 AM

Already noticed one thing:

Code:

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

Should be:

Code:

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

Other than that it looks ok:)

Satan

Chris M 12-19-2002 12:05 AM

vB2.2.9 Update

Ok...

For 2.2.9, there is one thing that isnt included in this file change...

Now, there is an extra change to make to the new global.php file:

Find:
Code:

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

Replace with:
Code:

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

:)

Satan

Bison 12-19-2002 01:29 AM

Thanks for the fix ... worked well! :D

Chris M 12-19-2002 08:57 AM

Thats ok!:)

I forgot to check for the vB updates;)

Now I should really update my admin2/global.php to the 2.2.9 one;)

Satan

Bison 12-19-2002 10:27 AM

Did you update the hack version?


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.01297 seconds
  • Memory Usage 1,819KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_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
  • (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