Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: My Links Cgi.pm carp

Quote Reply
Re: My Links Cgi.pm carp In reply to
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
Smile
Subject Author Views Date
Thread My Links Cgi.pm carp DavyC 2631 Apr 27, 2000, 12:02 PM
Post Re: My Links Cgi.pm carp
Stealth 2616 Apr 27, 2000, 12:27 PM
Post Re: My Links Cgi.pm carp
DavyC 2641 Apr 27, 2000, 12:33 PM
Post Re: My Links Cgi.pm carp
DavyC 2644 Apr 27, 2000, 12:41 PM
Post Re: My Links Cgi.pm carp
Stealth 2620 Apr 27, 2000, 3:22 PM
Post Re: My Links Cgi.pm carp
DavyC 2620 Apr 27, 2000, 3:25 PM
Post Re: My Links Cgi.pm carp
DavyC 2626 Apr 27, 2000, 4:27 PM
Post Re: My Links Cgi.pm carp
Stealth 2627 Apr 27, 2000, 4:37 PM
Post Re: My Links Cgi.pm carp
DavyC 2609 Apr 27, 2000, 4:47 PM
Post Re: My Links Cgi.pm carp
DavyC 2636 Apr 27, 2000, 5:21 PM
Post Re: My Links Cgi.pm carp
Stealth 2638 Apr 27, 2000, 5:44 PM
Post Re: My Links Cgi.pm carp
DavyC 2618 Apr 27, 2000, 5:47 PM
Post Re: My Links Cgi.pm carp
Stealth 2619 Apr 27, 2000, 5:49 PM
Post Re: My Links Cgi.pm carp
DavyC 2622 Apr 27, 2000, 5:58 PM
Post Re: My Links Cgi.pm carp
DavyC 2630 Apr 27, 2000, 5:59 PM
Post Re: My Links Cgi.pm carp
DavyC 2639 Apr 27, 2000, 6:03 PM
Post Re: My Links Cgi.pm carp
Stealth 2623 Apr 27, 2000, 6:41 PM
Post Re: My Links Cgi.pm carp
DavyC 2612 Apr 29, 2000, 5:35 AM
Post Re: My Links Cgi.pm carp
Stealth 2616 Apr 29, 2000, 8:07 AM