View Full Version : PHPNuke Loader???
Pablo
March 9th, 2004, 15:45
im having a little problem with a phpnuke loader, it just doesnt stay till the page finish loading, it dissapears lot of time b4
plz anybody help
thx in advance :-)
Decker
March 9th, 2004, 17:01
Don't understand what you mean there, can you give a link ?
Pablo
March 9th, 2004, 17:03
http://xtreme-graphics.themike.org
look at the loader, it dissapears b4 the page ends loading
Decker
March 9th, 2004, 17:16
Sorry, if it's a preloader with no time delay them it just shoots through.
Pablo
March 9th, 2004, 17:17
shall i put the code here and u tell me wot to change? thx :-)
Decker
March 9th, 2004, 17:19
Why not - someone might be able to help - remember it's the preload script
Pablo
March 9th, 2004, 17:23
ok this is the code that goes in the my_header file:
//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 "<DIV ID=waitDiv style=position:absolute;left:350;top:300;visibility:hidden><center>
<table cellpadding=6 cellspacing=0 border=0 bgcolor=transparent>
<tr><td align=center><font class='content'><b>
Header generated in: $total_time</font></b><br /><br />
<img src='themes/$ThemeSel/images/site/czpre.gif' border='0'></td></tr>
</table></center></DIV>
<SCRIPT> <!--
var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name) {
if (document.getElementById)
{ return document.getElementById(name).style; }
else if (document.all)
{ return document.all[name].style; }
else if (document.layers)
{ return document.layers[name]; }
}
function ap_showWaitMessage(div,flag) {
if (!DHTML) return;
var x = ap_getObj(div); x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById) if(document.layers) x.left=280/2; return true; } ap_showWaitMessage('waitDiv', 1);
//--> </SCRIPT>";
} else {
echo "";
}
//End Preloader+
and this one goes in the footer file
//Start Preloader+
echo " <SCRIPT language=javascript> <!--
ap_showWaitMessage('waitDiv', 0);
//--> </SCRIPT> </body>\n </html>";
//End Preloader+
thank u for everything
Decker
March 9th, 2004, 17:30
Looks like that's the bit - probably wrong and someone better can say - where is the script from as it may have some guidelines
$total_time = "".substr($total_time,0,5)." "._SECONDS."";
Pablo
March 9th, 2004, 17:32
i dont understand wot u mean
wot shall i do with that line?
Pablo
March 9th, 2004, 18:17
dont worry, i found the problem
i think it was that this loader was only a header loader, and wot i wanted was a full page loader, so thats wot im gonna look for
thx for ur help anyway :coolmusic
Chinese_Power
March 9th, 2004, 18:47
Pablo where did you find that script ? Im interested
Pablo
March 9th, 2004, 18:49
http://www.codezwiz.com
its not so good, it just loads the header
im still looking for a full page loader :p
Chinese_Power
March 9th, 2004, 19:14
thank you anyways... I searched in google and I found mtech
Pablo
March 9th, 2004, 19:53
hey, do u know of any full page loader for phpnuke? :cry2:
Chinese_Power
March 9th, 2004, 20:44
Full page loader ? You mean 100% the screen ??
I think that u better make an intro with FLASH then....
Pablo
March 9th, 2004, 20:56
yeah, a loader that loads the whole home page, all the images, im sure i have to insert something in the index.php file but i dunno wot :p if u know, plz help :-) thank ya!
oh and my page is in phpnuke ;) if u wanna take a look, link in my sig, we need staff :-) if u r interested in something :callme:
Chinese_Power
March 10th, 2004, 15:28
Thanks by the offer... But Im building a website too... In Phpnuke also... And right now Im busy and I focused in my website... And if I find that loader I'll post it
Pablo
March 10th, 2004, 15:36
and if u need any help with phpnuke, just ask me :-)
pleased to meet u :classic2:
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.