Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Forum > Hosting Section > Knowledge Base > Tutorials

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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-13-2007, 01:55 PM
John
Status: Offline
Administrator
 
Join Date: Sep 2005
Posts: 3,724
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 -->
Reply With Quote
Sponsored Links

  #2 (permalink)  
Old 11-20-2007, 04:04 AM
wired076
Status: Offline
Senior Member
 
Join Date: Nov 2005
Location: Wired
Posts: 415
wired076 is on a distinguished road
Send a message via ICQ to wired076 Send a message via AIM to wired076 Send a message via MSN to wired076 Send a message via Yahoo to wired076 Send a message via Skype™ to wired076
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.
__________________
Please contact me via email for webmaster work/support at reasonable prices.
Email: admin@itconstruct.com.au

Visit http://www.itconstruct.com.au
Reply With Quote
  #3 (permalink)  
Old 11-22-2007, 04:23 AM
studylot
Status: Offline
Member
 
Join Date: Nov 2007
Posts: 90
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
__________________
-----------------------------------------
Studylot.com study overseas
Reply With Quote
  #4 (permalink)  
Old 11-22-2007, 03:26 PM
wired076
Status: Offline
Senior Member
 
Join Date: Nov 2005
Location: Wired
Posts: 415
wired076 is on a distinguished road
Send a message via ICQ to wired076 Send a message via AIM to wired076 Send a message via MSN to wired076 Send a message via Yahoo to wired076 Send a message via Skype™ to wired076
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.
__________________
Please contact me via email for webmaster work/support at reasonable prices.
Email: admin@itconstruct.com.au

Visit http://www.itconstruct.com.au
Reply With Quote
  #5 (permalink)  
Old 11-27-2007, 03:05 PM
borojim
Status: Offline
Junior Member
 
Join Date: Nov 2007
Posts: 13
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

Last edited by borojim : 11-27-2007 at 03:07 PM. Reason: forgot advice
Reply With Quote
  #6 (permalink)  
Old 01-06-2008, 11:23 AM
borojim
Status: Offline
Junior Member
 
Join Date: Nov 2007
Posts: 13
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!)
__________________
If the answer is 42 what is the question?

www.mywritingcommunity.com
Reply With Quote
  #7 (permalink)  
Old 06-28-2008, 01:17 AM
WorldAirliner
Status: Offline
Member
 
Join Date: Nov 2006
Posts: 31
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
Reply With Quote
  #8 (permalink)  
Old 06-28-2008, 02:49 AM
WorldAirliner
Status: Offline
Member
 
Join Date: Nov 2006
Posts: 31
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
Reply With Quote
  #9 (permalink)  
Old 07-27-2008, 03:01 AM
wired076
Status: Offline
Senior Member
 
Join Date: Nov 2005
Location: Wired
Posts: 415
wired076 is on a distinguished road
Send a message via ICQ to wired076 Send a message via AIM to wired076 Send a message via MSN to wired076 Send a message via Yahoo to wired076 Send a message via Skype™ to wired076
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!
__________________
Please contact me via email for webmaster work/support at reasonable prices.
Email: admin@itconstruct.com.au

Visit http://www.itconstruct.com.au
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

LinkBacks (?)
LinkBack to this Thread: http://www.profusehost.net/forum/tutorials/12782-how-place-ads-phpbb3.html
Posted By For Type Date
How to place ads after first post in phpbb3 | Technology Blog This thread Refback 01-20-2008 06:53 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with visual confermation when default ad code is on (using phpbb3) bcuk Free Web Hosting Support 5 11-20-2007 09:49 AM
phpbb3 discussion thread shoes22 Programming / Scripting / Coding Forum 5 11-20-2007 04:10 AM
SEO Optimization for phpbb3 shoes22 SEO - Search Engine Optimization 1 07-31-2007 02:04 AM
Can I place my own ads on my site? John Knowledge Base 0 07-15-2006 10:49 PM
Can I place my own Ads??? bizzard Free Web Hosting Support 9 03-20-2006 03:26 AM


All times are GMT -7. The time now is 02:52 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75