PDA

View Full Version : Featured Links, home page and latest links


solutionsphp
05-27-2006, 07:35 PM
To display the latest links from my directory on the home page of my site, I use MagpieRSS and simply parse the Latest Links RSS feed. I noticed the other day after approving a Featured Link that it did not appear in the Latest Links RSS feed. This leads me to 3 questions:

1. How to display Featured Links on the home page?

I found a post that provided some instruction: http://www.phplinkdirectory.com/forum/showthread.php?t=1033
Worked well for me.

I also found this curious post that says that if you double click the search button, the Featured Links will appear on the home page:
http://www.phplinkdirectory.com/forum/showthread.php?t=896

Of course, that's only useful if the user knows that! What intrigued me though, is that the Featured Links are automatically placed in the right place on this page--this is a cleaner implementation than the fix listed above because it's ALREADY IN THE CODE! So, how to make these Featured Links appear on the home page WITHOUT having to double click the search button?

Here is the code in my main.tpl file that displays Featured Links:

Content visible to registered users only.

How do I modify this to display Featured Links on the home page?

(Similarly, is there a better way than using Magpie and RSS to have the Latest Links display on the home page?)

Aside: There's this post from someone who wants to REMOVE the Featured Links from the Latest Links section, so obviously this is working by default for some folks (perhaps a different version?)


2. How can I force Featured Links into the Latest Links RSS feed?

I'm not alone in wondering about this, but this post received no responses:
http://www.phplinkdirectory.com/forum/showthread.php?t=2953


3. How can you create a page that lists only the Featured Links?
This user's original question wasn't answered:
http://www.phplinkdirectory.com/forum/showthread.php?t=896

I'm using v2 RC4 (and plan to upgrade to 3 soon).

David
05-28-2006, 07:30 PM
Hi Sam, sorry nobody has answered. I suppose there is not a "quick" answer. There is a full mod for 3.0 (in the Supporters Forum) that defines new variables in init.php, and then calles them in the tpl files. I'm not sure if it will work on 2.0 though.