How to Put advertisements in my website

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
User avatar
Algore
Registered User
Posts: 294
Joined: Tue Oct 24, 2006 10:19 am

How to Put advertisements in my website

Post by Algore »

Hey i have installed phpBB2 in my website
I want to use ads in my website like google adsense ,etc on any corner of the page

How do i do that

DO i need to install any addon
Iy yes which addon and where i.e. in which folder of phpBB should i upload it to install

Pls help .......

Google AdSense gives a code

where should i put those codes so that i can see the google adsense advertisement

UberSkilled.com
Registered User
Posts: 156
Joined: Mon Jan 31, 2005 3:04 am
Contact:

Post by UberSkilled.com »

Well it's not too hard to do yourself if you understand html well... However, it doesn't seem like you do. If you do however, try looking through templates/subSilver/overall_header.tpl.


Otherwise, try this. You could also try one in the development section, but note that phpBB don't support them.



/Whitey

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69555
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Post by KevC »

UberSkilled.com wrote: Well it's not too hard to do yourself if you understand html well... However, it doesn't seem like you do. If you do however, try looking through templates/subSilver/overall_header.tpl.

You should never put the adsense code into the overall_header.
It's against the term and conditions and they'll close your account.

You should put the code at the very first bit in the index_body.tpl, viewforum_body.tpl and viewtopic_body.tpl files of your template to get the ads at the top. If the want them at the bottom, put the code last in those files.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

UberSkilled.com
Registered User
Posts: 156
Joined: Mon Jan 31, 2005 3:04 am
Contact:

Post by UberSkilled.com »

My bad - I've never used adsense. I just put my banner exchange in there :).


/Whitey

hwashburn428
Registered User
Posts: 23
Joined: Tue Oct 24, 2006 4:00 am
Contact:

Post by hwashburn428 »

Hey I tried putting the google adsense code in those area's with the Athena template from http://www.phpbbhacks.com and it doesn't show up. Do you know how to integrate it with this?
Thanks.

User avatar
Lumpy Burgertushie
Registered User
Posts: 67048
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie »

hwashburn428 wrote: Hey I tried putting the google adsense code in those area's with the Athena template from http://www.phpbbhacks.com and it doesn't show up. Do you know how to integrate it with this?
Thanks.


where and how did you add the google adsense code?

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

starsapphire04
Registered User
Posts: 9
Joined: Wed Oct 25, 2006 2:27 am

Post by starsapphire04 »

Lumpy Burgertushie wrote:
hwashburn428 wrote:Hey I tried putting the google adsense code in those area's with the Athena template from http://www.phpbbhacks.com and it doesn't show up. Do you know how to integrate it with this?
Thanks.


where and how did you add the google adsense code?

robert


you must register at google.com/adsense

User avatar
Lumpy Burgertushie
Registered User
Posts: 67048
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie »

starsapphire04 wrote:
Lumpy Burgertushie wrote:
hwashburn428 wrote:Hey I tried putting the google adsense code in those area's with the Athena template from http://www.phpbbhacks.com and it doesn't show up. Do you know how to integrate it with this?
Thanks.


where and how did you add the google adsense code?

robert


you must register at google.com/adsense


:lol:
thanks, but that is not what I was asking. I was asking the poster what method they were using to put the adsense code into their files so that I can see if they did it correctly.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

hwashburn428
Registered User
Posts: 23
Joined: Tue Oct 24, 2006 4:00 am
Contact:

Post by hwashburn428 »

Hey,
I was putting the adsense code in the index_body.tpl at the top of the code. This is how I did it with the subSilver template and it showed up right under the header. When I do it with the Athena template it only shows up in my admin control panel in the admin index....

User avatar
Lumpy Burgertushie
Registered User
Posts: 67048
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie »

hwashburn428 wrote: Hey,
I was putting the adsense code in the index_body.tpl at the top of the code. This is how I did it with the subSilver template and it showed up right under the header. When I do it with the Athena template it only shows up in my admin control panel in the admin index....


well, it would seem to me that you put it in the wrong file then.

first, remove it from the admin/index_body.tpl file,

then , put it in the correct index_body.tpl file in the main Athena folder.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Locked

Return to “2.0.x Support Forum”