NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PhpBB & Adsense

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-29-2006, 04:51 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
uber's Avatar
Join Date: Jun 2006
Location: . on the redeye to anhedonia
Posts: 624
uber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of light
 


Animal Cruelty

PhpBB & Adsense


I want to integrate adsense into my new forum @ www.promforums.com

I'm new to PHP... I don't have a clue where to put the adsense code to make it come up in posts... or even continually in the header.

is there a phpbb mod that can help me? or....even better a friendly namepros member.... I'd like to change the template too...but now I have the forom working I am a bit scared to do it!

Any help is appreciated!
uber is offline  
Old 06-29-2006, 05:31 PM   #2 (permalink)
NamePros Member
Join Date: Dec 2005
Posts: 186
chronic will become famous soon enoughchronic will become famous soon enough
 



Well, it depends on where you want it, as there is a .php file for many parts of the template. If you want it in the post, you will have to open a certain .php file and add in the script for the ads at the right position in the code. If you paste a list of all files in your templates' folder, I can tell you which one goes to which part of the forum, and possibly help you place the ad code within the file itself.
__________________
DNFind.net - For sale, PM me.
chronic is offline  
Old 06-29-2006, 05:42 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
uber's Avatar
Join Date: Jun 2006
Location: . on the redeye to anhedonia
Posts: 624
uber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of light
 


Animal Cruelty
Originally Posted by chronic
Well, it depends on where you want it, as there is a .php file for many parts of the template. If you want it in the post, you will have to open a certain .php file and add in the script for the ads at the right position in the code. If you paste a list of all files in your templates' folder, I can tell you which one goes to which part of the forum, and possibly help you place the ad code within the file itself.

Thanks mate... here is the list under templates/subsilver/

admin
agreement.tpl
bbcode.tpl
confirm_body.tpl
error_body.tpl
faq_body.tpl
formIE.css
groupcp_info_body.tpl
groupcp_pending_info.tpl
groupcp_user_body.tpl
images
index.htm
index_body.tpl
jumpbox.tpl
login_body.tpl
memberlist_body.tpl
message_body.tpl
modcp_body.tpl
modcp_move.tpl
modcp_split.tpl
modcp_viewip.tpl
overall_footer.tpl
overall_header.tpl
posting_body.tpl
posting_poll_body.tpl
posting_preview.tpl
posting_smilies.tpl
posting_topic_review.tpl
????: NamePros.com http://www.namepros.com/programming/212026-phpbb-and-adsense.html
privmsgs_body.tpl
privmsgs_popup.tpl
privmsgs_preview.tpl
privmsgs_read_body.tpl
profile_add_body.tpl
profile_avatar_gallery.tpl
profile_send_email.tpl
profile_send_pass.tpl
profile_view_body.tpl
search_body.tpl
search_results_posts.tpl
search_results_topics.tpl
search_username.tpl
simple_footer.tpl
simple_header.tpl
subSilver.cfg
subSilver.css
theme_info.cfg
viewforum_body.tpl
viewonline_body.tpl
viewtopic_body.tpl
viewtopic_poll_ballot.tpl
viewtopic_poll_result.tpl
uber is offline  
Old 06-30-2006, 12:47 AM   #4 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
the chances are you wish to place it into overall_header.tpl.

If you are familiar with html then it should not be a problem as except for placeholders etc everything is standard html in the tpl files.
Peter is offline  
Old 06-30-2006, 11:23 AM   #5 (permalink)
Account Suspended
 
LeetPCUser's Avatar
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,710
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
 


AIDS/HIV
Yes PHP is relatively easy to edit compared to other forums. Once you let us know where you want it exactly I should be able to help a bit. I used it for 2 years.
LeetPCUser is offline  
Old 06-30-2006, 08:20 PM THREAD STARTER               #6 (permalink)
NamePros Regular
 
uber's Avatar
Join Date: Jun 2006
Location: . on the redeye to anhedonia
Posts: 624
uber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of lightuber is a glorious beacon of light
 


Animal Cruelty
Originally Posted by filth@flexiwebhost
the chances are you wish to place it into overall_header.tpl.

If you are familiar with html then it should not be a problem as except for placeholders etc everything is standard html in the tpl files.

Thanks - I'll give it a go...

I saw one forum where ADs come up as the third post in each thread.... is that painful to program for a PHP n00b like me?
uber is offline  
Old 06-30-2006, 11:12 PM   #7 (permalink)
NamePros Regular
 
ablaye's Avatar
Join Date: May 2006
Location: WebmasterGround.com
Posts: 863
ablaye is on a distinguished road
 



You can put in the header (overall_header.tpl) or the footer (overall_footer.tpl).

If you want to put the adsense code between the posts in a thread, it can be easily done if you know how to program in PHP. Look at my forums at http://www.techslick.com and see how I was able to change the phpbb code to display the adsense ads after the very first post of each thread.
I can give you more details on how to do this if you want to have your ads that way.
ablaye is offline  
Old 07-01-2006, 12:51 AM   #8 (permalink)
Account Closed
 
Awakened-Soulja's Avatar
Join Date: Jun 2006
Posts: 175
Awakened-Soulja is a jewel in the roughAwakened-Soulja is a jewel in the roughAwakened-Soulja is a jewel in the rough
 




Originally Posted by uber
Thanks - I'll give it a go...
????: NamePros.com http://www.namepros.com/showthread.php?t=212026

I saw one forum where ADs come up as the third post in each thread.... is that painful to program for a PHP n00b like me?
There is a mod which makes your ads show up in/after the 1st, 2nd, 3rd....etc post. It is called "Inline Banner Ad", Click Here to download it..!Click Here.


Hope it helped.

Thankyou
Awakened-Soulja
Help me out by Donating some NameBucks to me!
Last edited by Awakened-Soulja; 07-01-2006 at 01:09 AM.
Awakened-Soulja is offline  
Old 07-01-2006, 03:17 AM   #9 (permalink)
NamePros Member
Join Date: May 2006
Posts: 30
diskwizz is an unknown quantity at this point
 



I did mine by just adding the banner code to the top of index_body.tpl and the viewforum_body.tpl and finally viewtopic_body.tpl
Seems to work fine. But the reason I am here is taht some of my ads are not content related. Could some of you guys please have a snoop around and see if you know what might be causing it.
Thanks in advance, DW

www.fat-chat.com/forum
diskwizz is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:14 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger