Results 1 to 6 of 6

Thread: {tags} Question

  1. #1
    New Pligger Blue Ire's Avatar
    Joined
    Oct 2006
    Posts
    24

    {tags} Question

    I looked around, but couldn't find any info on this..

    Are there any tags that can do an "if first listing" style statement so I can get an image to show -only- on the top most 'pligged' item on the front page?

    Regards.

  2. #2
    New Pligger Blue Ire's Avatar
    Joined
    Oct 2006
    Posts
    24
    Ok, so how about a list of available tags? .. or is there such a thing?

  3. #3
    New Pligger JohnPaul's Avatar
    Joined
    Dec 2006
    Posts
    2
    Quote Originally Posted by Blue Ire View Post
    I looked around, but couldn't find any info on this..

    Are there any tags that can do an "if first listing" style statement so I can get an image to show -only- on the top most 'pligged' item on the front page?

    Regards.

    I'm looking to do the EXACT same thing, so if anyone has any guidance on this it'd be very helpful.

  4. #4
    New Pligger JohnPaul's Avatar
    Joined
    Dec 2006
    Posts
    2
    I found an example of what I'm personally trying to achieve here:

    http://www.plugim.com/

    Notice how they have the block ad to the right of the first listing? I'm looking to do something similar but am not finding any variable that notes what listing # an item is on the first page, so that an IF statement can be used in the template.

    (I assume that'd be the easiest way to achieve this effect?)

  5. #5
    Casual Pligger Dravis's Avatar
    Joined
    Jun 2006
    Posts
    49
    You want to use the $link_shakebox_index variable. I can't remember if it's zero based or not but the first story on the front page, or top stories or the pligg for stories page is either 0 or 1 so in link_summary.tpl you do something like this:
    Code:
    {if $link_shakebox_index eq 0}
    ...add whatever you want to display with the first story here...
    {/if}

  6. #6
    New Pligger Blue Ire's Avatar
    Joined
    Oct 2006
    Posts
    24
    Hey, I ended up just using a 'php include once' bit... not how I wanted to do it, but it works

Similar Threads

  1. separate alt tags and content question
    By racerman28 in forum Questions & Comments
    Replies: 1
    Last Post: 06-24-2010, 10:11 AM
  2. Question about rss.
    By supertuga in forum Questions & Comments
    Replies: 3
    Last Post: 03-07-2009, 04:58 AM
  3. Question About Meta tags?
    By gjrb29 in forum Questions & Comments
    Replies: 1
    Last Post: 02-24-2009, 07:09 PM
  4. Sitebat top 5 tags: why not show top 20 tags
    By spatznick in forum Questions & Comments
    Replies: 2
    Last Post: 02-10-2007, 07:24 PM
  5. Question on Tags
    By cellounge in forum Questions & Comments
    Replies: 2
    Last Post: 10-17-2006, 07:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting