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 -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
sting
Involved
Involved


Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Tue Jan 24, 2006 12:32 pm Reply with quote

Have found one issue while using the admin module specifically editing NSN-Group info -

Whenever I go to the modules section and change a module to be groups only and select the group and hit save it is still referencing admin.php in the code. Those who have changed $admin_file to something else other than admin.php will get a 404.

To fix - in modules.php specifically the module_edit_save() function:

Change
Code:


function module_edit_save($mid, $custom_title, $view, $groups, $inmenu, $mod_group) {
    global $prefix, $db;
    if($view == 4) { $ingroups = implode("-",$groups); }
    if($view < 4) { $ingroups = ""; }
    $mid = intval($mid);
    if ($view != 1) { $mod_group = 0; }
    $result = $db->sql_query("update " . $prefix . "_modules set custom_title='$custom_title', view='$view', groups='$ingroups', inmenu='$inmenu', mod_group='$mod_group' where mid='$mid'");
    Header("Location: admin.php?op=modules");
}



to

Code:


function module_edit_save($mid, $custom_title, $view, $groups, $inmenu, $mod_group) {
    global $prefix, $db, $admin_file;
    if($view == 4) { $ingroups = implode("-",$groups); }
    if($view < 4) { $ingroups = ""; }
    $mid = intval($mid);
    if ($view != 1) { $mod_group = 0; }
    $result = $db->sql_query("update " . $prefix . "_modules set custom_title='$custom_title', view='$view', groups='$ingroups', inmenu='$inmenu', mod_group='$mod_group' where mid='$mid'");
    Header("Location: " .$admin_file.".php?op=modules");
}



Hope this helps...

-sting
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Wed Jan 25, 2006 12:17 am Reply with quote

Thanks! Good to see you on the boards again. Let me know if/when you want to get more involved [again] Wink
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

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 ©