PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Sun Dec 18, 2005 9:32 pm Reply with quote Back to top

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
Moderator


Joined: Apr 30, 2004
Posts: 3171

PostPosted: Mon Dec 19, 2005 1:13 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Mon Dec 19, 2005 11:41 pm Reply with quote Back to top

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?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5458

PostPosted: Tue Dec 20, 2005 7:10 am Reply with quote Back to top

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 Visit poster's website
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Tue Dec 20, 2005 8:54 pm Reply with quote Back to top

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 ?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5458

PostPosted: Tue Dec 20, 2005 10:31 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Tue Dec 20, 2005 10:33 pm Reply with quote Back to top

there is no later versions so i have no chance in editing it my self?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5458

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

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.
View user's profile Send private message Send e-mail Visit poster's website
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Tue Dec 20, 2005 11:14 pm Reply with quote Back to top

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
View user's profile Send private message
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Tue Dec 20, 2005 11:53 pm Reply with quote Back to top

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
View user's profile Send private message
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Dec 21, 2005 12:05 am Reply with quote Back to top

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
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 3171

PostPosted: Wed Dec 21, 2005 12:28 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Dec 21, 2005 12:28 am Reply with quote Back to top

ok I will do that too
View user's profile Send private message
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.

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-2009 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