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>
3.Save your adsense.tpl file
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"}
since I wanted my adsense above the categories I placed the code above this line
Code:
{assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
so it looks like this
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"}
3. save your sidepar.tpl file
I hope this helps.
Be Well,
Onelessthang