Gossamer Forum
Home : Products : Links 2.0 : Customization :

RSS feeds mod, willing to pay

Quote Reply
RSS feeds mod, willing to pay
I want to do a RSS Feed of my new links each day.

I understand that I can in build.cgi add a subroutine to generate a second new page with its own template and that this could be used for the feed.

I poked around a bit but really this requires more understanding of coding then I have.

thanks
---
I'm a very boring lady, very, very boring.
Quote Reply
Re: [Cleo_] RSS feeds mod, willing to pay In reply to
Have you read this:

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=241930#241930

To clarify the post, what you need in nph-build.cgi, sub build_new_page routine is:

# Build the main What's New page.
open (NEW, ">$build_new_path/$build_index") or cgierr ("unable to open what's new page: $build_new_path/$build_index. Reason: $!");
print "\tTotal New Links: $total\n";
print NEW &site_html_new(@new_links);
close NEW;

# Build the main What's New.txt page for RSS feed.
open (NEW, ">$build_new_txt_path/$build_index") or cgierr ("unable to open what's new page: $build_new_txt_path/$build_index. Reason: $!");
print "\tTotal New Links: $total\n";
print NEW &site_html_new_txt(@new_links);
close NEW;
}

If this still looks like too much, send me an email or PM.


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Dec 27, 2005, 10:46 AM
Quote Reply
Re: [PerlFlunkie] RSS feeds mod, willing to pay In reply to
I think I have a different version.

This is what is in my nph-build.cgi
# We are either generating a single html page, or an index and follow up pages.
my $page = $CFG->{build_new_path} . "/" . $CFG->{build_index};
my $url = $CFG->{build_new_url} . "/" . $CFG->{build_index};

$USE_HTML ?
print "Building <a href='$url' target='_blank'>What's New Index</a> ... \n" :
print "Building What's New Index ... \n";

($CFG->{build_new_path} =~ m,^$CFG->{build_root_path}/(.*)\s*$,) and _build_dir($1);

if ($CFG->{build_span_pages}) {
open (PAGE, "> $page") or _cant_open($page, $!);
print PAGE Links::Build::build ('new_index', {});
close PAGE;
my $perms = oct ($CFG->{build_file_per});
chmod ($perms, $page);
---
I'm a very boring lady, very, very boring.
Quote Reply
Re: [Cleo_] RSS feeds mod, willing to pay In reply to
Are you using the $400 Links SQL? If so, this is the wrong forum, and I have not used it so am not familiar with its' coding.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] RSS feeds mod, willing to pay In reply to
Yeah I'm using the $400 Links SQL.

Off to post in the proper forum… Crazy
---
I'm a very boring lady, very, very boring.
Quote Reply
Re: [Cleo_] RSS feeds mod, willing to pay In reply to
I'm delivering RSS 2.0 feeds using the method I posted here (bottom):
http://www.gossamer-threads.com/...orum.cgi?post=282152