PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
blith
Client


Joined: Jul 18, 2003
Posts: 977

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

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 Back to top

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
blith
Client


Joined: Jul 18, 2003
Posts: 977

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

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!!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 AIM Address Yahoo Messenger
blith
Client


Joined: Jul 18, 2003
Posts: 977

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

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.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
blith
Client


Joined: Jul 18, 2003
Posts: 977

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

ahh I get it. Thank you. I didn't understand the relationship. you are simply mahvelous
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum