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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2007, 10:40 AM
New Pligger
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
make adsense ad to right-hand side

I am trying to make adsense ad to right-hand side of summary during viewing story.

I try to edit the template, story_central.tpl

like adding <div style=float:right> and with my adsense code.

But it comes out that firefox browser is ok. But IE 6.0 is not good. The ad is just above those title.

any idea?
Reply With Quote
  #2 (permalink)  
Old 07-24-2007, 05:10 PM
New Pligger
 
Join Date: Jul 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
me too, i would like mine like this. One home page it runs down the centre of the page, and on article page the same thing. Would I edit the side column code or the story / article one?

If so which templates? Any advice anyone?

Demo templates here

www.rugbynewz.com/templates/yget/images/googlewideskyscraper.gif


www.rugbynewz.com/templates/yget/images/googlewideskyscraper_articleview.gif

Last edited by joesox; 07-24-2007 at 05:13 PM..
Reply With Quote
  #3 (permalink)  
Old 07-24-2007, 10:07 PM
Designer
Pligg Version: 9.9.
 
Join Date: Mar 2007
Posts: 159
Thanks: 1
Thanked 15 Times in 11 Posts
Send a message via MSN to skins4webs
hi

This isn't perfect, but its probably the closest you will get.


Open - /templates/yourtemplate/link_summary.tpl

FIND

Quote:
<span id="ls_adminlinks-{$link_shakebox_index}" style="display:none">

{if $isadmin eq "yes"}

<span id="ls_admin_links-{$link_shakebox_index}">

<br /><a href="{$story_edit_url}">{#PLIGG_Visual_LS_Admin_E dit#}</a>

<br /><a href="{$story_admin_url}">{#PLIGG_Visual_LS_Admin_ Status#}</a>

</span>

{else}

{if $user_logged_in eq $link_submitter}

<span id="ls_user_edit_links-{$link_shakebox_index}"><br /><a href="{$story_edit_url}">{#PLIGG_Visual_LS_Admin_E dit#}</a></span>

{/if}

{/if}

</span>



</div>
Add After

Quote:
{if $pagename eq "story"}

<div style="float:right;margin-left: 10px;">

YOUR GOOGLE AD - Recommended 300 x 250

</div>

{/if}
-------Fixes A Problem If The Ad Is Bigger Then The Text-----------

Find

Quote:
{if $pagename neq "story"} <a href="{$story_url}">{#PLIGG_Visual_Read_More#}</a> &raquo; {/if}<br />

</span>

</span>

{/if}
Add After

Quote:
{if $pagename eq "story"}
<div style="padding-top: 20px;">
<span class="news-details">

Your Google Ad - Recommend - 468x60

</span>
</div>
{/if}
__________________
http://www.illestlyrics.com, hip-hop site
http://www.qkin.com, Web development site

Last edited by skins4webs; 08-10-2007 at 03:35 PM..
Reply With Quote
  #4 (permalink)  
Old 08-06-2007, 09:01 AM
New Pligger
 
Join Date: Jul 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
ads on right

Thank you, sorry I was out of town for a while hence my late reply. What TPL file would this be in?
Reply With Quote
  #5 (permalink)  
Old 08-10-2007, 03:30 PM
Designer
Pligg Version: 9.9.
 
Join Date: Mar 2007
Posts: 159
Thanks: 1
Thanked 15 Times in 11 Posts
Send a message via MSN to skins4webs
I updated it all and tested it on yget. You need to use both ads. You will notice why.

It won't look right until you put the ads in.
__________________
http://www.illestlyrics.com, hip-hop site
http://www.qkin.com, Web development site

Last edited by skins4webs; 08-10-2007 at 03:36 PM..
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
Removing adsense from Featured Module? submitlink Module Support 1 08-16-2008 11:11 AM
Adsense Revenue Sharing Mod for 8.2 Dravis Modification Tutorials 38 03-13-2008 09:57 AM
EASY NO WORRIES PAINLESS adsense revenue sharing mod placement mod guide johntheentrepreneur Modification Tutorials 3 03-11-2008 01:47 PM
Google adsense revenue sharing, question dadaas Modification Tutorials 0 10-03-2007 01:13 PM
Adsense API, automatically generating Adsense ID's for customers aaronpais General Help 4 05-07-2007 02:09 PM


Search Engine Friendly URLs by vBSEO 3.2.0