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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-14-2007, 08:51 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Apr 2007
Location: Texas
Posts: 23
Thanks: 4
Thanked 0 Times in 0 Posts
Logo and Banner on the sidebar

How would I place a 257 x 64 Logo image file on the top part of the sidebar and a 250 x 250 Google Adsense banner on the bottom? I'm using the yget template and Pligg 9.7. I uploaded two image files to better describe what I am asking. Thanks for any help.
Attached Images
File Type: jpg sidebar_logo.jpg (187.7 KB, 222 views)
File Type: jpg sidebar_adsense.jpg (187.5 KB, 163 views)
Reply With Quote
  #2 (permalink)  
Old 08-15-2007, 02:17 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Apr 2007
Location: Texas
Posts: 23
Thanks: 4
Thanked 0 Times in 0 Posts
Never mind, I found out where to put the code in sidebar.tpl.
Reply With Quote
  #3 (permalink)  
Old 08-18-2007, 03:48 PM
New Pligger
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
can you share that info please
thx
Reply With Quote
  #4 (permalink)  
Old 08-31-2007, 03:13 AM
New Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Apr 2007
Location: Texas
Posts: 23
Thanks: 4
Thanked 0 Times in 0 Posts
This is the code I used in sidebar.tpl. Just make changes to fit your site.

Code:
{config_load file="/libs/lang.conf"}

<div align="center">
<img src="{$my_pligg_base}/templates/{$the_template}/images/logo.png" WIDTH="257" HEIGHT="64">
</div>
<br />

{if $user_authenticated ne true} {* show only if NOT logged in *}
	{assign var=sidebar_module value="about_box"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
{/if}

{checkActionsTpl location="tpl_sidebar_top"} 
 
{if $user_authenticated ne true} {assign var=sidebar_module value="login"}{include file=$the_template_sidebar_modules."/wrapper2.tpl"} {/if}

{assign var=sidebar_module value="sidebar_stories_u"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{assign var=sidebar_module value="sidebar_stories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

<div align="center">
<script type="text/javascript"><!--
google_ad_client = "Your Adsense ID Goes Here";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text_image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

Last edited by ufoman; 08-31-2007 at 03:39 AM..
Reply With Quote
  #5 (permalink)  
Old 11-03-2007, 01:00 PM
New Pligger
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Isn't this againts Google's TOS?
__________________
- Funny Commercials - Internet Marketing
Reply With Quote
  #6 (permalink)  
Old 11-03-2007, 01:01 PM
New Pligger
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
You know; adsense on login, sign up pages etc.
__________________
- Funny Commercials - Internet Marketing
Reply With Quote
  #7 (permalink)  
Old 11-03-2007, 03:42 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Apr 2007
Location: Texas
Posts: 23
Thanks: 4
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by 369874123 View Post
You know; adsense on login, sign up pages etc.
I'm no expert on adsense rules and TOS. But every website I have ever been to that uses adsense including Pligg sites, has a login/sign up area on the same page as an adsense banner shows. When using the yget default template with Pligg the sidebar is on every page. So no matter where I put an adsense banner on my Pligg site, it will always show the sidebar and the login/sign up area.

What do you suggest I do?
Reply With Quote
  #8 (permalink)  
Old 11-29-2007, 08:55 AM
modernste's Avatar
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Nov 2007
Posts: 43
Thanks: 6
Thanked 5 Times in 5 Posts
great piece of code, thank you
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
Advertising Banner? Please Help gossipqueenie General Help 6 09-07-2008 08:45 PM
How to put a banner infront of the site logo philiscute Modification Tutorials 5 01-12-2008 08:21 PM
Inserting Logo etc computerbar Installation and Upgrade Help 5 11-20-2007 07:39 AM
how to have a banner on pligg? cooldudeny General Help 0 05-31-2007 06:38 AM
upload banner or logo move55 General Help 1 02-11-2007 11:36 AM


Search Engine Friendly URLs by vBSEO 3.2.0