Hi,
It is coded in the "agoracart52/html/index.html" page itself.......
Code:
<!--agorascript-pre
# this is an AgoraCart members only AgoraScript Snippet. You must be a current member at:
# http://www.AgoraCartPro.com . Sign up or renew at AgoraCart.com
# Copyright © 2000 - Present by K-Factor Technologies Inc., AgoraScript, and BytePipe.
&capture_STDOUT; open (DATAFILE, "<./data_files/data.file") || die print "Could not open data.file"; @line=<DATAFILE>;
close (DATAFILE);
srand;
$array1 = $line[int rand(@line)];
$array2 = $line[int rand(@line)];
$array3 = $line[int rand(@line)];
$array4 = $line[int rand(@line)];
@special1 = split (/\|/, $array1);
@special2 = split (/\|/, $array2);
@special3 = split (/\|/, $array3);
@special4 = split (/\|/, $array4);
$image1 = $special1[7];
$image2 = $special2[7];
$image3 = $special3[7];
$image4 = $special4[7];
$image1 =~ s/%%IMG%%//ig;
$image2 =~ s/%%IMG%%//ig;
$image3 =~ s/%%IMG%%//ig;
$image4 =~ s/%%IMG%%//ig;
print qq~
<!--this is an AgoraCart members only AgoraScript Snippet. You must be a current member at:
http://www.AgoraCartPro.com . Sign up or renew at AgoraCart.com
Copyright © 2000 - Present by K-Factor Technologies Inc., AgoraScript, and BytePipe.--\>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" class="template_mainbackground">
<tr>
<td class="template_mainbackground"><span class="style6"><span class="style7">See What's inside our Store:</span></span></td>
</tr>
<tr>
<td>
<table width="100%" border="0" align="center" cellpadding="3" bgcolor="#FFFFFF">
<tr>
<td valign=top width="25%"><center><font face=arial size="2">In $special1[1]:<br><br></font>
<a href="agora.cgi?cart_id=&p_id=$special1[0]&xm=on">
<img class="template_image_no_border" src="%%URLofImages%%/$image1" alt="$image1"></a></center></td>
<td valign=top width="25%"><center><font face=arial size="2">In $special2[1]:<br><br></font>
<a href="agora.cgi?cart_id=&p_id=$special2[0]&xm=on">
<img class="template_image_no_border" src="%%URLofImages%%/$image2" alt="$image2"></a></center></td>
<td valign=top width="25%"><center><font face=arial size="2">In $special3[1]:<br><br></font>
<a href="agora.cgi?cart_id=&p_id=$special3[0]&xm=on">
<img class="template_image_no_border" src="%%URLofImages%%/$image3" alt="$image3"></a></center></td>
<td valign=top width="25%"><center><font face=arial size="2">In $special4[1]:<br><br></font>
<a href="agora.cgi?cart_id=&p_id=$special4[0]&xm=on">
<img class="template_image_no_border" src="%%URLofImages%%/$image4" alt="$image4"></a></center></td>
</tr><tr>
<td valign=top width="25%"><center><font face=arial size="2">
<a href="agora.cgi?p_id=$special1[0]&xm=on">$special1[3]</a></font></center></td>
<td valign=top width="25%"><center><font face=arial size="2">
<a href="agora.cgi?p_id=$special2[0]&xm=on">$special2[3]</a></font></center></td>
<td valign=top width="25%"><center><font face=arial size="2">
<a href="agora.cgi?p_id=$special3[0]&xm=on">$special3[3]</a></font></center></td>
<td valign=top width="25%"><center><font face=arial size="2">
<a href="agora.cgi?p_id=$special4[0]&xm=on">$special4[3]</a></font></center></td>
</tr><tr>
<td valign=top width="25%"><center><font face=arial size="2">
<b><font color="FF0000">Only $sc_money_symbol $special1[2]<\/font></b></font></center></td>
<td valign=top width="25%"><center><font face=arial size="2">
<b><font color="FF0000">Only $sc_money_symbol $special2[2]</font></b></font></center></td>
<td valign=top width="25%"><center><font face=arial size="2">
<b><font color=\"FF0000\">Only $sc_money_symbol $special3[2]<\/font><\/b><\/font></center><\/td>
<td valign=top width="25%"><center><font face=arial size="2">
<b><font color="FF0000">Only $sc_money_symbol $special4[2]</font></b></font></center></td>
</tr>
</table></td>
</tr>
</table>
~; &uncapture_STDOUT;
-->
is what you had originally, you changed the first part.........
Code:
srand;
$array1 = $line[int rand(@line)];
$array2 = $line[int rand(@line)];
$array3 = $line[int rand(@line)];
$array4 = $line[int rand(@line)];
@special1 = split (/\|/, $array1);
@special2 = split (/\|/, $array2);
@special3 = split (/\|/, $array3);
@special4 = split (/\|/, $array4);
$image1 = $special1[7];
$image2 = $special2[7];
$image3 = $special3[7];
$image4 = $special4[7];
$image1 =~ s/%%IMG%%//ig;
$image2 =~ s/%%IMG%%//ig;
$image3 =~ s/%%IMG%%//ig;
$image4 =~ s/%%IMG%%//ig;
and the second part holds the html code and the variables required.....
Hope that makes sense.
Regards.
Glen.
_________________
glen.m.darby@virgin.net