Gossamer Forum
Home : Products : Links 2.0 : Customization :

Updated & 3-Level New

Quote Reply
Updated & 3-Level New
Hi,

I am trying to install Bobsie's Updated" & 3-Level "New"
Graphic Usage Modification
. But I got stucked at Step: 5 where I have execute add_date.pl.

When I run add_date.pl I get 500 error. As far as I know there are two possibilities for this problem


#!/usr/local/bin/perl
pointing to perl program

# Change the following line to full path to links.cfg if you have problems.
require "../links.cfg";
.

I am not a perl guru. Is there any guru could tell me what is going wrong? I already checked some threades of this forum with similer problem but I could not find any solid answer.

Here is the code of add_date.pl


#!/usr/local/bin/perl

# -------------------------------------------

# Change the following line to full path to links.cfg if you have problems.

require "../links.cfg";

require "$db_lib_path/db_utils.pl";

require "$db_lib_path/links.def";

$ENV{'REQUEST_METHOD'} and (print "Content-type: text/plain\n\n");

print "Opening links.db for reading. . .\n";

open (DB, "<links.db") or print "Unable to open links database 'links.db'. Reason: $!" and exit;

print "Opening links2.db for writing. . .\n";

open (DBOUT, ">links2.db") or print "Unable to open output database. Reason: $!" and exit;

print "Processing database records. . .\n";

LINE: while (<DB>) {

/^#/ and next LINE; # Skip comment Lines.

/^\s*$/ and next LINE; # Skip blank lines.

chomp; # Remove trailing new line.

@rec = &split_decode($_);

$rec[$db_dateadded] = $rec[$db_modified];

print DBOUT &join_encode(&array_to_hash(0, @rec));
}
print "Done, closing database files. . .\n";

close DB;

close DBOUT;

print "Links database now has DateAdded field completed.\n";

print "It is stored in links2.db\n\n";

# ---------------------------------------------




Thank you and happy holiday.


Regards,

Pagla

Subject Author Views Date
Thread Updated & 3-Level New pagla2000 1734 Dec 26, 2000, 7:33 PM
Thread Re: Updated & 3-Level New
hiryuu 1700 Dec 26, 2000, 10:12 PM
Thread Re: Updated & 3-Level New
pagla2000 1732 Dec 27, 2000, 12:32 AM
Thread Re: Updated & 3-Level New
Andy 1680 Dec 27, 2000, 3:41 AM
Post Re: Updated & 3-Level New
pagla2000 1686 Dec 27, 2000, 5:43 AM
Thread Re: Updated & 3-Level New
Stealth 1676 Dec 27, 2000, 12:07 PM
Thread Re: Updated & 3-Level New
pagla2000 1664 Dec 27, 2000, 10:49 PM
Post Re: Updated & 3-Level New
pagla2000 1639 Dec 29, 2000, 2:45 AM
Post Re: Updated & 3-Level New
Stealth 1627 Dec 29, 2000, 9:15 AM