CZHideblocks

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   CZHideblocks
Stygian
CZ Super Newbie
Stygian has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 31, 2004
0.01 posts per day
Posts: 41
Points: 4,528
   
Great addon love it instead of manually editiing the theme but a quick question.

I have a small bit of code that acts like a module the purpose of the code is to load a html page into where a module would usually load.

Since installing this addon now my code no longer comes up as a module in the module manager. Is there a special piece of code it's looking for? I have the backed up files and by replacing them and going back to the old I no longer have the option but the code works again and the modules appear in the list.



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
No its got nothing to do with the actual modules. Make sure you have an index.php in th module folder.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: CZHideblocks
Stygian
CZ Super Newbie
Stygian has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 31, 2004
0.01 posts per day
Posts: 41
Points: 4,528
   
Ya I have the Index.php thats all thats there, It's just a module that tells nuke to load a webpage into that frame instead of writing a module to do it.

With your addon enabled I can't use my loadpage mod kinda interesting anyway.



Back to top Reply with quote
#4   re: CZHideblocks
devil-strike
CZ Newbie
devil-strike has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jan 09, 2004
0.00 posts per day
Posts: 11
Points: 1,876
   
Hello I have the same problem when I install the CZHideblocks and change every thing I cant add any modules I have phpnuke 7.5.
When I delete every thing and put my backup back in place I see the added modules again in admin panel.

so maybe you now a fix for it telli ?



Back to top Reply with quote
#5   re: CZHideblocks
Zorekaz
CZ Newbie
Zorekaz has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 08, 2004
0.00 posts per day
Posts: 6
Points: 498
   
I'm haveing the same problem with the czm4-75 block. it wont let me add new modules.



Back to top Reply with quote
#6   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Your not editing the admin/modules/modules.php correctly or your not running the install for it. Double check your editing and your data table.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   re: CZHideblocks
devil-strike
CZ Newbie
devil-strike has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jan 09, 2004
0.00 posts per day
Posts: 11
Points: 1,876
   
i have checked 5 times telli but i think its the czhb.php when i delete the czhb from phpmyadmin and use the standard nuke 7.5 SQL it's working just fine.
But when I install czhb.php again it's not working.

SO i think it's that but i am not sure if you want 2 see more info just ask.

Devil-Strike



Back to top Reply with quote
#8   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Attach the admin/modules/modules.php and a dump of your nuke_modules table AFTER you have added the edit's.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: CZHideblocks
devil-strike
CZ Newbie
devil-strike has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jan 09, 2004
0.00 posts per day
Posts: 11
Points: 1,876
   
Oke telli here the are.

THX for cheking



Attached Files
modulessql.rar (994 Bytes, Downloaded: 5244 Time(s))
Attached Files
modulesphp.rar (3.17 KB, Downloaded: 5245 Time(s))


Back to top Reply with quote
#10   re: CZHideblocks
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Ok this is your sql file there are 10 fields


CREATE TABLE `nuke_modules` (
  `mid` int(10) NOT NULL auto_increment,
  `title` varchar(255) NOT NULL default '',
  `custom_title` varchar(255) NOT NULL default '',
  `active` int(1) NOT NULL default '0',
  `view` int(1) NOT NULL default '0',
  `inmenu` tinyint(1) NOT NULL default '1',
  `mod_group` int(10) default '0',
  `admins` varchar(255) NOT NULL default '',
  `hideleft` int(1) NOT NULL default '0',
  `hideright` int(1) NOT NULL default '0',
  PRIMARY KEY  (`mid`),
  KEY `mid` (`mid`),
  KEY `title` (`title`),
  KEY `custom_title` (`custom_title`)
) TYPE=MyISAM;


Now lets look in the admin/modules/modules.php for the main query that checks the modules folder for new modules:


    $handle=opendir('modules');
    while ($file = readdir($handle)) {
   if ( (!ereg("[.]",$file)) ) {
      $modlist .= "$file ";
   }
    }
    closedir($handle);
    $modlist = explode(" ", $modlist);
    sort($modlist);
    for ($i=0; $i < sizeof($modlist); $i++) {
   if($modlist[$i] != "") {
       $row = $db->sql_fetchrow($db->sql_query("SELECT mid from " . $prefix . "_modules where title='$modlist[$i]'"));
       $mid = intval($row['mid']);
       if ($mid == "") {
      //$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0', '')");
       $db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0', '0', '0')");
       }
      }
    }


In there you will see this (also in the instructions)


       $db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0', '0', '0')");


But in there I only count 9 fields. In that case the modules will never update because the field values don't match so on the end of that add one more , '0' and you should be all set.

Telli



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
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