Gossamer Forum
Home : Products : DBMan : Customization :

pic uploading question

Quote Reply
pic uploading question
In JPDeni's upload mod, I understand that the pic is shown with the record. Is it possible to show a link to the picture instead?
Quote Reply
Re: pic uploading question In reply to
Sure.

Instead of

Code:
### Wherever you want your graphic to print out, use the following

|; # to close off a previous print qq| statement
$ALLOWED_EXT =~ s/\\.//g;
$ALLOWED_EXT =~ s/\$//g;
@extensions = split (/\Q|\E/o,$ALLOWED_EXT);
GRAPHIC: foreach $extension (@extensions) {
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension">|;
last GRAPHIC;
}
}
print qq|

you would use

Code:
### Wherever you want a link to your graphic to print out, use the following

|; # to close off a previous print qq| statement
$ALLOWED_EXT =~ s/\\.//g;
$ALLOWED_EXT =~ s/\$//g;
@extensions = split (/\Q|\E/o,$ALLOWED_EXT);
GRAPHIC: foreach $extension (@extensions) {
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<a href= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension">Picture</a>|;
last GRAPHIC;
}
}
print qq|

Haven't tried it, but it should work.

------------------
JPD







[This message has been edited by JPDeni (edited August 06, 1999).]