View previous topic :: View next topic |
Author |
Message |
SWM
Site Admin
Joined: 21 Jul 2004
Posts: 425
Location: Boston, MA
|
Posted: Sat Mar 19, 2005 4:40 am Post subject: Google Adsense Placement |
|
|
Red, i would like to put em as you suggested in my test forum. do you know where i would need to edit the code to get them in that area? |
|
Back to top |
|
|
RedWolves2
StaticNine Moderator
Joined: 23 Feb 2005
Posts: 132
|
Posted: Sat Mar 19, 2005 4:48 am Post subject: |
|
|
Yeah in the same spot as I did mine probably ... although it might be different since your using a different theme.
Let me check where mine was at.
Oh while I am thinking about it you should set up your alternate ads to go to Amazon. That way instead of the public service ads that you don't get paid for you can display a amazon ad instead. |
|
Back to top |
|
|
RedWolves2
StaticNine Moderator
Joined: 23 Feb 2005
Posts: 132
|
Posted: Sat Mar 19, 2005 4:53 am Post subject: |
|
|
OK in my template directory for my theme there is a viewtopic_body.tpl file which I put this code on the second line after the first table tag.
Code: |
<tr>
<td align="center" valign="middle" colspan="2">
<script type="text/javascript"><!--
google_ad_client = "pub-8946680209753321";
google_alternate_ad_url = "http://www.mediagab.com/blog/netflix-ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="2506571116";
google_ad_type = "text";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr> |
That will only add the ad to the top of the Topic page and not on the rest of the forum...I like that as it gives more relevant ads instead of just ads to hosting and other types php bb's.
If you want it on the whole forum you can just add your code to the last line of overall_header.tpl in the same directory.
Let me know if you need help.
|
|
Back to top |
|
|
SWM
Site Admin
Joined: 21 Jul 2004
Posts: 425
Location: Boston, MA
|
Posted: Sat Mar 19, 2005 5:12 am Post subject: |
|
|
cool, i look into this when i get a sec.
Hey, read this mod man, i did those three simple instructions, but i dont get how this upload script works, or how to use it? i think you know more about scripting and such...obviously...
http://www.phpbb.com/phpBB/viewtopic.php?t=267031 |
|
Back to top |
|
|
RedWolves2
StaticNine Moderator
Joined: 23 Feb 2005
Posts: 132
|
Posted: Sat Mar 19, 2005 5:22 am Post subject: |
|
|
Navigate to where you have the script installed and see what happens. |
|
Back to top |
|
|
SWM
Site Admin
Joined: 21 Jul 2004
Posts: 425
Location: Boston, MA
|
Posted: Sat Mar 19, 2005 5:28 am Post subject: |
|
|
i got it working im and idiot. i had it all uploaded, but i hadnt renamed the final file index.php so it would run when called. anyways, check it out...use your forum login data to test it....ill pm you and shim the info, i dont wanna use it on the forum just yet. |
|
Back to top |
|
|
RedWolves2
StaticNine Moderator
Joined: 23 Feb 2005
Posts: 132
|
Posted: Sat Mar 19, 2005 5:36 am Post subject: |
|
|
That's cool but also wierd...how is that a Mod for phpBB...it is so separate from the board it isn't even funny.
The only thing it uses is the database for the login.
I don't know how useful that might be to you on this forum SWM. |
|
Back to top |
|
|
SWM
Site Admin
Joined: 21 Jul 2004
Posts: 425
Location: Boston, MA
|
Posted: Sat Mar 19, 2005 5:41 am Post subject: |
|
|
yeah, like i said, just testing it and looking for input, i see ZERO benefit for it, the guy who wrote it said it was specifically done so for the people who just needed to have this ability, wasnt meant to be fully integrated, i guess the ACTUAL attachments Mod is a fairly tricky install so this was made as an easy install/setup alternative. wont suit me though. |
|
Back to top |
|
|
|