CZModules, Using this with NSN Groups_71-77_170

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   CZModules, Using this with NSN Groups_71-77_170
pcnuke
CZ Newbie
pcnuke has been a member for over 19 year's 19 Year Member
usa.gif florida.gif
Occupation: Raving Maniac
Gender: Male
Website:
Status: Offline
Joined: Jun 06, 2005
0.00 posts per day
Posts: 17
Points: 3,848
   
I dont want to give up CZModules, but would also like the ability of using NSN Groups_71-77_170, which is the latest release. Both these addons do changes within the modules.php file

So my questions is... has anyone made corrections to this file and others which will allow these 2 programs to work within the same Nuke program?

It looks like both of these addons want to using the same type code in this modules.php file...

CZModules: V4.75
----------------------------------------
$result = $db->sql_query("SELECT active, view FROM ".$prefix."_modules WHERE title='$name'");
$row = $db->sql_fetchrow($result);
$mod_active = intval($row['active']);
$view = intval($row['view']);
if (($mod_active == 1) OR ($mod_active == 0 AND is_admin($admin))) {
if (!isset($mop)) { $mop="modload"; }
if (!isset($file)) { $file="index"; }
if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mop)) {
echo "You are so cool...";
}



NSN Groups V71-77_170:
---------------------------------------
$result = $db->sql_query("SELECT * FROM `".$prefix."_modules` WHERE `title`='$name'");
$row = $db->sql_fetchrow($result);
$mod_active = intval($row['active']);
$view = intval($row['view']);
$groups = $row['groups'];
if(($mod_active == 1) OR is_admin($admin)) {
if(!isset($mop)) { $mop="modload"; }
if(!isset($file)) { $file="index"; }
if(ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mop)) {
$pagetitle = "- "._SOCOOL;
include("header.php");
OpenTable();
echo "<center>"._SOCOOL."</center><br>";
echo "<center>"._GOBACK."</center>";
CloseTable();
include("footer.php");
die();
}

===============================================

If so could you give us links to the needed files or post the needed changes we should make.

thanks in advance for your help.



Attached Files
NSN_Groups_modules_fle.zip (1.4 KB, Downloaded: 5239 Time(s))


Back to top Reply with quote
#2   re: CZModules, Using this with NSN Groups_71-77_170
xquin
CZ Newbie
xquin has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Dec 29, 2004
0.00 posts per day
Posts: 1
Points: 266
   
Have you tried it? It looks like it sould work...



Back to top Reply with quote
#3   re: CZModules, Using this with NSN Groups_71-77_170
pcnuke
CZ Newbie
pcnuke has been a member for over 19 year's 19 Year Member
usa.gif florida.gif
Occupation: Raving Maniac
Gender: Male
Website:
Status: Offline
Joined: Jun 06, 2005
0.00 posts per day
Posts: 17
Points: 3,848
   
yup, it overwrites the module.php, and groups works, but then the CZModules Menu section is gone. I tried to blend them together on the module.php, but gave up after about an hour. As you can see above, they both are using the same sections but some have different paths, through out this file, and pulling out what I need from these 2 files to Blend the Groups in with CZModule or vice versa, can be difficult to a person who wrote neither addon... Thought Telli might take a look at it when he got time, thats why I included the Group module file. Perhaps he could add to that included file what has to be there from the CZModules module.php file

thanks



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum