View Single Post
  #2 (permalink)  
Old 04-20-2008, 05:56 AM
popsantiago's Avatar
popsantiago popsantiago is offline
Pligg Donor
 
Join Date: May 2007
Posts: 32
Thanks: 0
Thanked 4 Times in 3 Posts
I find the solution,
just copy the text of show_ads.tpl in your template file ^^

like that : (in header.tpl for example)

Code:
<div class="head_banner">
			{adsense assign=users_adsense}
{if $users_adsense}

	{* this part shows the users adsense id *}

	<script type="text/javascript"><!--
		google_ad_client = "{$google_adsense_id}"; {* dont change this line *}
		google_alternate_ad_url = "";
		google_ad_width = 468;
		google_ad_height = 60;
		google_ad_format = "468x60_as";
		google_ad_type = "text_image";
		google_ad_channel ="{$google_adsense_channel}"; {* dont change this line *}
		google_color_border = "ffffff";
		google_color_bg = "ffffff";
		google_color_link = "f46c05";
		google_color_text = "333333";
		google_color_url = "cccccc";
		//-->
	</script>
	<script type="text/javascript"
	  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
{else}

	{* this part shows your adsense id *}

	<script type="text/javascript"><!--
		google_ad_client = "pub-xxxxxxxxxxx";  {*  be sure to put your adsense id here *}
		google_alternate_ad_url = "";
		google_ad_width = 468;
		google_ad_height = 60;
		google_ad_format = "468x60_as";
		google_ad_type = "text_image";
		google_ad_channel ="";
		google_color_border = "ffffff";
		google_color_bg = "ffffff";
		google_color_link = "f46c05";
		google_color_text = "333333";
		google_color_url = "cccccc";
		//-->
	</script>
	<script type="text/javascript"
	  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
{/if}
		</div>
__________________________________________________ _____________
My pligg under construction BBUZZ Thx to pligg developpement.
Reply With Quote