Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2008, 06:56 PM
popsantiago's Avatar
Pligg Donor
Pligg Version: 9.9
 
Join Date: May 2007
Posts: 32
Thanks: 0
Thanked 4 Times in 3 Posts
Share revenu template

hi,
I've no problem with share revenu adsense but i want to put an other section of share revenu in my template...(in the header)
how can i do this???

PS: si un francais sait comment faire, je prends
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 05:56 AM
popsantiago's Avatar
Pligg Donor
Pligg Version: 9.9
 
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
  #3 (permalink)  
Old 04-20-2008, 09:41 PM
catchpen's Avatar
Pligg Donor
 
Join Date: Jan 2008
Posts: 209
Thanks: 30
Thanked 18 Times in 13 Posts
popsantiago your site is looking really nice
Reply With Quote
  #4 (permalink)  
Old 04-21-2008, 02:07 AM
magpie2419's Avatar
Casual Pligger
 
Join Date: Jun 2007
Location: Libya
Posts: 59
Thanks: 15
Thanked 3 Times in 3 Posts
Yes that is a really nice site great design.
__________________
www.geordies.net
Reply With Quote
  #5 (permalink)  
Old 06-19-2008, 11:54 AM
New Pligger
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
will doing this make different adsense ids show up on the same page?
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
LemonTwist Template (Free) by Yankidank Yankidank Pligg Templates 29 11-20-2008 01:44 AM
MacBlue Free Pligg Template by Yankidank Yankidank Pligg Templates 13 11-10-2008 05:37 PM
Upstart Blogger Tutor Lite Template Futurosity Template Support 13 05-09-2007 02:15 AM
How to make / change a template in Pligg Beta 7 jimbeam General Help 0 12-05-2006 01:19 PM


Search Engine Friendly URLs by vBSEO 3.2.0