PDA

View Full Version : Last 10 listings on the main page only


deepimpact71
06-02-2006, 11:44 PM
Hi

I know there is a similar thread in this forum but it's getting confusing and most importantly it didn't get me anywhere so I need to ask again if anyone can help me with this one...

I am using the latest free version of PHPLD (2) on my site and I need to display the last 10 listings on my main page.

It would be great if the mod is coded in a way that if I wanted to.. I could change the number of listing from let's say 10 to 15 and it would still work the same way.

Can anyone help me with this one pls?? I would really appreciate it someone could. I don't really wanna switch to any other script because I like everything about PHPLD..

Many thanks in advance

DeepImpact

Steven Myers
06-03-2006, 12:07 AM
http://www.phplinkdirectory.com/forum/showthread.php?t=692&highlight=top10

deepimpact71
06-03-2006, 05:09 PM
Hi Steve

Yeah I noticed that thread before posting this one. Nothing listed on that page worked for me. I was hoping that if I started a new thread... someone will pay attention to my request and I might get lucky with a code that actually works.

Regards
DeepImpact

Steven Myers
06-03-2006, 09:39 PM
Give me a moment and I'll look some stuff up for you. I have a mod myself that I pulled together for that, but not sure if it'll work for you in 2.0

Place in main.tpl below {/strip}

Content visible to registered users only.

Place in index.php above echo $tpl->fetch('main.tpl', $id);

Content visible to registered users only.

deepimpact71
06-04-2006, 08:11 PM
Hi Steve

YES it did work! I got the latest 10 and top 10 showing on the main page!

THANK YOU SO MUCH for helping me out with this!! I really appreciate it!

DeepImpact

rogue
06-19-2006, 06:09 PM
great stuff but is it possible to have the top ten links as just a title only? as at the moment it shows all the details and i would perfer a small link.

neurosis4u
06-19-2006, 06:31 PM
instead of using

{include file="link.tpl" link=$link}

use :
{$link.TITLE}

??? ( i dont know it really, but i think this will work, dont blame me if im wrong )

rogue
06-19-2006, 08:37 PM
it almost works! :) it displays the titles but non-clickable, and as one long sentence, i would prefer them to be as a table

bobby9101
06-19-2006, 09:58 PM
use
Content visible to registered users only.
instead of {$link.TITLE}

rogue
06-19-2006, 11:10 PM
:) thank you very much!

bobby9101
06-20-2006, 01:34 AM
anytime man

Loz
08-08-2006, 05:03 PM
nice one, just tried it for the 3.0.6 version, works like a treat. :)

Loz

niravdave
10-31-2006, 11:54 PM
worked gr8 for me as well.

i did a lil modification and displaying 5 links instead of 10

thanks
dave

Isabel
11-01-2006, 04:03 PM
Is it possible for only a category?

Last 5 links from Science and their subcategories, and not from all directory
/Science/

searchpurple
11-07-2006, 07:52 PM
Is there a way to get this on the main page ONLY?

anon
11-08-2006, 06:44 AM
Content visible to registered users only.

phpld 2.0
{if $category.ID eq 0 and !$q and !$p}

your code here

{/if}

phpld 3.06
{if $category.ID eq 0 and !$list and !$search}

your code here

{/if}