created a block, start it, 1/3 of the site gose black

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   created a block, start it, 1/3 of the site gose black
addy_31
CZ Newbie
addy_31 has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Sep 28, 2005
0.00 posts per day
Posts: 3
Points: 77
   
Hi, Hope you is all well...

Okay... i have a problem, and i am still new to PHP, and Nuke.

I have created a block, so it uses Psychostats2 and i have read the tutorial on how to make the block.

I then upload it, and all is well, then when i activate it, I lose all the middle, and right hand side of the site, all gose black, the links on the left works ok, what ever i press just comes up blank.

when i delete the block, every thing is okay again....

Now i have searched, and have checked that the number of modules (24) on the database is the same as counted in my admin center under modules where there is also 24.

Any ideas why its not working ?

Thank you.



Back to top Reply with quote
#2   re: created a block, start it, 1/3 of the site gose black
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
If the site comes back when you deactivate the block, then something in the block is causing the rest of the site not to load after the block loads. Check the install instructions again to see if you missed anything. Make sure the block is compatible with the version of PHP Nuke you're using.



Back to top Reply with quote
#3   re: created a block, start it, 1/3 of the site gose black
addy_31
CZ Newbie
addy_31 has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Sep 28, 2005
0.00 posts per day
Posts: 3
Points: 77
   
Hi Kelly

I did the block myself from a tutorial, this is the code:

<?php
if (eregi("block-hits,php", $PHP_SELF)) {
  Header("Location: index.html");
  die();
}
global $prefix, $dbi;
$result = sql_query("select count from "$prefix."_counter
                     order by type desc limit 0.1", $dbi);
list($count) = sql_fetch_row($result, $dbi);
$content. = $count
?>


any idea what i did wrong ?

Thank you again.


Back to top Reply with quote
#4   re: created a block, start it, 1/3 of the site gose black
addy_31
CZ Newbie
addy_31 has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Sep 28, 2005
0.00 posts per day
Posts: 3
Points: 77
   
okay.. the prob seems to have been:

global $prefix, $dbi

not sure it liked it, as i was not asking for any data from it. So thats something, the block still dose not work... but least i can see it... lol!!



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