Author |
Message |
blith
Client
![](modules/Forums/images/avatars/102.gif)
Joined: Jul 18, 2003
Posts: 977
|
Posted:
Wed Oct 29, 2003 9:34 am |
|
blocks? It is not an option in the add an admin. Thanks |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Frogger
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/ac836bea3f8168f6de2bc.jpg)
Joined: Oct 06, 2003
Posts: 108
|
Posted:
Wed Oct 29, 2003 9:48 am |
|
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](modules/Forums/images/smiles/icon_lol.gif) |
_________________ Only registered users can see links on this board! Get registered or login! |
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
blith
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 29, 2003 10:02 am |
|
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!! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Oct 29, 2003 10:02 am |
|
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 thisCode:if ($radminsuper==1) {
adminmenu("admin.php?op=BlocksAdmin", ""._BLOCKS."", "blocks.gif");
}
| Modify it to look like thisCode: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 topCode:$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 thisCode:$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)) {
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
blith
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 29, 2003 10:57 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 29, 2003 11:01 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
blith
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 29, 2003 12:48 pm |
|
ahh I get it. Thank you. I didn't understand the relationship. you are simply mahvelous |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|