| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Jun 2006 Location: . on the redeye to anhedonia
Posts: 624
![]() ![]() ![]() ![]() ![]() | 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! |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Dec 2005
Posts: 186
![]() ![]() | 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. |
| |
| | THREAD STARTER #3 (permalink) | ||||
| NamePros Regular Join Date: Jun 2006 Location: . on the redeye to anhedonia
Posts: 624
![]() ![]() ![]() ![]() ![]() |
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 | ||||
| |
| | #4 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| |
| | THREAD STARTER #6 (permalink) | ||||
| NamePros Regular Join Date: Jun 2006 Location: . on the redeye to anhedonia
Posts: 624
![]() ![]() ![]() ![]() ![]() |
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? | ||||
| |
| | #7 (permalink) |
| NamePros Regular Join Date: May 2006 Location: WebmasterGround.com
Posts: 863
![]() | 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. |
| |
| | #8 (permalink) | ||||
| Account Closed Join Date: Jun 2006
Posts: 175
![]() ![]() ![]() |
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.
| ||||
| |
| | #9 (permalink) |
| NamePros Member Join Date: May 2006
Posts: 30
![]() | 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 |
| |