ich habe mir einen FOOTER RANDOM BANNER HACK eingebaut: http://www.phpbbhacks.com/viewhack.php?id=869
Nun habe ich das Problem, dass der Mod im MS Explorer funktioniert im Firefox jedoch nicht.
Kann einer von euch erkennen wo Firefox Probleme mit dem Mod haben könnte?
Wäre echt super

Gruß Dennis
Code: Alles auswählen
################################################
# FOOTER RANDOM BANNER HACK FOR PHPBB 28/11/2002
# BASED ON THE LATEST VERSION OF PHPBB 2.0
# IT MIGHT WORK ON ALL VERSIONS
# MAKE SURE TO BACK-UP ALL FILES BEFORE YOU IMPLEMENT THIS HACK
# INSTALL TIME: About 3 MIN.
################################################
# ABOUT:
#
# I like simplicity, so this hack is just what it is, and what it prommises.
# Easy to install, and sure to work!
# No copyrights - Jungsonn Multimedia.
# OPEN SOURCE 4 EVER
################################################
# A COMPLETE HACKED PAGE_TAIL.PHP IS INCLUDED, IF YOU CAN'T MAKE UP THIS HELP FILE.
#
# page_tail.php included (already hacked)
Files to edit:
includes/page_tail.php
#
#-----[ OPEN ]---------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]---------------------------------------------
#
//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
$template->set_filenames(array(
'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);
#
#-----[ ADD AFTER ]---------------------------------------------
#
?>
#
#-----[ PASTE NOW A JAVASCRIPT. in this case a random banner
#
<!-- BEGIN OF FOOTER BANNER HACK -->
<center><script language="JavaScript">
<!-- add as much banners as you like -->
var imgs1 = new Array("banners/1.gif","banners/2.gif","banners/3.gif","banners/4.gif","banners/5.gif")
var lnks1 = new Array("http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com","http://phpbbhacks.com")
var currentAd1 = 0
var imgCt1 = 5
function cycle1() {
currentAd1++
if (currentAd1 == imgCt1) {
currentAd1 = 0
}
document.adBanner1.src=imgs1[currentAd1]
adLink1.href=lnks1[currentAd1]
setTimeout("cycle1()",5 * 1000)
}
</script>
<!-- small hack: where the random banner begins -->
<a href="http://phpbbhacks.com" name="adLink1" ><img src="banners/1.gif" name="adBanner1" border="0" width="468" height="60" align="center"></a>
<script language="JavaScript">
cycle1()
</script></center>
<!-- END OF FOOTER BANNER HACK -->
#
#-----[ ADD AFTER THE JAVASCRIPT ]---------------------------------------------
#
<?php
#
#-----[ SAVE FILE AND UPLOAD ]---------------------------------------------
#
DONE!