Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Choosing which link appears

Home: Plugins Support - Paid: Top_Weekly_Link:

 

 


jag
Novice

Karma: -0 / +0

Oct 1, 2004, 10:53 AM

Post #1 of 2 (21587 views)
Shortcut

Send jag a wink
Choosing which link appears Can't Post

Hi,

Is there any way to choose which links appear or is this possible with some other plug-in ?

John


Andy
Enthusiast

Karma: -1 / +7


Oct 1, 2004, 11:52 PM

Post #2 of 2 (21586 views)
Shortcut

Send Andy a wink
Re: [jag] Choosing which link appears [In reply to] Can't Post

Do you mean "hardcode" in the link that shows up? Its a little tricky, as the whole process is worked on with the assumption that you want to show the most popular link each week :p

Why not just use a simple global?

<%global_name('12345')%> (where 12345 is the ID number of the link you want to show)


Code
sub { 
my $link = $DB->table('Links')->select( { ID => $_[0] } )->fetchrow_hashref;
return Links::SiteHTML::display('link.html', $link);
}


Hope that helps.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


 
 
 


Search for (options) Powered by Gossamer Forum v.1.2.4