Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-04-2007, 08:09 AM
kapengbarako kapengbarako is offline
Casual Pligger
 
Join Date: Feb 2007
Posts: 44
Downloads: 6
Uploads: 0
Thanks: 5
Thanked 7 Times in 3 Posts
You're welcome :)
__________________
Viral Videos Vault
Reply With Quote
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.
  #12 (permalink)  
Old 03-04-2007, 02:12 PM
jon's Avatar
jon jon is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 76
Downloads: 2
Uploads: 0
Thanks: 5
Thanked 3 Times in 2 Posts
An enhancement:

I noticed that do not show on the "tag" pages, so adding

PHP Code:
|| $pagename eq "search" 
Means they appear on tagged pages too.

Cheers,

Jon.
Reply With Quote
  #13 (permalink)  
Old 03-05-2007, 07:51 AM
kapengbarako kapengbarako is offline
Casual Pligger
 
Join Date: Feb 2007
Posts: 44
Downloads: 6
Uploads: 0
Thanks: 5
Thanked 7 Times in 3 Posts
thanks for the code update jon

- neil
__________________
Viral Videos Vault
Reply With Quote
  #14 (permalink)  
Old 03-07-2007, 02:01 AM
baizoo's Avatar
baizoo baizoo is offline
New Pligger
 
Join Date: Feb 2007
Posts: 9
Downloads: 10
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
very nice! I will add to the bottom
__________________
like travel?? want know the China? want to go beijing2008?

just go www.hibeijing2008.com
Reply With Quote
  #15 (permalink)  
Old 03-07-2007, 05:45 AM
streamcast streamcast is offline
New Pligger
 
Join Date: Feb 2007
Posts: 4
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 4 Times in 1 Post
Is there also a tutorial for yget template available?
Reply With Quote
  #16 (permalink)  
Old 03-08-2007, 08:52 AM
kapengbarako kapengbarako is offline
Casual Pligger
 
Join Date: Feb 2007
Posts: 44
Downloads: 6
Uploads: 0
Thanks: 5
Thanked 7 Times in 3 Posts
Quote:
Originally Posted by streamcast View Post
Is there also a tutorial for yget template available?
i'll be doing one. please wait for it :)
__________________
Viral Videos Vault
Reply With Quote
  #17 (permalink)  
Old 03-09-2007, 01:42 PM
Critter183 Critter183 is offline
Pligg Donor
 
Join Date: Mar 2007
Posts: 34
Downloads: 0
Uploads: 0
Thanks: 8
Thanked 3 Times in 3 Posts
Awesome trick!

I had placed a table in header.tpl of my YGET template, and inserted my google code there, along side my logo image. The trouble was it showed on every page.

I took your "if" argument, and used it around my google code and it works like a charm. The only problem I had was when I first did it, using the " " around the pagenames I got a MySQL error. I changed the " " to ' ' and all was well. My mods to header.tpl began after line 36.

PHP Code:
Line 36: </div>
<!-- 
My Mods Begin Here  -->
<
p>&nbsp;</p>
<
table border="0" cellpadding="4" width="100%"><tr>
<
td align="center" valign="top">
<
img src="http://www.mydomain.com/templates/yget/images/logo.jpg" alt="MyLogo" />
</
td>
<
td align="center" valign="top">
{if 
$pagename eq 'index' || $pagename eq 'story' || $pagename eq 'search' || $pagename eq 'upcoming'}
<
script type="text/javascript"><!--
google_ad_client "pub-xxxxxxxxxxxxxxxx";
google_ad_width 728;
google_ad_height 90;
google_ad_format "728x90_as";
google_ad_type "text";
google_ad_channel "";
google_color_border "FFFFFF";
google_color_bg "FFFFFF";
google_color_link "E1771E";
google_color_text "000000";
google_color_url "940F04";
//--></script>
<script type="text/javascript"
  
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
{/if}
</td></tr></table>
<p>&nbsp;</p>
<!-- My Mods End Here  -->
<div id="cab">
    <ul class="postin"> 
I also added: || $pagename eq 'upcoming' to the list.

Last edited by Critter183 : 03-09-2007 at 01:59 PM.
Reply With Quote
The Following User Says Thank You to Critter183 For This Useful Post:
  #18 (permalink)  
Old 03-13-2007, 08:53 PM
kapengbarako kapengbarako is offline
Casual Pligger
 
Join Date: Feb 2007
Posts: 44
Downloads: 6
Uploads: 0
Thanks: 5
Thanked 7 Times in 3 Posts
i'm requesting those who liked this post if you can digg the topic (if you have a digg account). just go to the blog and click on the "digg it" button.

many thanks!
__________________
Viral Videos Vault
Reply With Quote
  #19 (permalink)  
Old 03-15-2007, 08:55 AM
jon's Avatar
jon jon is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 76
Downloads: 2
Uploads: 0
Thanks: 5
Thanked 3 Times in 2 Posts
Yeah, I dig it man. Got a rarely used account. I use netscape more, so will netscape it!

On question though - the whole "if" thing led me to want to try new things. I would like to set a banner which will show depending on words in other parts of the URL. i.e. at the end, or anywhere, so e.g.

if bodybuilding appears anywhere in the URL, then show a bodybuilding banner.

How is that done? The code seems to only look at the first word in the URL (i.e. search, index, story).

Anyway, I also made the same mistake with the " and ' I tried to mention on the blog but my message was poorly formatted! ( I see it has been cleaned up!)

The Netscape page:
http://diy.netscape.com/story/2007/0...ement-tutorial

THe Digg page:
http://www.digg.com/programming/Plig...ement_Tutorial

Last edited by jon : 03-15-2007 at 09:10 AM. Reason: Netscape URL added
Reply With Quote
  #20 (permalink)  
Old 03-17-2007, 10:06 AM
jon's Avatar
jon jon is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 76
Downloads: 2
Uploads: 0
Thanks: 5
Thanked 3 Times in 2 Posts
Another enhancement. I am now using the yget template, and adding "upcoming" means ads on the unpublished pages.

{if $pagename eq "index" || $pagename eq "story" || $pagename eq "search" || $pagename eq "upcoming"}

Working example:
http://www.morrowtech.co.uk/upcoming.php

Cheers,

Jon.
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

vB code is On
Smilies are Off
[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
Pligg and Advertising popo General Help 2 01-16-2007 12:16 AM
Pligg Fundraiser Yankidank Retired Threads 21 10-25-2006 04:17 PM
Page titles & breadcrumbs AshDigg Core Development 11 06-30-2006 06:35 PM


LinkBacks Enabled by vBSEO 3.0.0