+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: phpBB hlp

  1. #1
    XxUnknownxX is offline x10Hosting Member XxUnknownxX is an unknown quantity at this point
    Join Date
    Aug 2006
    Posts
    22

    phpBB hlp

    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 by XxUnknownxX; 08-04-2006 at 04:30 PM.

  2. #2
    Spartan Erik's Avatar
    Spartan Erik is offline Retired Spartan Erik is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    3,382

    Re: phpBB hlp

    Are you using the PHP or Javascript version of the ad?

  3. #3
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: phpBB hlp

    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 by Zenax; 08-04-2006 at 04:48 PM.
    Regards,
    Zenax

  4. #4
    XxUnknownxX is offline x10Hosting Member XxUnknownxX is an unknown quantity at this point
    Join Date
    Aug 2006
    Posts
    22

    Re: phpBB hlp

    im using php version and ill try that

  5. #5
    XxUnknownxX is offline x10Hosting Member XxUnknownxX is an unknown quantity at this point
    Join Date
    Aug 2006
    Posts
    22

    Re: phpBB hlp

    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

  6. #6
    alvaroag's Avatar
    alvaroag is offline x10 Sophmore alvaroag is an unknown quantity at this point
    Join Date
    May 2006
    Posts
    144

    Re: phpBB hlp

    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 Code:
    <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.

  7. #7
    XxUnknownxX is offline x10Hosting Member XxUnknownxX is an unknown quantity at this point
    Join Date
    Aug 2006
    Posts
    22

    Re: phpBB hlp

    well a link came up but not the banner i got a conparate pack

  8. #8
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: phpBB hlp

    .... Beginning of Code here, but due to length of post had to be removed!
    Code:
    <!-- 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 -->
    <script language="JavaScript" type="text/JavaScript">
    <!--
    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;
    }[/COLOR]
    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>
    </head>
    <body onLoad="MM_preloadImages('templates/zeroSpace/images/main2.gif','templates/zeroSpace/images/faq2.gif','templates/zeroSpace/images/search2.gif','templates/zeroSpace/images/members2.gif',
    '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')">
    <table width="100%"  cellspacing="0" cellpadding="0">
     <tr>
       <td width="98%" align="center" valign="top" background="templates/zeroSpace/images/head_r1_c2.gif"><table width="100%" height="76" cellpadding="0"  cellspacing="0">
           <tr>
             <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>
             <td align="right" class="jargon1">
     
    <!-- Ads -->
     
    <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:1&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=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>
    <!-- End of ads -->
    [COLOR=black]       </td>
           </tr>
       </table></td>
     </tr>
     <tr>
       <td align="center" valign="middle" background="templates/zeroSpace/images/head_r2_c2.gif"><TABLE width="100%"  cellspacing="0" cellpadding="0">
         <tr>
           <td width="47%" height="20"><TABLE width="100%"  cellspacing="0" cellpadding="0">
             <tr align="center">
               <td width="14%" height="18" valign="middle"><a href="{U_INDEX}" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('main','','templates/zeroSpace/images/main2.gif',1)">
    <IMG src="templates/zeroSpace/images/main1.gif" alt="Main" name="main" width="30" height="12" border="0"></a></td>
               <TD width="14%"><A href="{U_FAQ}" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('FAQ','','
    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>
               <TD width="14%"><A href="{U_SEARCH}" onMouseOut="MM_swapImgRestore()" 
    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>
    ...... 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 Chris S; 08-06-2006 at 07:18 PM.
    Regards,
    Zenax

  9. #9
    XxUnknownxX is offline x10Hosting Member XxUnknownxX is an unknown quantity at this point
    Join Date
    Aug 2006
    Posts
    22

    Re: phpBB hlp

    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

  10. #10
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: phpBB hlp

    Sorry Chris! Must of forgotton to put them on!

    :S
    Regards,
    Zenax

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. PHPBB Footer Advanced Ad
    By Brandon in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 01-04-2006, 01:09 PM
  2. PHP-Nuke PHPBB
    By Sci0N in forum Free Hosting
    Replies: 9
    Last Post: 09-05-2005, 02:38 PM
  3. Adding ad's to phpbb forum
    By haqzombie in forum Free Hosting
    Replies: 7
    Last Post: 07-31-2005, 12:35 PM
  4. phpBB 2.0.17 released
    By n4tec in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 07-26-2005, 07:38 AM
  5. help phpbb add templates and themes
    By Jonosss in forum Scripts & 3rd Party Apps
    Replies: 5
    Last Post: 03-22-2005, 06:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers