phpBB hlp

XxUnknownxX

New Member
Messages
22
Reaction score
0
Points
0
Hello i have been workin on my website and im having some problem with the ads i cant put them in my forum im usin phpbb and i dont know how to put it everytime i try it it says some thing about a warning or some time something about syx something
 
Last edited:

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
Go into your file browser, and find your phpBB folder. Once in there find the templates folder, then go to your templates name folder! Once you are inside that folder, find the file called overall_header.tpl and click on edit this file.

When the new window opens up, insert the ad code into the page, and then save!

Your ads should technically appear on your forums now! If they don't look right, just mess about with the code positioning until you get it right!

To clarify:

public_html/phpBB directory/templates/template name/overall_header.tpl
Then Edit, and place in code!

Regards,
Zenax

EDIT: Either version of the code should work
!
 
Last edited:

XxUnknownxX

New Member
Messages
22
Reaction score
0
Points
0
ok i just tryed it and it doesnt come up i think that the thing u should toll me is a html so php wont work
 

alvaroag

New Member
Messages
288
Reaction score
0
Points
0
I had some problems when putting ads into phpbb. I tried to insert the php code inside the .tpl file, but it's not allowed(the php code is processed as normal text). what you can do is to copy the ads code into overall_footer.tpl. here is a sample way to do it:

HTML:
<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
<!--
	We request you retain the full copyright notice below including the link to www.phpbb.com.
	This not only gives respect to the large amount of time given freely by the developers
	but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
	reason) retain the full copyright we request you at least leave in place the
	Powered by phpBB line, with phpBB linked to www.phpbb.com. If you refuse
	to include even this then support on our forums may be affected.

	The phpBB Group : 2002
