Pligg CMS Forums


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



how to add a logo and Google AdSense like this

Design by Pligg User Athle


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-2007, 06:05 AM
New Pligger
 
Join Date: Mar 2007
Posts: 29
how to add a logo and Google AdSense like this

how to add a logo and Google AdSense like this
Attached Images
File Type: jpg 1.jpg (23.0 KB, 1504 views)
File Type: jpg 123.jpg (32.1 KB, 1226 views)
Reply With Quote
Sponsor
  #2 (permalink)  
Old 03-17-2007, 11:00 PM
New Pligger
 
Join Date: Mar 2007
Posts: 29
anybody help?
Reply With Quote
  #3 (permalink)  
Old 03-18-2007, 05:04 PM
onelessthang's Avatar
Constant Pligger
 
Join Date: Feb 2007
Location: Dallas, TX - USA
Posts: 120
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

Last edited by onelessthang; 03-18-2007 at 11:36 PM.
Reply With Quote
  #4 (permalink)  
Old 03-18-2007, 05:10 PM
onelessthang's Avatar
Constant Pligger
 
Join Date: Feb 2007
Location: Dallas, TX - USA
Posts: 120
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">
Hope this helps,
Onelessthang
Reply With Quote
  #5 (permalink)  
Old 03-18-2007, 07:46 PM
New Pligger
 
Join Date: Mar 2007
Posts: 29
hahahahahahaha
kiss u
Reply With Quote
  #6 (permalink)  
Old 06-06-2007, 01:21 AM
Casual Pligger
 
Join Date: May 2007
Posts: 45
Quote:
Originally Posted by onelessthang View Post
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">
Hope this helps,
Onelessthang

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
Reply With Quote
  #7 (permalink)  
Old 06-06-2007, 01:22 AM
Casual Pligger
 
Join Date: May 2007
Posts: 45
hey never mind i got it fixed thanks
Reply With Quote
  #8 (permalink)  
Old 06-20-2007, 09:47 PM
Constant Pligger
 
Join Date: Nov 2006
Posts: 150
Send a message via MSN to disier
Quote:
Originally Posted by onelessthang View Post
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">
Hope this helps,
Onelessthang
Thank you very much my site look better now www.tanibol.com thanks to your IDEA.
Reply With Quote
  #9 (permalink)  
Old 07-05-2007, 10:38 AM
New Pligger
 
Join Date: Jul 2007
Posts: 1
Talking Thanks so much

Newbies will love you for your post!!!
Thanx
Reply With Quote
  #10 (permalink)  
Old 10-21-2007, 06:51 AM
New Pligger
 
Join Date: Oct 2007
Posts: 9
Thank's brooo....
I love you....mwaaaahhhhh
Reply With Quote
Reply

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

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development