Kleine aanpassing aan forum
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.

Kleine aanpassing aan forum
Ik heb lang lang geleden dir forum gemaakt:
http://www.duursportersweb.nl/forum/
Nu wil ik graag links waar ik ooit de google adds heb gezet iets veranderen maar ik zoek me helemaal het schompes op zoek naar in welke file die code staat. Is er iemand die dit uit zijn hoofd weet?
http://www.duursportersweb.nl/forum/
Nu wil ik graag links waar ik ooit de google adds heb gezet iets veranderen maar ik zoek me helemaal het schompes op zoek naar in welke file die code staat. Is er iemand die dit uit zijn hoofd weet?
- Wout -- w00t
- Berichten: 815
- Lid geworden op: 07 jan 2005, 12:57
- Locatie: Eindhoven, NL
Kan iemand me vertellen dan waarom ik als ik mijn forum in de map http://www.duursportersweb.nl/forum/ heb staan en ik deze code er in zet:MiKeZZa schreef:Ah thx!
<?php include "../banners/Rotator160/showbanner1.php" ?>
Dat ik dan niet die file te zien krijg?
Terwijl ik als ik http://www.duursportersweb.nl/banners/R ... anner1.php open ik er wel kom?
Ik dacht dat je een pagina in phpbb zo niet kan includen ik dacht dat het zoiets is:
Maar weet het niet zeker
En dat dan helemaal bovenaan op welke pagina je het wilt, en onder:
Code: Selecteer alles
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
Code: Selecteer alles
include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
En dat dan helemaal bovenaan op welke pagina je het wilt, en onder:
Code: Selecteer alles
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx)
Sorry sjefie, ik begrijp ff niet wat je bedoelt :$sjefie schreef:Ik dacht dat je een pagina in phpbb zo niet kan includen ik dacht dat het zoiets is:Code: Selecteer alles
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
Maar weet het niet zekerCode: Selecteer alles
include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
En dat dan helemaal bovenaan op welke pagina je het wilt, en onder:
Code: Selecteer alles
define('IN_PHPBB', true); $phpbb_root_path = './'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx)
Zou je als ik jou mijn code pb het er voor mij in willen gooien?
Groetjes
Hier is hij helemaal:sjefie schreef:Ik weet zelf niet precies hoe het moet
Plaats even de eerste 20 a 30 regels van je overal_header.tpl plaatsen kan ik wel proberen
Weet het zelf niet precies nogmaals
Code: Selecteer alles
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/phpBB_Portal/{T_HEAD_STYLESHEET}" type="text/css" -->
<style type="text/css">
<!--
/*
The original phpBB_Portal Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com
NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.
*/
/* General page style. The scroll bar colours only visible in IE5.5+ */
body { margin:0px;
background-color: {T_BODY_BGCOLOR};
scrollbar-face-color: {T_TR_COLOR2};
scrollbar-highlight-color: {T_TD_COLOR2};
scrollbar-shadow-color: {T_TR_COLOR2};
scrollbar-3dlight-color: {T_TR_COLOR3};
scrollbar-arrow-color: {T_BODY_LINK};
scrollbar-track-color: {T_TR_COLOR1};
scrollbar-darkshadow-color: {T_TH_COLOR1};
}
/* General font families for common tags */
font,th,td,p { font-family: {T_FONTFACE1} }
a:link,a:active,a:visited { color : {T_BODY_LINK}; }
a:hover { text-decoration: underline; color : {T_BODY_HLINK}; }
hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; }
/* This is the outline round the main forum tables */
.forumline { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; }
/* Main table cell colours and backgrounds */
td.row1 { background-color: {T_TR_COLOR1}; }
td.row2 { background-color: {T_TR_COLOR2}; }
td.row3 { background-color: {T_TR_COLOR3}; }
/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: {T_TD_COLOR2};
background-image: url(templates/phpBB_Portal/images/{T_TH_CLASS3});
background-repeat: repeat-y;
}
/* Header cells - the blue and silver gradient backgrounds */
th {
color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold;
background-color: {T_BODY_LINK}; height: 25px;
background-image: url(templates/phpBB_Portal/images/{T_TH_CLASS2});
}
td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-image: url(templates/phpBB_Portal/images/{T_TH_CLASS1});
background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
}
/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
}
td.row3Right,td.spaceRow {
background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
}
th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }
/* The largest text used in the index page title and toptic title etc. */
.maintitle {
font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}
/* General text */
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; }
/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; }
a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }
/* Forum category titles */
.cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle { text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover{ text-decoration: underline; }
/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
a.forumlink { text-decoration: none; color : {T_BODY_LINK}; }
a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }
/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
a.nav { text-decoration: none; color : {T_BODY_LINK}; }
a.nav:hover { text-decoration: underline; }
/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; }
/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
/* Location, number of posts, post date etc */
.postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }
/* The content of the posts (body of text) */
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
a.postlink:link { text-decoration: none; color : {T_BODY_LINK} }
a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}
/* Quote & Code blocks */
.code {
font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
.quote {
font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
/* Copyright and bottom info */
.copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;}
a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;}
/* Form elements */
input,textarea, select {
color : {T_BODY_TEXT};
font: normal {T_FONTSIZE2}px {T_FONTFACE1};
border-color : {T_BODY_TEXT};
}
/* The text input fields background colour */
input.post, textarea.post, select {
background-color : {T_TD_COLOR2};
}
input { text-indent : 2px; }
/* The buttons used for bbCode styling in message post */
input.button {
background-color : {T_TR_COLOR1};
color : {T_BODY_TEXT};
font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
}
/* The main submit button option */
input.mainoption {
background-color : {T_TD_COLOR1};
font-weight : bold;
}
/* None-bold submit button */
input.liteoption {
background-color : {T_TD_COLOR1};
font-weight : normal;
}
/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know ;)
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
td.inlineadtitle {
background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px;
}
td.inlinead {
background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px; text-align: center;
}
/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/phpBB_Portal/formIE.css");
/* phpBB_Portal Styles: */
td.td_men2 { background-color: {T_TR_COLOR2}; font-weight: bold; font-size: 12px; }
td.td_men3 { background-color: {T_TR_COLOR1}; font-size : 11px; }
.sometextonthetop1 { text-align:right; margin: 0 20px 0 50px; }
.sometextonthetop2 { margin-top:15px; font-size:10px; }
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<csactiondict>
<script type="text/javascript">
<!--
<!--
var preloadFlag = false;
function preloadImages() {
if (document.images) {
pre_forumover = newImage('../plaatjes/forumover.gif');
pre_webwinkelover = newImage('../plaatjes/webwinkelover.gif');
pre_weblogover = newImage('../plaatjes/weblogover.gif');
pre_linksover = newImage('../plaatjes/linksover.gif');
pre_infoover = newImage('../plaatjes/infoover.gif');
preloadFlag = true;
}
}
// -->
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</csactiondict>
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
<a name="top"></a>
<div align="center">
<table width="900" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2">
<!-- Begin MyStats.nl code -->
<a href="http://www.mystats.nl/stats/22597.html" target=_blank>
<img src="http://www.mystats.nl/icon.gif" alt="Website statistieken" border=0 height=0 width=0></a>
<script src="http://www2.mystats.nl/include.js"></script>
<script> mystats(1,22597,'duursportersweb','2',''); </script>
<noscript> <img src="http://www2.mystats.nl/c/i/nojs?c=22597">
<a href="http://www.mystats.nl">Website statistieken</a> </noscript>
<!-- Eind MyStats.nl code -->
<!-- TOP -->
<div align="center">
<table width="900" border="0" cellspacing="0" cellpadding="0">
<tr height="103">
<td align="center" height="103"> <a href="http://www.duursportersweb.nl/index.php"><img border="0" src="../plaatjes/logo.gif" width="332" height="99"></a></td>
</tr>
<tr height="29">
<td align="center" valign="bottom" height="29">
<table width="715" border="0" cellspacing="0" cellpadding="0">
<tr height="21">
<td width="10" height="21"><a href="../index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home2','','../plaatjes/homeover.gif',1)"><img src="../plaatjes/home.gif" name="home2" width="120" height="21" border="0" id="home2" /></a><a onmouseover="changeImages('home','../plaatjes/homeover.gif');return true" onmouseout="changeImages('home','../plaatjes/home.gif');return true" href="#"></a></td>
<td width="10" height="21"><a href="#"><img id="home3" src="../plaatjes/forumover.gif" alt="" name="home3" height="21" width="120" border="0" /></a></td>
<td width="10" height="21"><a href="../webwinkel.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('webwinkel','','../plaatjes/webwinkelover.gif',1)"><img src="../plaatjes/webwinkel.gif" name="webwinkel" width="120" height="21" border="0" id="webwinkel" /></a><a onmouseover="changeImages('webwinkel','../plaatjes/webwinkelover.gif');return true" onmouseout="changeImages('webwinkel','../plaatjes/webwinkel.gif');return true" href="#"></a></td>
<td width="10" height="21"><a href="../weblogs.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('weblog','','../plaatjes/weblogover.gif',1)"><img src="../plaatjes/weblog.gif" name="weblog" width="120" height="21" border="0" id="weblog" /></a><a onmouseover="changeImages('weblog','../plaatjes/weblogover.gif');return true" onmouseout="changeImages('weblog','../plaatjes/weblog.gif');return true" href="#"></a></td>
<td width="10" height="21"><a href="../links.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('links','','../plaatjes/linksover.gif',1)"><img src="../plaatjes/links.gif" name="links" width="120" height="21" border="0" id="links" /></a><a onmouseover="changeImages('links','../plaatjes/linksover.gif');return true" onmouseout="changeImages('links','../plaatjes/links.gif');return true" href="#"></a></td>
<td width="10" height="21"><a href="../info.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('info','','../plaatjes/infoover.gif',1)"><img src="../plaatjes/info.gif" name="info" width="119" height="21" border="0" id="info" /></a><a onmouseover="changeImages('info','../plaatjes/infoover.gif');return true" onmouseout="changeImages('info','../plaatjes/info.gif');return true" href="#"></a></td></a><a onmouseover="changeImages('info','../plaatjes/infoover.gif');return true" onmouseout="changeImages('info','../plaatjes/info.gif');return true" href="#"></a></td>
</tr>
</table>
</td>
</tr>
<tr height="14">
<td width="750" bgcolor="#096ea1">
<p align="right">
<font face="Verdana" color="#FFFFFF" style="font-size: 10pt">website gemaakt door: hostinganddesign.nl</font></td>
</tr>
<td height="14"></td>
</tr>
</div>
<table width="900" cellpadding="0" cellspacing="1" border="0" class="forumline">
<tr>
<td>
<table width="900" cellpadding="10" cellspacing="0" border="0">
<tr>
<td class="row1" valign="top" height="40" width="900">
<p align="center"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/phpBB_Portal/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/phpBB_Portal/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/phpBB_Portal/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/phpBB_Portal/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/phpBB_Portal/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
<a href="{U_PROFILE}" class="mainmenu"><img src="templates/phpBB_Portal/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/phpBB_Portal/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/phpBB_Portal/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>
</div></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- TOP FINISH -->
</td>
</tr>
<tr>
<td valign="top">
<!-- MENUE -->
<table width="160" cellpadding="0" cellspacing="0" border="0">
<tr>
<?php include "../banners/Rotator160/showbanner1.php" ?>
<br><br>
<?php include "../banners/Rotator160/showbanner2.php" ?>
<br><br>
<?php include "../banners/Rotator160/showbanner3.php" ?>
<br><br>
<script type="text/javascript"><!--
google_ad_client = "pub-7924318924786713";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "096EA1";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</tr><tr>
</td>
</tr><tr>
<!-- BEGIN switch_user_logged_out -->
</tr><tr>
<!-- END switch_user_logged_out -->
</td>
</tr>
</table>
<!-- MENUE FINISH -->
</td>
<td valign="top" width="900"></div>
- Ramon Fincken
- Berichten: 2552
- Lid geworden op: 27 nov 2005, 23:15
- Locatie: Diemen
- Contacteer:
Code: Selecteer alles
<img src="../banners/Rotator160/showbanner1.php">
Freelance webdevelopment, including phpbb2 scripting!
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
Hij linkt wel naar de 'afbeelding' showbanner1.php maar dit resulteert in een kruisje. Maar ik heb een idee, ik ga even aan de gang ermee. Ik laat nog weten of het gelukt is.Ramon Fincken schreef:al geprobeerd ?Code: Selecteer alles
<img src="../banners/Rotator160/showbanner1.php">
- Ramon Fincken
- Berichten: 2552
- Lid geworden op: 27 nov 2005, 23:15
- Locatie: Diemen
- Contacteer:
geef de code eens van showbanner1.php ?
Freelance webdevelopment, including phpbb2 scripting!
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
Dit is de code:Ramon Fincken schreef:geef de code eens van showbanner1.php ?
Code: Selecteer alles
<?
include "config.php";
{
$query = "SELECT * FROM 160banner1";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
echo "<a href='".$row["url"]."' target='_blank'><img src='".$row["image"]."' border='0' alt='".$row["alt"]."'></a>";
$views = $row["views"];
mysql_query("UPDATE 160banner1 SET views=$views+1 WHERE id=".$row["id"]);
}
?>
Wat ik nu geprobeerd heb is om deze code te plakken in de tpl file maar dat resulteert hierin:
".$row["alt"].""; $views = $row["views"]; mysql_query("UPDATE 160banner1 SET views=$views+1 WHERE id=".$row["id"]); } ?>
- Ramon Fincken
- Berichten: 2552
- Lid geworden op: 27 nov 2005, 23:15
- Locatie: Diemen
- Contacteer:
mail me je overallheader.tpl page_header.php en die banner file
ik PM even mijn email
ik PM even mijn email
Freelance webdevelopment, including phpbb2 scripting!
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
- Ramon Fincken
- Berichten: 2552
- Lid geworden op: 27 nov 2005, 23:15
- Locatie: Diemen
- Contacteer:
sorry, bedoelde je overall_header.tpl
Freelance webdevelopment, including phpbb2 scripting!
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
- Ramon Fincken
- Berichten: 2552
- Lid geworden op: 27 nov 2005, 23:15
- Locatie: Diemen
- Contacteer:
je TPL moet er zo ongeveer uit zien:
showbanner1.php
moet als functie:
en nu moet je in je page_header.php zoeits doen:
FIND
BEFORE, ADD
AFTER, ADD
Code: Selecteer alles
<!-- TOP FINISH -->
</td>
</tr>
<tr>
<td valign="top">
<!-- MENUE -->
<table width="160" cellpadding="0" cellspacing="0" border="0">
<tr>
{SHOWBANNER1}
showbanner1.php
moet als functie:
Code: Selecteer alles
include_once "config.php";
function showbanner1()
{
$query = "SELECT * FROM 160banner1";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$views = $row["views"];
mysql_query("UPDATE 160banner1 SET views=$views+1 WHERE id=".$row["id"]);
return "<a href='".$row["url"]."' target='_blank'><img src='".$row["image"]."' border='0' alt='".$row["alt"]."'></a>";
}
en nu moet je in je page_header.php zoeits doen:
FIND
Code: Selecteer alles
$template->assign_vars(array(
'SITENAME' => $board_config['sitename'],
Code: Selecteer alles
include($phpbb_root_path . 'showbanner1.'.$phpEx);
Code: Selecteer alles
'SHOWBANNER1' => showbanner1(),
Freelance webdevelopment, including phpbb2 scripting!
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
- Ramon Fincken
- Berichten: 2552
- Lid geworden op: 27 nov 2005, 23:15
- Locatie: Diemen
- Contacteer:
dat hoort zo...
bij "los" aanroepen moet je zorgen dat een PHP file het bestand include en daarna dus
als commando heeft ..
wat ook kan...
is
ipv
van mijn instructieset doen...
bij "los" aanroepen moet je zorgen dat een PHP file het bestand include en daarna dus
Code: Selecteer alles
showbanner1();
wat ook kan...
is
Code: Selecteer alles
function showbanner1()
{
$query = "SELECT * FROM 160banner1";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$views = $row["views"];
mysql_query("UPDATE 160banner1 SET views=$views+1 WHERE id=".$row["id"]);
return "<a href='".$row["url"]."' target='_blank'><img src='".$row["image"]."' border='0' alt='".$row["alt"]."'></a>";
}
Code: Selecteer alles
include($phpbb_root_path . 'showbanner1.'.$phpEx);
van mijn instructieset doen...
Freelance webdevelopment, including phpbb2 scripting!
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com
Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com