PDA

View Full Version : Prioritized Featured Links in Top Listings


VSDan
01-05-2006, 07:01 AM
This mod will list Featured Links above other links in New Listings, Popular Listings, and Top Rated Listings.

Open index.php, and change:

Content visible to registered users only.

to:

Content visible to registered users only.

Notes:

1. Yours may look at little different as my index.php is modified.

2. Ignore case 'r' block if you are not using the Rating mod.

Bill
01-06-2006, 03:38 AM
Hey Dan, you have a demo up?

Thanks :)

VSDan
01-06-2006, 04:11 AM
You bet - you can go here to see it in action:

http://www.monster-submit.com/directory/

New Listings | Popular Listings | Top Rated

...any one of these will show that Featured Listings display first ahead of others. Not for everyone, but I wanted Featured Listings to show up first across the board.

Steven Myers
05-13-2006, 02:23 PM
This feature works only showing the featured link on the category you choose it to be on. Is there a way to get the featured link to show up on ALL of the pages, including the main page?

Thanks :)

Steven Myers
05-20-2006, 06:06 AM
Do we have a mod for this on 3.05?

I want to get the featured links on the main page like this <--- look at the bottom.

Nerz
08-10-2006, 05:14 AM
Ya id like to get it working for 3.06 so the featured links are showing in the top rated, top hits etc...say with a maximum of 5 random featured links.

Im gonna have sponsored links on the frontpage which will be dealt with differantly

Kaz
02-04-2007, 11:03 PM
Great mod, now my top sites and latest link pages, show the featured sites first, brilliant

rez0
02-22-2007, 06:39 PM
great mod but how show 5 random feature links in top of latest, top ... tks

anon
02-22-2007, 08:12 PM
Content visible to registered users only.

Change the ORDER BY clause:

ORDER BY hits desc

to

ORDER BY RAND()

PHPLDrocks
02-25-2007, 02:48 PM
Is it valid for v2.1 ?

shadav
02-25-2007, 05:06 PM
yes it works on versions 2.x

jminscoe
02-27-2007, 12:33 AM
How about featured by pr for instace on this page /directory/index.php?p=d I have featured but I want to show feature by pr also
how can I get just feature to show thumbnails

Content visible to registered users only.

tldir.com
03-06-2007, 10:44 PM
I was able to get this to work for 3.1.

Question: The featured listings are blended in with the regular listings.
Example: /index.php?list=latest

Anyone have a suggestion on how I can get the featured links in the "Latest links" and "Top links" to display like this:
/Shopping/ on top of the other regular links?

This will make the advantages of having a featured link more visible to visitors and potential advertisers.

tldir.com
03-14-2007, 12:23 AM
Anyone know how to accomplish this?

Fastian
03-25-2007, 05:30 PM
How to get this work with v3.1 ??
I cant find the following code ...

Content visible to registered users only.

jminscoe
04-07-2007, 03:28 PM
Do I add it where I have this
case 'latest':
$links = $db->GetAll ("SELECT * FROM `{$tables['link']['name']}` WHERE `STATUS` = '2' {$expire_where} ORDER BY `DATE_ADDED` DESC LIMIT 0, ".LINKS_TOP);
$path[] = array ('ID' => '0', 'TITLE' => _L('Latest Links'), 'TITLE_URL' => '', 'DESCRIPTION' => '');
break;
case 'top':
$links = $db->GetAll ("SELECT * FROM `{$tables['link']['name']}` WHERE `STATUS` = '2' {$expire_where} ORDER BY `HITS` DESC LIMIT 0, ".LINKS_TOP);
$path[] = array ('ID' => '0', 'TITLE' => _L('Top Hits'), 'TITLE_URL' => '', 'DESCRIPTION' => '');
break;

msolution
06-13-2007, 10:17 AM
Content visible to registered users only.


Showing featured as a seperate list above normal listing:

hi,
i have used the following code to show featured links as a seperate list in New Listings, Popular Listings, and Top Rated Listings.

Demo : http://www.dir.vc
Tested on phpLD 2.1.2
requesting feedback on other versions,

Content visible to registered users only.

hope this helps someone

Regards
M.

shadav
06-17-2007, 02:34 AM
thanks msolution
dan why isn't the rate part of it working? eh i'll get off my lazy butt and scan your forum here in a bit :p

khoking
07-31-2007, 06:55 AM
Hi msolution,

Great mod! It works on v3.20 too!
:D

shadav
09-24-2007, 12:13 AM
for linkbid 3.2

find
Content visible to registered users only.

replace with
Content visible to registered users only.