FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


phpBB: How to put google ads





jipmerite
Hi all. Need a bit of help with the phpBB code. Just two quick questions.

1- In the Charcoal 3 theme, the login bar (with username and password fields) is at the bottom by default. I would like to out it at the top. How do I do that?

2- I would like to put google ad bar above this above mentioned login bar. Again, how?

Also how to make the google ads appear at the bottom of the Posts, as seen in frihost below my post after I press Submit.

My reference is http://www.fun.niranvv.com/
I would like the login bar and google as as it is there.

Thanks a lot guys.

EDIT:

I found how to do it. Check these links...

http://www.phpbb2.de/rlink/rlink.php?url=http://www.askdavetaylor.com/phpbb_trick_for_including_google_adsense_between_articles.html

Using a Mod:
http://www.phpbb2.de/rlink/rlink.php?url=http://www.phpbb.com/phpBB/viewtopic.php?t=306680

Make it appear as a Post:
http://www.phpbb2.de/rlink/rlink.php?url=http://www.cartystudios.com/viewpost.465.html
niranvv
I the proud owner of www.fun.niranvv.com Laughing

So I'll explain how its possible! Wink

1st, regarding moving the login bar up

Goto: root/templates/c3s/index_body.tpl

ther yoyu can find login swith as:

<!-- BEGIN switch_user_logged_out -->
................
................
<!-- END switch_user_logged_out -->


Just cut the whole swith part and move it up!

Find:
Code:
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>


and after that add the above cut code:

<!-- BEGIN switch_user_logged_out -->
..............


That will move the login box to top!
niranvv
Forgot to mention about Google Ads banner!

Just get code for 728x90 banner!
and goto:
root/templates/templateName/overallheader.tpl

there add the code after the last line and inside one div or table tag!
Im using <div> tag

So my Google ad code will look like:

</table> //Present Last line
<!-- Google baner Ad Strts here -->
<div align="center">
Google Code here
</div>
<!-- Google banner Ad Ends here -->



Niran
Laughing
jipmerite
Hey thanks a lot for the help. I will try that log bar move soon.

Regarding the google ads, I read else where that putting it in the overallheader.tpl is against Google rules.
niranvv
jipmerite wrote:
Hey thanks a lot for the help. I will try that log bar move soon.

Regarding the google ads, I read else where that putting it in the overallheader.tpl is against Google rules.


Im not aware of that Google rule friend! Crying or Very sad
Is it true?
niranvv
Changed my code from overall_header.tpl
(I dont want to loose my adsense account )
Wink

Just check my page now: www.fun.niranvv.com
Its having the same appearence as earlier!
the thing is that, I had removed the code from overall_heade.tpl and added to the code for individual files:

Arrow root/templates/urTemplate/faq_body.tpl (to 1st line)
Arrow root/templates/urTemplate/index_body.tpl (to 1st line)
Arrow root/templates/urTemplate/viewforum_body.tpl (to 1st line)
Arrow root/templates/urTemplate/viewtopic_body.tpl (tot 1st line)


Laughing
mathiaus
jipmerite wrote:
Regarding the google ads, I read else where that putting it in the overallheader.tpl is against Google rules.

Google do not allow you to put their ads on login pages or search result pages. Putting it in either overall_header or overall_footer would show them on all pages including the disallowed ones.
jipmerite
Yes, putting them in the individual files as you have is the correct way to do it.

I tried the change in the login bar as you said and it works great. Thanks a lot.
swizzy
i know hw to do that in phpbb3, i can write a tute or you

visit my site to get a reference swizzy.frih.net
Related topics
how about put google ad in cpanel?
Google Ads help fund Spyware ?
how to add google ads into my website?
What are Google Ads?
Google ads?
Google Ads
Google Ads on forum Top
Google ads invoegen in phpbb forum
Google ads on Geocities
Can we put our own ads with frihost web hosting
i want to put google adds on my forum
Help: how to put google ads in between the blogs?
can i put 2 google ads from different accounts in 1 page??
Google Ads mod for PHPBB3
Reply to topic    Frihost Forum Index -> Scripting -> Website Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.