OK, first off.... It was from the error log, and it did say Unkown Tag.... even the browser says it.
63.23.109.119 - - [15/Sep/2001:22:40:25 -0400] "GET /cgi-bin/frames.pl?&id=7&title=Test%20Link&coupon=DFSGGGGS&expiration=Unkown%20Tag:%20Expiration HTTP/1.1" 500 540 "http://www.mysite.com/" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)" But, like I said, I changed the <%Expiration%> tag to <%ExpireDays%>, and the unkown tag don't show up anymore.
Now, I can click the link, the 500 error STILL shows up, but the log or the browser doesn't display Unkown Tag. It's weird.
But I can cut the expiration part out of the thing altogether, and it works beautiful.
Here is what I've done.
I used the nph-expirator mod from resources, and added these fields to the links def.
ExpireDays => [14, 'numer', 12, 12, 1, '', ''],
Coupon => [15, 'alpha', 20, 30, 1, '', ''] For some reason, the tag for display is ExpireDays, but the database thingy is this:
$db_expiration = 14; $db_coupon = 15;
OK,
This is the Ace Framer thing, after I modified it:
Banner.pl #!/usr/bin/perl
###############################################################
# Copyright Ace Installer 1999/2000/2001. All Rights Reserved #
# Ace Installer Accept no responsibility for any #
# problems that may occur through the use of Ace Referer #
# Mod For Links2 #
###############################################################
# Can't install this script? If so visit the link below #
# we will install it for you for free!!!!! #
# http://www.ace-installer.com/request/request.cgi #
##########################################################
# SUPPORT #
##########################################################
# If you have any problems with this mod or any of our #
# other ones please visit our forum at; #
# http://www.ace-installer.com/forum/ for support #
##########################################################
# Just add the following to your link.htmlpage;
# http://www.yoursite.com/location/to/frames.pl?id=<%ID%>&title=<%Title%>
# You also need to edit inbetween the qq| and |; tags (don't delete these
# tags otherwise it won't work!). If you are using an @ sign remember to escape
# it by putting a \ in front of it otherwise you will get a 500 Internal Server Error....
#
# Thats it except for defining the one variable below...
$locationtojump = "http://www.mysite.com/cgi-bin/links/jump.cgi"; # The location to your jump.cgi script.....
###########################################################
# Don't edit anythihng below this line...... ##############
###########################################################
if ($ENV{'REQUEST_METHOD'} eq 'GET') {
$buffer = $ENV{'QUERY_STRING'};
}
else {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
}
# Break em up into a format the script can read
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$FORM{$name} = $value;
}
$referer = $FORM{referer};
$title = $FORM{title};
$id = $FORM{id};
$coupon = $FORM{coupon};
$expiration = $FORM{expiration};
#### I've Tried $expiredays, $expire, you name it!##### print "Content-type: text/html\n\n";
print qq|
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="Author" content="A.J.Newby">
<title>$title</title>
</head>
<body topmargin="0" leftmargin="0">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="90%">
<tr>
<td width="24%" rowspan="3">
<p align="center">Coupon: $coupon Expires: $expiration</td>
<td width="35%" rowspan="3">
<p align="center"><a href="$jumpurl?ID=$id" target="_top">Remove Frame<br>
</a><a href="http://$homeurl" target="_blank">Home<br>
</a><a href="$referer">Back</a></p>
</td>
<td width="91%"></td>
</tr>
<tr>
<td width="91%">
<p align="center">PUT A BANNER HERE OR SOMETHING HERE</td>
</tr>
<tr>
<td width="91%"></td>
</tr>
</table>
</center>
</div>
</body>
</html>
|;
Frame.pl #!/usr/bin/perl
###############################################################
# Copyright Ace Installer 1999/2000/2001. All Rights Reserved #
# Ace Installer Accept no responsibility for any #
# problems that may occur through the use of Ace Referer #
# Mod For Links2 #
###############################################################
# Can't install this script? If so visit the link below #
# we will install it for you for free!!!!! #
# http://www.ace-installer.com/request/request.cgi #
##########################################################
# SUPPORT #
##########################################################
# If you have any problems with this mod or any of our #
# other ones please visit our forum at; #
# http://www.ace-installer.com/forum/ for support #
##########################################################
# Just add the following to your link.html page;
# http://www.yoursite.com/location/to/frames.pl?id=<%ID%>&title=<%Title%>
# You will also need to edit the banner template in banner.pl (more info at the
# top of the banner.pl file)
########### Things that need defining ##################
#
#
$locationtojump = "http://www.mysite.com/cgi-bin/links/jump.cgi"; # The location to your jump.cgi script.....
$bannerurl = "http://www.mysite.com/cgi-bin/banner.pl"; # location of the page you want to be shown in the top frame....
###########################################################
# Don't edit anythihng below this line...... ##############
###########################################################
if ($ENV{'REQUEST_METHOD'} eq 'GET') {
$buffer = $ENV{'QUERY_STRING'};
}
else {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
}
# Break em up into a format the script can read
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$FORM{$name} = $value;
}
$referer = $ENV{HTTP_REFERER};
$title = $FORM{title};
$id = $FORM{id};
$coupon = $FORM{coupon};
$expiration = $FORM{expiration};
#### Again, I've Tried $expiredays, $expire, you name it! And I even switched it in the FrameName thing below to match##### print "Content-type: text/html\n\n";
print qq|
<html>
<head>
<title>$title $referer</title>
<meta name="GENERATOR" content="Ace Installer">
<meta name="Author" content="A.J.Newby">
<meta name="Copyright" content="Ace Installer 1999-2000">
</head>
<frameset framespacing="1" border="0" rows="*,82%" frameborder="0">
<frame name="main" target="footnotes" src="$bannerurl?id=$id&title=$title&coupon=$coupon&expiration=$expiration&referer=$referer" scrolling="no">
<frame name="footnotes" src="$locationtojump?ID=$id">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
|;
Ok, Now this is how I call it from the link.html
/cgi-bin/frames.pl?&id=<%ID%>&title=<%Title%>&expiration=<%ExpireDays%>&coupon=<%Coupon%> I've flipped flopped Coupon & ExpireDays thinking that they are in a diff order in the links.def, ect. Nothing works for the expire tag. I just left the link part out of the calling for this purpose, but it also works.
Whoooh.
A little big, but hopefully someone can help.
Thanks people,
dunno
God Bless our Great Nation
God Bless every Family involved in the Tragedy
God Bless all Rescue Efforts
God Bless Peace on Earth