CZ Hide Blocks Mod

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   CZ Hide Blocks Mod
Tendency
CZ Super Newbie
 Codezwiz Site Donator
Tendency has been a member for over 20 year's 20 Year Member
usa.gif florida.gif
Occupation: Longshoreman
Age: 54
Gender: Male
Fav. Sports Team: Dallas Cowboys
Website:
Status: Offline
Joined: Nov 25, 2003
0.01 posts per day
Posts: 97
Points: 9,373
  MSN Messenger 
I have a funny problem with the CZHideBlocks Mod. It wont control the right blocks, but works on the left blocks fine. Any ideas? Running Nuke 7.5

The only difference between the readme and the original files was with the Admin/Modules/Modules.php were the line is showing an extra set of '' at the end of the code.

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


Should the code look like this?

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


Or like this?

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


Would that be the cause of my problems?


Back to top Reply with quote
#2   re: CZ Hide Blocks Mod
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I am running into the same issue with Nuke 7.4 patched. Works on the left blocks but not on the right ones.




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#3   Re: CZ Hide Blocks Mod
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   


Originally posted by Tendency @ Thu Sep 30, 2004 2:19 pm:

I have a funny problem with the CZHideBlocks Mod. It wont control the right blocks, but works on the left blocks fine. Any ideas? Running Nuke 7.5

The only difference between the readme and the original files was with the Admin/Modules/Modules.php were the line is showing an extra set of '' at the end of the code.

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


Should the code look like this?

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


Or like this?

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


Would that be the cause of my problems?


No you should have one extra 7.5 added a field admins for the new admin control panel.

Try opening the module with the problem and deleting the $index = 1; see if that makes any differance.



_________________
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
#4   Re: CZ Hide Blocks Mod
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   


Originally posted by Telli @ Sat Oct 02, 2004 8:22 pm:

Try opening the module with the problem and deleting the $index = 1; see if that makes any differance.


That line of text isn't in the index.php for the Content Module. That is the module I am having a problem with. It seems some of the modules work fine, but others don't.

By the way, I really like this module. It has some huge timesavings in it. Thanks for your hard work!




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#5   re: CZ Hide Blocks Mod
Tendency
CZ Super Newbie
 Codezwiz Site Donator
Tendency has been a member for over 20 year's 20 Year Member
usa.gif florida.gif
Occupation: Longshoreman
Age: 54
Gender: Male
Fav. Sports Team: Dallas Cowboys
Website:
Status: Offline
Joined: Nov 25, 2003
0.01 posts per day
Posts: 97
Points: 9,373
  MSN Messenger 
Thats the problem, there is no $index = 0; or $index = 1; in the index.php files of certain modules. So, if you edit those index.php files and add $index = 1; or $index = 0; to them, it works fine. It doesnt matter if you use 0 or 1, as the blocks will now be controled by the HideBlocks mod. It would seem the mod requires the $index statement be in a modules index.php for it to work.

Thanks for the help, works great now.



Back to top Reply with quote
#6   re: CZ Hide Blocks Mod
DaChaos
CZ Newbie
DaChaos has been a member for over 19 year's 19 Year Member
usa.gif florida.gif
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Sep 23, 2004
0.00 posts per day
Posts: 1
Points: 715
AIM Address Yahoo Messenger MSN Messenger 
i cant seem to find this mod in the downloads section cause i downloaded one from geterdones site and came here to check for a update but i cant even find the original i was wondering if there would be a prob running it on phpnuke platinum 7.6



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