// -->
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group<br />{TRANSLATION_INFO}</span></div>
<div align="center" class="copyright">

 <script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
   document.write ("&what=zone:3&target=_blank");
   document.write ("&exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->

</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a915c788' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:3&n=a915c788' border='0' alt='' /></a></noscript>
</div><br/>
		</td>
	</tr>
</table>

</body>
</html>

hope it works.
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
.... Beginning of Code here, but due to length of post had to be removed!
Code:
<!-- BEGIN switch_enable_pm_popup -->
[FONT=Tahoma][SIZE=1]<script language="Javascript" type="text/javascript">[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]<!--[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]if ( {PRIVATE_MESSAGE_NEW_FLAG} )[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]{[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]}[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]//-->[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]</script>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]<!-- END switch_enable_pm_popup -->[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]<script language="JavaScript" type="text/JavaScript">[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]<!--[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]function MM_swapImgRestore() { //v3.0[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]}[/SIZE][/FONT][/COLOR]
[COLOR=black][FONT=Tahoma][SIZE=1]function MM_preloadImages() { //v3.0[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]}[/SIZE][/FONT][/COLOR]
[COLOR=black][FONT=Tahoma][SIZE=1]function MM_findObj(n, d) { //v4.01[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] if(!x && d.getElementById) x=d.getElementById(n); return x;[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]}[/SIZE][/FONT][/COLOR]
[COLOR=black][FONT=Tahoma][SIZE=1]function MM_swapImage() { //v3.0[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]}[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]//-->[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]</script>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]</head>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]<body onLoad="MM_preloadImages('templates/zeroSpace/images/main2.gif','templates/zeroSpace/images/faq2.gif','templates/zeroSpace/images/search2.gif','templates/zeroSpace/images/members2.gif',[/SIZE][/FONT]
[SIZE=1][FONT=Tahoma]'templates/zeroSpace/images/groups2.gif','templates/zeroSpace/images/profile2.gif','templates/zeroSpace/images/PM2.gif','templates/zeroSpace/images/register2.gif','templates/zeroSpace/images/login2.gif')">[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]<table width="100%"  cellspacing="0" cellpadding="0">[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] <tr>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]   <td width="98%" align="center" valign="top" background="templates/zeroSpace/images/head_r1_c2.gif"><table width="100%" height="76" cellpadding="0"  cellspacing="0">[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]       <tr>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]         <td align="left"><a href="{U_INDEX}"><img src="templates/zeroSpace/images/logo.gif" alt="Project D.o.G @ RP" width="296" height="68" border="0"></a></td>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]         <td align="right" class="jargon1">[/SIZE][/FONT][/COLOR]
 
[B][FONT=Tahoma][SIZE=1][COLOR=red]<!-- Ads -->[/COLOR][/SIZE][/FONT][/B]
 
[B][FONT=Tahoma][SIZE=1][COLOR=red]<script language='JavaScript' type='text/javascript'>[/COLOR][/SIZE][/FONT][/B][COLOR=red]
[B][FONT=Tahoma][SIZE=1]<!--[/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1]if (!document.phpAds_used) document.phpAds_used = ',';[/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1]phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);[/SIZE][/FONT][/B]
 
[B][FONT=Tahoma][SIZE=1]document.write ("<" + "script language='JavaScript' type='text/javascript' src='");[/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1]document.write ("[/SIZE][/FONT][/B][/COLOR][URL="http://x10hosting.com/advert/adjs.php?n"][B][FONT=Tahoma][SIZE=1][COLOR=red]http://x10hosting.com/advert/adjs.php?n[/COLOR][/SIZE][/FONT][/B][/URL][B][FONT=Tahoma][SIZE=1][COLOR=red]=" + phpAds_random);[/COLOR][/SIZE][/FONT][/B][COLOR=red]
[B][FONT=Tahoma][SIZE=1]document.write ("&what=zone:1&target=_blank");[/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1]document.write ("&exclude=" + document.phpAds_used);[/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1]if (document.referrer)[/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1]   document.write ("&referer=" + escape(document.referrer));[/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1]document.write ("'><" + "/script>");[/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1]//-->[/SIZE][/FONT][/B][/COLOR]
[B][FONT=Tahoma][SIZE=1][COLOR=red]</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>[/COLOR][/SIZE][/FONT][/B]
[B][FONT=Tahoma][SIZE=1][COLOR=red]<!-- End of ads -->[/COLOR][/SIZE][/FONT][/B]
[COLOR=black][FONT=Tahoma][SIZE=1]       </td>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]       </tr>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]   </table></td>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] </tr>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1] <tr>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]   <td align="center" valign="middle" background="templates/zeroSpace/images/head_r2_c2.gif"><TABLE width="100%"  cellspacing="0" cellpadding="0">[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]     <tr>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]       <td width="47%" height="20"><TABLE width="100%"  cellspacing="0" cellpadding="0">[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]         <tr align="center">[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]           <td width="14%" height="18" valign="middle"><a href="{U_INDEX}" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('main','','templates/zeroSpace/images/main2.gif',1)">[/SIZE][/FONT]
[SIZE=1][FONT=Tahoma]<IMG src="templates/zeroSpace/images/main1.gif" alt="Main" name="main" width="30" height="12" border="0"></a></td>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]           <TD width="14%"><A href="{U_FAQ}" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('FAQ','','[/SIZE][/FONT]
[SIZE=1][FONT=Tahoma]templates/zeroSpace/images/faq2.gif',1)"><IMG src="templates/zeroSpace/images/faq1.gif" alt="FAQ" name="FAQ" width="22" height="12" border="0"></A></TD>[/SIZE][/FONT]
[FONT=Tahoma][SIZE=1]           <TD width="14%"><A href="{U_SEARCH}" onMouseOut="MM_swapImgRestore()" [/SIZE][/FONT]
[SIZE=1][FONT=Tahoma]onMouseOver="MM_swapImage('Search','','templates/zeroSpace/images/search2.gif',1)"><IMG src="templates/zeroSpace/images/search1.gif" alt="Search" name="Search" width="37" height="12" border="0"></A></TD>[/SIZE][/FONT]
...... End of Code here, but again due to length of post, had to be removed


The code is taken from the overall header! Just copy and paste the ad code used in the example above! (marked in bold!!)

http://sapiencreations.x10hosting.com/forums --> The Forums the code was taken from!

--
Please use the code tags from now on to wrap the code. it makes the forums look much nicer.
Chris S
 
Last edited by a moderator:

XxUnknownxX

New Member
Messages
22
Reaction score
0
Points
0
it work thnx the thing is i put it on the top not n the middle like n that forum but il try thax for ur hlp
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
Sorry Chris! Must of forgotton to put them on!

:S
 
Top