Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
izone
Involved
Involved


Joined: Sep 07, 2004
Posts: 354
Location: Sweden

PostPosted: Tue Oct 12, 2004 7:54 am Reply with quote

Hi

I wonder if there is any way to do this:

On my site I have a God Admin and I want to make a few more admins who each of them have access to administrate diffrent modules. As it is now when you make a new admin you have to give him all access or only access to News or Forums etc.

What if I have a module which needs weekly administration for some change (or daily) and I want to give permission to change only this module to an admin? How or what can I do?

Acctually a friend of mine ask me this question and it sounds intressting to me too.

Best Regards.
 
View user's profile Send private message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Tue Oct 12, 2004 8:31 am Reply with quote

This was posted for me when I asked the same question:
Quote:
What I do, for the easy fix, is to find a module that is listed in the menu that I don't use. Like Encyclopedia.

Then, you need to modify 2 files. First admin/links/links.blocks.php. It looks like this
Code:
 

if ($radminsuper==1) {
    adminmenu("admin.php?op=BlocksAdmin", ""._BLOCKS."", "blocks.gif");
}

Modify it to look like this
Code:
 

if ($radminsuper==1||$radminency==1) {
    adminmenu("admin.php?op=BlocksAdmin", ""._BLOCKS."", "blocks.gif");
}


Next modify admin/modules/blocks.php. It looks like this at the top
Code:
 

$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminsuper) = sql_fetch_row($result, $dbi);
if ($radminsuper==1) {

Modify it to look like this
Code:
 

$result = sql_query("select radminency, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminency, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radminency==1) OR ($radminsuper==1)) {
 
View user's profile Send private message Visit poster's website
izone
PostPosted: Tue Oct 12, 2004 9:40 am Reply with quote

Ok Thanks!

But would you please tell me what would happen when I do these changes?

I didn't understand it well.

Could you please tell me more?

Thanks.
 
blith
PostPosted: Tue Oct 12, 2004 9:52 am Reply with quote

Now that I think about it, what version are you using?
 
izone
PostPosted: Tue Oct 12, 2004 10:08 am Reply with quote

7,4
 
blith
PostPosted: Tue Oct 12, 2004 10:37 am Reply with quote

hmmm my fix will not work. I am sorry. hopefully one of the more 7.4 knowledgeable will chime in now.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©