[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 06-29-2006, 03:51 PM   #1 (permalink)
NamePros Regular
 
uber's Avatar
 
Join Date: Jun 2006
Location: . on the redeye to anhedonia
Posts: 617
657.65 NP$ (Donate)

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, 04:31 PM   #2 (permalink)
NamePros Member
 
Join Date: Dec 2005
Posts: 186
0.00 NP$ (Donate)

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, 04:42 PM   #3 (permalink)
NamePros Regular
 
uber's Avatar
 
Join Date: Jun 2006
Location: . on the redeye to anhedonia
Posts: 617
657.65 NP$ (Donate)

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
Quote:
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
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-29-2006, 11:47 PM   #4 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

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, 10:23 AM   #5 (permalink)
Account Suspended
 
LeetPCUser's Avatar
 
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,714
17.55 NP$ (Donate)

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, 07:20 PM   #6 (permalink)
NamePros Regular
 
uber's Avatar
 
Join Date: Jun 2006
Location: . on the redeye to anhedonia
Posts: 617
657.65 NP$ (Donate)

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
Quote:
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, 10:12 PM   #7 (permalink)
NamePros Regular
 
ablaye's Avatar
 
Join Date: May 2006
Location: WebmasterGround.com
Posts: 837
0.00 NP$ (Donate)

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 06-30-2006, 11:51 PM   #8 (permalink)
Account Closed
 
Awakened-Soulja's Avatar
 
Join Date: Jun 2006
Posts: 175
36.00 NP$ (Donate)

Awakened-Soulja is a jewel in the roughAwakened-Soulja is a jewel in the roughAwakened-Soulja is a jewel in the rough


Caution

Quote:
Originally Posted by uber
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 by Awakened-Soulja; 07-01-2006 at 12:09 AM.
Awakened-Soulja is offline  
Old 07-01-2006, 02:17 AM   #9 (permalink)
NamePros Member
 
Join Date: May 2006
Posts: 30
0.00 NP$ (Donate)

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

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

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


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:49 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

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 76 77 78 79 80 81 82 83 84 85