Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Oct 29, 2003 9:34 am Reply with quote

blocks? It is not an option in the add an admin. Thanks
 
View user's profile Send private message Visit poster's website
Frogger
Worker
Worker



Joined: Oct 06, 2003
Posts: 108

PostPosted: Wed Oct 29, 2003 9:48 am Reply with quote

With Raven's permission.....

The is still a thing with nuke I'd like to see changed myself.

There is a way around it, although it means adding a mod to your site.

Don't know if you have heard of Protector, but it is an excellent IP Tracking/Banning mod that has a feature to assign mods, blocks, etc to specific users.

If you would like to see what I mean contact me and I will give you a demo of it's features....

...unless Raven has a way to do it within phpNuke. Laughing

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
blith







PostPosted: Wed Oct 29, 2003 10:02 am Reply with quote

I have seen protector and I did have it installed for awhile but there were some conflicts and I took it out. I hope there is a way to do this within nuke. Thanks for the suggestion though!!
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Oct 29, 2003 10:02 am Reply with 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
blith







PostPosted: Wed Oct 29, 2003 10:57 am Reply with quote

I understand the code changes but what do they have to do with the block you don't use like Encyclopedia? I want to understand fully before I implement the change. Thanks Raven.
 
Raven







PostPosted: Wed Oct 29, 2003 11:01 am Reply with quote

You might have an admin that has access to Encyclopedia but you don't want them to see blocks. Using this hack will give all admins that have access to Encyclopedia access to Blocks also. That's why I pick one that no one else will use.
 
blith







PostPosted: Wed Oct 29, 2003 12:48 pm Reply with quote

ahh I get it. Thank you. I didn't understand the relationship. you are simply mahvelous
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©