Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Chief




Joined: Mar 15, 2005
Posts: 10

PostPosted: Tue Mar 22, 2005 4:52 pm
Reply with quote

Hi Again ... I try to give access to a new admin to this modules only ... its work great if the user have Superadmin right but if I give him access to Maps section only I have this error


ERROR:

You do not have administration permission for module "Maps"

I have added admin fonction in the database, admin.php and author.php I have sql request to access to the admin fonction.

After my modification when I log with this user I have the Maps Icon but I have this error when I try to enter in the map admin fonction.

You have step by step the modification to integrate your module in nuke 7.0 ?

I miss something..

_________________
www.jtf-2.com 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Mar 22, 2005 7:46 pm
Reply with quote

if your trying to do what i think, this might be the solution.
assuming your using map manager 1.0 uni and nuke 7.0

Find
Code:
$result = $db->sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'");


Change to
Code:
$result = $db->sql_query("select radminmaps, radminsuper from ".$prefix."_authors where aid='$aid'");


find
Code:
list($radminsuper) = $db->sql_fetchrow($result);


Change to
Code:
list($radminmaps, $radminsuper) = $db->sql_fetchrow($result);


Find
Code:
if ($radminsuper==1) {


Change to
Code:
if (($radminmaps) OR ($radminsuper==1)) {
 
View user's profile Send private message Visit poster's website
Chief




Joined: Mar 15, 2005
Posts: 10

PostPosted: Tue Mar 22, 2005 8:12 pm
Reply with quote

Great ... its work !!

Thx !

_________________
www.jtf-2.com 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Mar 22, 2005 8:50 pm
Reply with quote

Maybe you could post the other steps you took to make this work so other users can enjoy it.
 
View user's profile Send private message Visit poster's website
Chief




Joined: Mar 15, 2005
Posts: 10

PostPosted: Tue Mar 22, 2005 9:27 pm
Reply with quote

I will try to write it for myself ... I have cut / paste a lots lol this afternoon.

I will make that again with another modules to see the right method and i will post here the result.

When I try much longer I cant remember all what I have done. Wink

But thx for the fine tuning.

_________________
www.jtf-2.com 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
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
You cannot attach files in this forum
You cannot download files in this forum


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