Webmastersite.net
Register Log In

Uploading images

Title Uploading images
Description Uploading images
Message Text I want to post multiple images under a unique LINKID so that members can post up to 5 pictures in the edit-page and that I have the choice which picture shows on the displaylink-page. The other pictures I want to implement into the detail-page.

I have created 5 new fields named LINKpic1ATTACH to LINKpic5ATTACH

Can anyone tell me how to configure this code below (taken from edit.tpl) so that users can upload/delete one picture per uploadingfield?

------------------------------------------------------------------------------------------------------

<td class="optionscolumn" width="80%">
<IF {LINKNUMATTACHMENTS} is less than {THISMEMBERGROUPATTACHPERLINK}><input type="file" name="filefield"> <input type="submit" name="uploadattachment" value="{LANG_SUGGESTLINK_ATTACHBUTTON}" class="button"></IF>

<IF {LINKNUMATTACHMENTS}>
<br>{LANG_SUGGESTLINK_CURRENTATTACH}:<br>
<!-- BEGIN LINK ATTACHMENTS -->
<input type="checkbox" name="attachdelete[]" value="{ATTACHID}"> {ATTACHFILETITLE} ({ATTACHKB} KB)<br>
<!-- END LINK ATTACHMENTS -->
<input type="submit" name="attachdeletion" value="{LANG_GENERAL_DELETESELECTED}" class="button">
</IF>
</td>
-------------------------------------------------------------------------------------------------------------

After configure it by myself, nothing was uploaded and when I uploaded a picture in the original uploading field, I found it back in the second uploadfield (made by myself).
I already read 'Custom File Attachment Fields' chapter.

Thnx in advance

Raeyo

Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership raeyo
Views 609 views. Averaging 0 views per day.
Similar Topics
Submission Date Oct 27, 2005 - 4:03 AM