I posted this before in another thread but got no reply. So here we go again.
What I did was added another field in the datbase with the field name 'RegCode'
Then I added a link in sub html_record routine in the html.pl file: and in fact in two spots one for with gfx files and one at with out (upload mod).Hopefully this is correct.
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<center><img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension" width=160 height=160 border=0></center>
<p align="center"><a href="http://www.palmfilez.com/$rec{'RegCode'}" target="_blank"><img border="0" src="http://www.palmfilez.com/images/tiny_button_buyit.gif" width="100" height="36"></a></p>
|; $pic=1;
last GRAPHIC;
}
}
unless ($pic) {
print qq|<center><img src="$SAVE_DIRECTORY_URL/no_gfx.jpg" width=160 height=160 border=0></center>
<p align="center"><a href="http://www.palmfilez.com/$rec{'RegCode'}" target="_blank"><img border="0" src="http://www.palmfilez.com/images/tiny_button_buyit.gif" width="100" height="36"></a></p>|;
}
Now need to be able for me to add the record via the add and edit function for admin access only or the option to let everyone or to let only admin edit the {RegCode}.
my files will be posted here:
http://www.palmfilez.com/default.txt
http://www.palmfilez.com/db.txt
http://www.palmfilez.com/html.txt
Mitch
[This message has been edited by Mitch C (edited April 16, 2000).]
What I did was added another field in the datbase with the field name 'RegCode'
Then I added a link in sub html_record routine in the html.pl file: and in fact in two spots one for with gfx files and one at with out (upload mod).Hopefully this is correct.
Code:
GRAPHIC: foreach $extension (@extensions) { if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<center><img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension" width=160 height=160 border=0></center>
<p align="center"><a href="http://www.palmfilez.com/$rec{'RegCode'}" target="_blank"><img border="0" src="http://www.palmfilez.com/images/tiny_button_buyit.gif" width="100" height="36"></a></p>
|; $pic=1;
last GRAPHIC;
}
}
unless ($pic) {
print qq|<center><img src="$SAVE_DIRECTORY_URL/no_gfx.jpg" width=160 height=160 border=0></center>
<p align="center"><a href="http://www.palmfilez.com/$rec{'RegCode'}" target="_blank"><img border="0" src="http://www.palmfilez.com/images/tiny_button_buyit.gif" width="100" height="36"></a></p>|;
}
Now need to be able for me to add the record via the add and edit function for admin access only or the option to let everyone or to let only admin edit the {RegCode}.
my files will be posted here:
http://www.palmfilez.com/default.txt
http://www.palmfilez.com/db.txt
http://www.palmfilez.com/html.txt
Mitch
[This message has been edited by Mitch C (edited April 16, 2000).]