PDA

View Full Version : Create a Featured Links page


cseek
10-13-2005, 07:48 PM
I would like to create a page containing all the featured links and add it on the topbar,next to Top Hits.

Is that possible?

If it is,how do I create the page?

Sharr76
10-18-2005, 03:23 PM
If you just double click the search button its shows all featured links :wink:

Steven Myers
06-18-2006, 04:13 PM
@Sharr76, Double clicking the search does not show the featured links because the script was not built for that feature, and never will be.

KartKorner
06-19-2006, 01:33 AM
Like this:
{url to parked domain removed}

If so I just used the creat new page mod and did the following:

sponsor.tpl:

Content visible to registered users only.

sponsor.php:
Content visible to registered users only.

Then just call upon sponsor.php as a link within your navigational menu.

alang
06-19-2006, 04:40 PM
working great, thanks

Neticus
06-19-2006, 05:27 PM
Content visible to registered users only.

I think Sharr76 is talking about v2 since the post was made before v3 series.
Empty search queries do return all featured links in default V2.

Neticus
06-19-2006, 06:58 PM
Thanks KartKorner :)

However your .tpl code has some customizations that may confuse some people i.e. headerS.tpl and {include file="ftrlink.tpl" link=$link} here is code for default phpld .tpl code users:

sponsor.tpl

Content visible to registered users only.

Sponsor.php same as KartKorner has posted

Content visible to registered users only.

For v2 REMOVE from above code

//Clean whitespace
$tpl->load_filter('output', 'trimwhitespace');

//Compress output for faster loading
if (COMPRESS_OUTPUT == 1)
$tpl->load_filter('output', 'CompressOutput');


And of course call up page by going to:
YourDirectory.com/sponsor.php

Steven Myers
06-19-2006, 07:16 PM
This worked like a charm Kart, wonderful work my friend!

Is there a code for the feature_page to make the title links match how the regular listings are?

KartKorner
06-19-2006, 09:48 PM
Oh yeah sorry about that.....I have onload event that is triggered when this page is loaded and used a different color for featured links ovver regular links. And it should be remodified one listed aboe Stve since it calls upon the standard links.tpl and not the ftrlinkt.pl I created for my featured links. Was late when I posted it and forgot I had a cpl small variations done on it for my page.

Steven Myers
06-19-2006, 09:54 PM
No worries, I contacted bobby and he he gave me Content visible to registered users only.

Worked like a charm :D

Bill
06-19-2006, 11:50 PM
Nice mod, im going to be adding this to my directory. :)