Author |
Message |
badkemo
Worker


Joined: Mar 31, 2004
Posts: 111
|
Posted:
Sun Dec 18, 2005 8:32 pm |
|
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.
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 |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Mon Dec 19, 2005 12:13 am |
|
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! |
|
|
 |
badkemo

|
Posted:
Mon Dec 19, 2005 10:41 pm |
|
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
|
Posted:
Tue Dec 20, 2005 6:10 am |
|
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+ |
|
|
|
 |
badkemo

|
Posted:
Tue Dec 20, 2005 7:54 pm |
|
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

|
Posted:
Tue Dec 20, 2005 9:31 pm |
|
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

|
Posted:
Tue Dec 20, 2005 9:33 pm |
|
there is no later versions so i have no chance in editing it my self? |
|
|
|
 |
Guardian2003

|
Posted:
Tue Dec 20, 2005 10:05 pm |
|
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

|
Posted:
Tue Dec 20, 2005 10:14 pm |
|
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

|
Posted:
Tue Dec 20, 2005 10:53 pm |
|
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  |
|
|
|
 |
badkemo

|
Posted:
Tue Dec 20, 2005 11:05 pm |
|
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
thank you |
|
|
|
 |
evaders99

|
Posted:
Tue Dec 20, 2005 11:28 pm |
|
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

|
Posted:
Tue Dec 20, 2005 11:28 pm |
|
|
|
 |
|