Pagina 1 van 1

banner

Geplaatst: 24 apr 2004, 09:42
door verhoej
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 -->

Geplaatst: 24 apr 2004, 09:47
door LadyBug
Zet hem dan ook even in de juiste MOD template...

Geplaatst: 24 apr 2004, 09:59
door verhoej
Hoe bedoel je, dit is een kant en klare page tail eb volgens de instal txt zou die direct moeten werken als je de pagetail.php upload ( in Includes )

Geplaatst: 24 apr 2004, 10:12
door LadyBug
Ja dan moet er nog een MOD template omheen :roll:

Geplaatst: 24 apr 2004, 10:19
door verhoej
en waar tover ik die vandaan

Geplaatst: 24 apr 2004, 10:19
door LadyBug

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
En dan bij MOD Ontwikkeling posten :thumb:

Geplaatst: 24 apr 2004, 10:22
door verhoej
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

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 ]---------------------------------------------
#
DONE!

Geplaatst: 24 apr 2004, 10:24
door LadyBug
Gebruik eens

Code: Selecteer alles

 tags joh, die dingen zijn er niet voor niks  :roll:

Geplaatst: 24 apr 2004, 10:41
door Nick V
sommige mensen zijn daar te makkelijk voor :roll: :thumb:

Geplaatst: 24 apr 2004, 15:58
door Luuk
je kunt dit stuk:

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 --> 
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)

Geplaatst: 24 apr 2004, 17:39
door verhoej
dan krijg ik deze fout

Parse error: parse error in /home/.sites/51/site45/web/phpBB2/includes/template.php(127) : eval()'d code on line 12

Geplaatst: 24 apr 2004, 18:16
door WebSiteNet
Dit weghalen:
<!-- BEGIN OF FOOTER BANNER HACK -->
Als hij de fout dan nog steeds geeft zal je nog meer commentaar moeten weg halen