Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
badkemo
Worker
Worker



Joined: Mar 31, 2004
Posts: 111

PostPosted: Sun Dec 18, 2005 8:32 pm Reply with quote

Hi

I have a question about the module in admin.php called EDIT ADMINS


I have few modules like 4nAlbum on my site that I would like to add to the this list.

Image

I would like to edit it to that list so I dont have to give an new admin SUPER USER OPTIONS to operate the galery.

im running nuke 7.6

i would like to add 4nalbum to >> news, survays, your account, topics and super user
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Dec 19, 2005 12:13 am Reply with quote

You would basically have to add all the administrative functions into
modules/YOURMODULE/admin/index.php
This will set up admin permissions for that module

See the existing modules for the basic template how to do this

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
badkemo







PostPosted: Mon Dec 19, 2005 10:41 pm Reply with quote

i cant see anything in the existing modules "index.php" it's not ringing any bells or i dont know what im serching for

how does that code look like?
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Dec 20, 2005 6:10 am Reply with quote

When phpNuke went into V7.5 some of the exisiting files in
admin/case
admin/links
admin/modules
where removed and the code in those files were added to the modules/yourmodulename/admin directory structure - that is why you should see two lots of admin controls when you go to admin.php
The upper links are for the God admin and the lower links represent modules that the God admin can give access to other admins.

If you do not feel comofortable incorporating those changes yourself, it might be an idea to revisit the module authors website and see if they have a version for phpnuke 7.5+
 
View user's profile Send private message Send e-mail
badkemo







PostPosted: Tue Dec 20, 2005 7:54 pm Reply with quote

I have e-mailed the authors of module 4nAlbum092 long before i posted on this forum and they never replyed to me what so ever

when you say

admin/case
admin/links
admin/modules

and when i go to admin i see there is

case.4nalbum.php
links.4nalbum.php

and when i go to admin/Modules i see a folder wich is called
4nAlbum

but there is no modules.4nalbum.php

is it that what i'm missing ?
 
Guardian2003







PostPosted: Tue Dec 20, 2005 9:31 pm Reply with quote

I dont think so, they probably just moved the code to the admin/modules/4nAlbum
At least this confirms your version was designed for pre nuke 7.5 versions.
 
badkemo







PostPosted: Tue Dec 20, 2005 9:33 pm Reply with quote

there is no later versions so i have no chance in editing it my self?
 
Guardian2003







PostPosted: Tue Dec 20, 2005 10:05 pm Reply with quote

As Evaders99 said in his reply to your first post, you would need to take all the functions out of
admin/links
admin/case
and add them to the module index.php file
also it would seem you would also have remove the admin/4nalbum folder and all its files and move them to modules/4nalbum/admin
and then reched all the links in those files to make sure when a function is called, it is pointing to the right file

Not a 5 minute job which is possibly why it has not been updated.
 
badkemo







PostPosted: Tue Dec 20, 2005 10:14 pm Reply with quote

let me see if i understud this my english is not very good

you want me to go into

admin/links
admin/case

and copy everythiong form inside into

admin/modules/4nAlbum/index.php

and than move all that that is in that admin/modules/4nAlbum folder move everything to

public_html/modules/4nAlbum/admin

of course I would have to make that ADMIN folder because the original file didnt come with one

im sorry for giving you hard time but I'm having trouble understaning english is my 4th language
 
badkemo







PostPosted: Tue Dec 20, 2005 10:53 pm Reply with quote

i have done everything above i have moved



to public_html/modules/4nAlbum/admin and all the files from admin/modules/4nAlbum to public_html/modules/4nAlbum/admin

than i have renamed

case.4nalbum.php
links.4nalbum.php

to

case.php
links.php

and now i can see the selection for the new admin

now the only trrpouble is when i assign that to the new admin he i not able to see that file when he loges in Sad
 
badkemo







PostPosted: Tue Dec 20, 2005 11:05 pm Reply with quote

i think i have figured it out even through they cannt see the 4nalbum picture link in admin.php they can klick on the link that i will provide on the side for them Smile

thank you
 
evaders99







PostPosted: Tue Dec 20, 2005 11:28 pm Reply with quote

Mm they should be able to see the picture link in the Modules Administration menu. You'd have to check the code in links.php to make sure that is correct
 
badkemo







PostPosted: Tue Dec 20, 2005 11:28 pm Reply with quote

ok I will do that too
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

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 ©