Can't get preloader mod to work....

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Can't get preloader mod to work....
WildChildX
CZ Newbie
Status: Offline
Joined: Sep 12, 2003
0.00 posts per day
Posts: 15
Points: 1,637
   
Hi,

I just tried to put the preloader mod on my site and i think i done it right.

But when I reloaded the page it had the header generation time above my logo.gif and that was it.

my_header.php looks like this:

<?php

//Start Preloader+
global $total_time, $start_time, $db, $textcolor1;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$end_time = $mtime;
$total_time = ($end_time - $start_time);
$total_time = "".substr($total_time,0,5)." "._SECONDS."";
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/site/czpre.gif")) {
echo "
Header generated in: $total_time
";
} else {
echo "";
}
//End Preloader+

include_once("includes/my_header_JAG_Online.php");

?>

and the last section of the footer.php is:

function foot() {
global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
if ($home == 1) {
blocks(Down);
}
if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
$cpname = ereg_replace("_", " ", $name);
echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &copy;</a></div>";
}
themefooter();
echo "</body>\n"
."</html>";
die();
}

//Start Preloader+
echo " \n ";
//End Preloader+

foot();

?>

The image czpre.gif had to go in themes/$ThemeSel/images/site/ and I had to create that folder right?

Where have I gone wrong?

Thanx

Andy



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,430
   
You better download it again your missing half of the code.




_________________
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