banner
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

banner
Ik heb een mod voor een banner in de page-tail.php te zetten.
Hieronder staat hij de gehackte page tail.
Als ik echter de paigetail.php upload, zie je niets.
<?php
/***************************************************************************
* page_tail.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: page_tail.php,v 1.27.2.1 2002/05/12 00:47:41 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
//
// 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')
);
?>
<!-- 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 -->
Hieronder staat hij de gehackte page tail.
Als ik echter de paigetail.php upload, zie je niets.
<?php
/***************************************************************************
* page_tail.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: page_tail.php,v 1.27.2.1 2002/05/12 00:47:41 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
//
// 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')
);
?>
<!-- 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 -->
Code: Selecteer alles
##############################################################
## MOD Titel:
## MOD auteur:
## MOD beschrijving:
## MOD Versie: x.x.x
##
## Installatie Niveau: (makkelijk/gemiddeld/moeilijk)
## Installatie Tijd: x Minuten
## Bestanden te Bewerken: bestand_1, bestand_2, bestand_3, etc
## Bijgesloten Bestanden: bestand_1, bestand_2, bestand_3, etc
##############################################################
##
##############################################################
## Maker Notities:
##
##############################################################
## Voordat je deze MOD installeert ALTIJD een backup maken.
##############################################################
#
#-----[ ACTIE ]------------------------------------------
#
#
#-----[ ACTIE ]------------------------------------------
#
#
#-----[ ACTIE ]------------------------------------------
#
#
#-----[ SAVE/CLOSE ALLE FILES ]------------------------------------------
#
# EoM
dit is de readme die er bij zit.
je kan het zelf editten en er zit een gehackte pagetail bij. volgens dit zou het dan direct moeten werken
DONE!
je kan het zelf editten en er zit een gehackte pagetail bij. volgens dit zou het dan direct moeten werken
Code: Selecteer alles
################################################
# 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 (banner.js)
So you'll get this: ?> (javascript) ]-----
#
#
#-----[ ADD AFTER THE JAVASCRIPT ]---------------------------------------------
#
<?php
#
#-----[ SAVE FILE AND UPLOAD ]---------------------------------------------
#
Gebruik eens
Code: Selecteer alles
tags joh, die dingen zijn er niet voor niks :roll:
je kunt dit stuk:
het beste in overall_footer.ypl zetten, daarvoor zijn die namelijk ook gemaakt, om de php te scheiden met de html (of in dit geval java)
Code: Selecteer alles
<!-- 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 -->
- WebSiteNet
- Berichten: 6524
- Lid geworden op: 20 okt 2003, 16:56
- Locatie: Wieringerwerf
- Contacteer: