As you can tell from the lack of recent postings I am having very few problems with LinksSQL now! However there is one thing I really want to do.
When a user rates a site I want the program to count their vote but re-direct them to our home page and NOT the rate_success page. The problem is that our home page is not created by a template (i.e. a redirect to home.html wouldn't do). We need the program to redirect to an URL.
I think this is the code (from HTML_Templates.pm) that needs changing.
# --------------------------------------------------------
# This routine determines how the rate success page will look like.
#
my ($tags, $dynamic) = @_;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";
defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ('rate_success.html', {
%$tags,
%GLOBALS
}, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
print $output;
}Please help asap.
JeffB
http://www.celebhoo.com
When a user rates a site I want the program to count their vote but re-direct them to our home page and NOT the rate_success page. The problem is that our home page is not created by a template (i.e. a redirect to home.html wouldn't do). We need the program to redirect to an URL.
I think this is the code (from HTML_Templates.pm) that needs changing.
Code:
sub site_html_rate_success { # --------------------------------------------------------
# This routine determines how the rate success page will look like.
#
my ($tags, $dynamic) = @_;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";
defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ('rate_success.html', {
%$tags,
%GLOBALS
}, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
print $output;
}
JeffB
http://www.celebhoo.com