Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

rate_success change - pugdog?

Quote Reply
rate_success change - pugdog?
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.

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;
}
Please help asap.

JeffB
http://www.celebhoo.com


Subject Author Views Date
Thread rate_success change - pugdog? jeffb 3804 Aug 22, 2000, 10:47 AM
Thread Re: rate_success change - pugdog?
Stealth 3703 Aug 22, 2000, 11:21 AM
Thread Re: rate_success change - pugdog?
jeffb 3708 Aug 22, 2000, 11:38 AM
Thread Re: rate_success change - pugdog?
pugdog 3694 Aug 23, 2000, 11:41 AM
Thread Re: rate_success change - pugdog?
jeffb 3677 Aug 29, 2000, 2:54 PM
Thread Re: rate_success change - pugdog?
jeffb 3667 Sep 13, 2000, 5:35 AM
Post Re: rate_success change - pugdog?
pugdog 3653 Sep 13, 2000, 10:28 AM
Post Re: rate_success change - pugdog?
Alex 3654 Sep 13, 2000, 1:14 PM