

| |||||||
| | LinkBack | Thread Tools | Display Modes |
| |||
| how to add a logo and Google AdSense like this how to add a logo and Google AdSense like this |
| ||||
| In templates>yget>sidebar>modules 1. Create new file adsense.tpl 2. Cut and paste code needed for sidebar module into adsense. make sure to change your google_ad_client and google_ad_channel values. Code: <div class="tlb">
{php}
echo "<span><img src=\"".my_pligg_base."/templates/yget/images/expand.png\" onClick=expandcontent(this,'s1') ></span> ";
{/php}
<a href="#">Sponsored Links</a> --title of sidebar
</div>
<div id="sr" style="padding-bottom:5px;">
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxx";
google_alternate_color = "F9F7EE";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_ad_type = "text";
google_ad_channel = "xxxxxxxxxx";
google_color_border = "F9F7EE";
google_color_bg = "F9F7EE";
google_color_link = "6F3C1B";
google_color_text = "6F3C1B";
google_color_url = "CC0000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
4. make sure you upload your adsense.tpl file to Next 1. Open sidebar.tpl file in 2. Add this line of code where ever you want the side bar to show up templates>yget>sidebar>modules Code: {assign var=sidebar_module value="adsense"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
Code: {assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
Code: {assign var=sidebar_module value="adsense"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
{assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
I hope this helps. Be Well, Onelessthang Last edited by onelessthang; 03-18-2007 at 11:36 PM. |
| ||||
| For the header - You will just need to ad a 1 row\2 column table to the header.tpl file around line 40 inbetween the close and opening of these divs Code: Line 39 </div> <table> <tr> <td>Header Image</td> <td>Adsense Code - recommend no wider than 468x60</td> <tr> </table> <div id="cab"> Onelessthang |
| |||
| Quote:
i need help something wrong happen when i did that logo and ads are showing properly but the bar and the link under the published,upcomming,submit story got screwed up and are now not visible can you help please www.indianewspad.com is my website |
| |||
| hey never mind i got it fixed thanks |
| |||
| Quote:
|
| |||
| Newbies will love you for your post!!! Thanx |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| green 9.8.2 | qvnsq | Pligg Templates | 70 | 02-21-2009 07:21 AM |
| What is wrong with this logo | Lostshootingstar | Off-topic | 1 | 09-06-2008 07:16 PM |
| Logo and Banner on the sidebar | ufoman | "yget" | 7 | 11-29-2007 08:55 AM |
| FindAndroid.com - Site to find anything about Google Android Mobile OS | iseec | My Pligg Site | 0 | 11-22-2007 04:10 AM |