Sorry I must becoming a real pain, but I have about two threads of hair left, and still cannot get this mod to work.
If anybody has time please please check the following.
mylinks.cgi
============================================
# Cookie information.
my %cookie = (
name => 'MyLinks',
expires => '+3y',
path => '/',
domain => '.foylenet.com'
);
# Deliminator (MUST BE A LETTER [no symbols or numbers]!)
my $delim = 'x';
# Links to display per page.
my $per_page = 10;
# Characters used in encoding/decoding.
my @e = qw!0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z!;
# Load required modules and libraries.
# ---------------------------------------------------
use CGI ();
use CGI::Carp qw/fatalsToBrowser/;
require "admin/links.cfg";
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
$build_use_templates ?
require "$db_lib_path/site_html_templates.pl" :
require "$db_lib_path/site_html.pl";
=============================================
my_home.html
=============================================
<%total%>
<%links%>
I know but I just want to get it working!!!!
site_html_templates.pl
============================================
# My Link Mod
sub site_html_my_link {
my %rec = @_;
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});
return &load_template ('my_link.html', {
%rec, %globals
});
}
sub site_html_my_home {
# --------------------------------------------------------
# This routine shows the layout of the MY Link Home Page
my $my_link;
my $tags = shift;
print &load_template ('my_home.html', {
%$tags,
%globals
});
}
sub site_html_my_add {
my %rec = @_;
print &load_template ('my_add.html', {
%rec,
%globals
});
}
sub site_html_my_add_error {
my $message = shift;
print &load_template ('my_add_error.html', {
message => $message,
%globals
});
}
sub site_html_my_delete {
my %rec = @_;
print &load_template ('my_delete.html', {
%rec,
%globals
});
}
sub site_html_my_delete_all {
my $tags = shift;
print &load_template ('my_delete_all.html', {
%$tags,
%globals
});
}
sub site_html_my_delete_error {
my $message = shift;
print &load_template ('my_delete_error.html', {
message => $message,
%globals
});
}
sub site_html_my_help {
# --------------------------------------------------------
# This routine displays the help page
my $tags = shift;
print &load_template ('my_help.html', {
%$tags,
%globals
});
}
I have also found the module.cgi file and ran it on my server and found this
CGI::Switch
CGI
CPAN::FirstTime
CPAN::Nox
CPAN::Config
CPAN
Carp
Class::Struct
From another query in the MY LINKS thread this would indicate that I have the proper modules, although my web provider does not seem to know, he stated that I would have to install them.
I know I'm pushing my luck but this really does appear to be a great mod.
I also checked with Fish-hoo and Eliots site and found the cookies on my pc.
When I click on bookmark it a get this
0
and nothing else which comes from the <%total%> tag.
when I run mylinks.cgi straight from the browser I get the same.
Sorry, and thanks if anyone has the patience to work their way through all of this.
Thanks thanks and thanks again
DavyC