NameSilo

PhpBB & Adsense

Spaceship Spaceship
Watch

uber

Established Member
Impact
35
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!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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.
 
0
•••
chronic said:
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
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
 
0
•••
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.
 
0
•••
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.
 
0
•••
filth@flexiwebhost said:
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?
 
0
•••
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.
 
0
•••
uber said:
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?

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:
0
•••
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
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back