How to add a second image on header?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
Locked
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

How to add a second image on header?

Post by Nawid »

How can I add a second image on the header?

Actually, I want to add an google ad to my header. I want to add it just near my logo. (please visit my site www.SchoolLife.nl to see my style, header, logo)

I know this is possible, but how? Help would really be appreciated!
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
User avatar
mals69
Registered User
Posts: 595
Joined: Thu Mar 30, 2006 6:37 am

Re: How to add a second image on header?

Post by mals69 »

By placing a 468 google adsense banner code between these two tags <div align="center">Google adsense code goes here</div> - in your overall_header.html file , /public_html/phpbb3/styles/"The template you are using"/template

You can use right and left also in place of the center, "Play around" and you will get it to work.

There's also for further adjustment v align top middle and bottom.

Speaking of schools if you have not come across it this link would be worth checking out for HTML code.

http://www.w3schools.com
User avatar
Lumpy Burgertushie
Registered User
Posts: 68116
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How to add a second image on header?

Post by Lumpy Burgertushie »

be aware that putting google adsense in your overall_header and/or overall_footer files will violate google's terms of service and you could get your account suspended.


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

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: How to add a second image on header?

Post by Nawid »

Thank you mals69 and _Vinny_, I'll check the codes.
be aware that putting google adsense in your overall_header and/or overall_footer files will violate google's terms of service and you could get your account suspended
Dear Robert, what do you mean? So I'm not allowed to add google adsense in my overall_footer.html or overall_header.html files?

Could you be a bit more specific please?
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
User avatar
mals69
Registered User
Posts: 595
Joined: Thu Mar 30, 2006 6:37 am

Re: How to add a second image on header?

Post by mals69 »

Good point Robert - (Any chance you know how to fix my problem please in this forum)

The code is meant to be on a page that does not show all the time e.g viewtopic , viewforum etc with overall header and overall footer being constant its a no go under googles guidelines. Better on separate pages anyway cause you can see what pages are popular for clicks using the adsense tool.


Place it in index.php (top of index file) if you want it up top on your index (comes out the same as overall header) same for the other pages - top of viewtopic etc
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: How to add a second image on header?

Post by Nawid »

Thank you for the explanation mals69
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
User avatar
Lumpy Burgertushie
Registered User
Posts: 68116
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How to add a second image on header?

Post by Lumpy Burgertushie »

no , you would place it in index_body.html and/or viewforum_body.html and/or viewtopic_body.html

at the top or the bottom depending on where you want it to show up.


google does not allow adsense on non-content pages like login pages, search results, TOS pages, etc. etc.


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

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: How to add a second image on header?

Post by Nawid »

Yes, I have, I think problem solved. ^^

Thanks everyone for nice explanation.
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
Locked

Return to “[3.0.x] Styles Support & Discussion”