Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: Featured Links

Quote Reply
Re: Featured Links In reply to
Just catching up on old reading... Sorry it's been so long since you posted this. When in doubt, email me...

Here is the mod being referred to:

http://run-down.com/...s_sql_featured.shtml

However, the server is down for a few hours while everything is being moved to a new NOC.

I haven't tried setting up the featured_r tag to build in an existing template, but I don't see any reason why it wouldn't work. In nph-build.cgi, uncomment this section of the mod:

###### This section for optionally printing via a template file ###########
#
# open (FEATURED, ">$LINKS{build_root_path}/$file") or die ("unable to open featured page: $LINKS{build_root_path}/$file . Reason: $!");
# print "\tFeatured Links: $total\n";
# print FEATURED &site_featured_template ( { featured_r => $featured_r } );
# close(FEATURED);


Then, in HTML_Templates.pm, change this line of the mod to the name of the template file (home.html?) that you want to build it into:

my $output = &load_template ('featured_sites.html', {

I did just notice an error on the page for the mod. I wrote "Column Name: Priority" in step 1 (must've accidentally copied it from the Priority mod). It should be "Column Name: isFeatured". Just thought I'd mention it in case someone runs across it before I update it in the morning after the server is back up...

Dan

Subject Author Views Date
Thread Featured Links quixotic 4199 Aug 2, 2000, 5:37 PM
Thread Re: Featured Links
Stealth 4071 Aug 2, 2000, 6:23 PM
Post Re: Featured Links
quixotic 4071 Aug 2, 2000, 6:31 PM
Thread Re: Featured Links
pugdog 4125 Aug 4, 2000, 10:39 PM
Thread Re: Featured Links
quixotic 4059 Aug 7, 2000, 9:35 AM
Thread Re: Featured Links
pugdog 4036 Aug 7, 2000, 10:42 AM
Thread Re: Featured Links
quixotic 4018 Aug 8, 2000, 6:59 PM
Post Re: Featured Links
Dan Kaplan 4003 Sep 2, 2000, 11:41 PM