PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
kdunbar
New Member
New Member


Joined: Apr 08, 2007
Posts: 2

PostPosted: Tue Aug 19, 2008 1:38 am Reply with quote Back to top

I have a need to not only restrict access to some download categories to certain groups, but to disallow those categories to be viewed by anybody else. Currently, even if you disable a category, it's still visible.

My thought was to duplicate the Downloads module (call it Staff_Downloads),
create a new set of nsngd tables (*_staff_nsngd_*), create a staff_nsngd_func.php file, and away I go.

Downloads module works as expected, I just enable that module for the staff group, and nobody else can then see it. My problem is that the second admin menu I get for Staff Downloads operates against the original tables.
I've made some edits on $module_name="Staff_Downloads" but it seems that any php?op= (such as DLMain) works against the original tables. (even though I have all the table edits done in the code, and module name is correct, and the paths are correct...etc.

I'm not sure I understand the admin.php?op=DLMain enough to trouble shoot this. What have I missed in order for the admin menu downloads to work against the new staff_nsngd tables?

Thanks in advance.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Tue Aug 19, 2008 6:41 am Reply with quote Back to top

kdunbar, unfortunately, when there is an admin module, you must also change all the op codes for the second copy. See your Staff_Downloads/admin/case.php file for what I mean. You have to change them in that file as well as in the admin/index.php which passes those op codes in the form actions and URLs.
View user's profile Send private message Visit poster's website
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-2011 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