LiveZilla Live Help
 


Go Back   Chime Host - Web Hosting Forum > Web Hosting Section > Knowledge Base > Tutorials
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Tutorials Contribute only full How-To\'s and Tutorials here. Submit Tutorials, Guides and Hints. ALL TUTORIALS ARE MODERATED AND YOUR TUTORIAL WILL *NOT* BE *VISIBLE* UNTIL IT IS ACCEPTED.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-13-2007, 09:55 PM
Administrator
 
Join Date: Sep 2005
John has disabled reputation
Default How to place ads in phpbb3

How to place ads in phpbb3

These direction were copied from - http://www.phpbb.com/community/viewt...3067&p=3152281

If you are encountering errors, please ask for phpbb related support in that forum.



OPEN viewtopic_body.html (/styles/prosilver/template)

SEARCH FOR:

Quote:
<!-- END postrow -->
ADD BEFORE:

Quote:
<!-- IF postrow.S_FIRST_ROW == 2 -->
<div class="post bg3">
<div class="inner"><span class="corners-top"><span></span></span>

<div align="center">
REPLACE THIS WITH AD CODE
</div>

<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
*Please make sure to update your phpbb3 cache after you make the changes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-20-2007, 12:04 PM
Senior Member
 
Join Date: Nov 2005
Location: Wired
wired076 is on a distinguished road
Default

This does work as I have done it on my forum at www.wired.profusehost.net/forum . I would suggest using a horizontal ad if you are going to place an ad or banner here. If using google adsense go for the leader board which is 728*90 as it will fit the best.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-22-2007, 12:23 PM
Member
 
Join Date: Nov 2007
studylot is on a distinguished road
Default

Hello john,
Most of the forums now have 160x600 banner in the left or right side of them
how can i put one of them in a forum like mine

can you help me out with it or point me to some sites
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-22-2007, 11:26 PM
Senior Member
 
Join Date: Nov 2005
Location: Wired
wired076 is on a distinguished road
Default

Is your forum also a phpBB forum or does it use other software???

If it is phpBB software have a look at this link http://www.phpbb.com/community/viewt...p?f=1&t=503964 .

Good luck.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-27-2007, 11:05 PM
Junior Member
 
Join Date: Nov 2007
Location: 'Yonder hill
borojim is on a distinguished road
Default

There are other places you can place them too such as viewforum_body.tpl just before <!-- END topicrow -->

also indexbody.tpl just before <!-- END switch_user_logged_in -->
there are a couple more that I have put in that seem to generate random ads in the same place depending when you visit them so you dont always get an ad when you go to the same page it kind of work every 2nd or 3rd visit but i have them in two or three more *_body.tpl files in various places including the index page between the main forum titles and the 'whose online# section I will post more when I write them all down
these are also in the same directory as viewtopic_body
Jimmy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-06-2008, 07:23 PM
Junior Member
 
Join Date: Nov 2007
Location: 'Yonder hill
borojim is on a distinguished road
Thumbs up You Lucky lucky people!! Perfect forum ads in 10 easy steps

NO more do you need ads interupting your forum, or findding three rows of ads when there should be one!!

After many tried I have found the best place to place your ad code (the 728 x 90 NOT the 160 x 600)

1. open up you forum template folder and look for TWO files:

one called:

overall_header.tpl

and the other

overall_footer.tpl

2. Create a BACKUP copy of these in case anything goes wrong!!

3. Open up the first overall header with your editor and underneath this line:

Quote:
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
4. Place the script from a 728 x 90 ad code script (your choice of back ground)

a white background would be:

Quote:
5.
<script language='JavaScript' type='text/javascript' src='http://ads2.psychz.net/adx.js'></script>
<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://ads2.psychz.net/adjs.php?n=" + phpAds_random);
document.write ("&amp;what=zone:8");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://ads2.psychz.net/adclick.php?n=a477094b' target='_blank'><img src='http://ads2.psychz.net/adview.php?what=zone:8&amp;n=a477094b' border='0' alt=''></a></noscript>

6. Upload that to your server and copy over the original, then to check to see if its working just open up your forum home page and run through a couple of posts, you should see the new ads AT THE TOP of ALL pages absolutly visible without interupting the flow of your site.

Secondly the footer:

7. Open up overall_footer.tpl and look for this line:

Quote:
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group<br />{TRANSLATION_INFO}</span></div>
8. UNDERNEATH this line cut and paste this script:

Quote:
<script language='JavaScript' type='text/javascript' src='http://ads2.psychz.net/adx.js'></script>
<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://ads2.psychz.net/adjs.php?n=" + phpAds_random);
document.write ("&amp;what=zone:24");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://ads2.psychz.net/adclick.php?n=ac3440ba' target='_blank'><img src='http://ads2.psychz.net/adview.php?what=zone:24&amp;n=ac3440ba' border='0' alt=''></a></noscript>
9. Now upload to your server and copy over the original, then refresh the pages you opened earlier and scroll to the bottom of any page that you open and you will find the 'ads by google footer' underneath the 'powered by phb' message.

10. Sit back and glow in the satisfaction of a job well done!( Iknow i said 10 but sit back you deserve it!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-28-2008, 09:17 AM
Junior Member
 
Join Date: Nov 2006
WorldAirliner is on a distinguished road
Default

Guys,

need some help here.. I've tried all the possible ways to have the ads code being displayed in PHPBB3, but none of them work !

The code john placed isn't working and neither can I find the overall_header.tpl file. It's just not there !

Any help here, since I need to activate ads on my forum as I don't want to risk it being suspended

Sticky Rice
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-28-2008, 10:49 AM
Junior Member
 
Join Date: Nov 2006
WorldAirliner is on a distinguished road
Default

Well i've finally found a solution and I highly recommend it for everyone using PHPBB3 !

phpBB 3 View topic - [BETA] Ad Management
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-27-2008, 11:01 AM
Senior Member
 
Join Date: Nov 2005
Location: Wired
wired076 is on a distinguished road
Default

That is great to hear.

Was good you figured it out for yourself.

Good luck with learning out how to use the rest of phpBB3.

It is great software and best of all it is free!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-15-2009, 09:37 PM
Junior Member
 
Join Date: Jan 2009
ryku is on a distinguished road
Default please little more help

I didn't find overall_header.tpl , i searched in all the phpbb3 diredtory but not one .tpl file pls i can't place the profusehost ads and i fear they just delete my forum !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What are places in manhattan that are fun to go to ? Devon Travel 0 01-24-2010 11:34 AM
i have a javascript question? mike H Javascript 0 01-22-2010 02:54 PM
what do most colleges want me to sent to the college board or colleges after I file Vul HTML/CSS/DHTML 0 01-16-2010 09:36 PM
A question about css and divs? SxE Mosh Warrior HTML/CSS/DHTML 2 01-14-2010 02:01 AM
How do you put music on your Samsung Exclaim phone? Darian H Samsung 0 12-19-2009 02:33 PM


All times are GMT +1. The time now is 03:04 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ChimeHost, a Profuse Solutions LLC company