Gossamer Forum
Home : Products : Links 2.0 : Customization :

Problem with mod. change Newsletter url's

Quote Reply
Problem with mod. change Newsletter url's
I have added mod. change newsletter url's but when I click on link newsletter in Links 2.0 Administration Menu the page don't show.....Could you help me???Thanks

My links.cfg
-------------
# Log all outgoing messages? Put the full path to a logfile and make sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty
# big!
$db_mailer_log = 'http://www.domain.com';
# 0 = use jump.cgi in the newsletter. 1 = direct_link
$direct_link_newsletter = 0;
----------------------------------------



My db_utils.pl
--------------------------------------
sub build_new_links {
# --------------------------------------------------------
# Returns a text string used in the email newsletter of all
# new links.
#
my $output = '';
my (@data, %rec);
my ($url);

open (DB, "<$db_file_name") or &cgierr("unable to open db file: $db_file_name.\nReason: $!");
if ($db_use_flock) { flock(DB, 1); }
LINE: while () {
(/^#/) and next LINE;
(/^\s*$/) and next LINE;
chomp;
@data = &split_decode($_);
if ($data[$db_isnew] eq 'Yes') {
%rec = &array_to_hash(0, @data);
my $des_q = &linewrap ($rec{'Description'});
if ($direct_link_newsletter)
{
$url = qq!$rec{'URL'}!;
}
else
{
$url = qq!$db_cgi_url/jump.cgi?ID=$rec{'ID'}!;
}
$output .= qq~
-------------------------------------------------------------------
$rec{'Title'} (added: $rec{'Date'})
$url
$des_q
~;