Title |
Custom Link Attachments |
Message Text |
Hello- I have been struggling with the instructions for custom file attachment fields. I have been able to get the files to upload but with quirky outcomes. Understand that I would like to offer both type of upload options when submitting or editing a link. So I am seeking help on some advice here. Also I am having troubles deleting the files once added. The original code below. I have added a tag called {LINKATTACHCOUPONS}
My modified try
<tr>
<td class="labelscolumn" width="20%"><span class="labels">Attach Coupon(s):</span>
<br />Allowed file types: {ALLOWEDEXTENSIONS}</td>
<td class="optionscolumn" width="80%">
<IF {LINKNUMATTACHMENTS} is less than {THISMEMBERGROUPATTACHPERLINK}><input type="file" name="attachcoupons" /> <input type="submit" name="uploadattachment" value="Attach" class="button" /></IF>
<IF {LINKNUMATTACHMENTS}>
<br />Coupon:<br/>
<!-- BEGIN MENU ATTACHMENTS -->
<input type="checkbox" name="attachcouponsdelete[]" value="{ATTACHID}" /> {LINKATTACHCOUPONSTITLE} ({LINKATTACHCOUPONSKB} KB)<br />
<!-- END MENU ATTACHMENTS -->
<input type="submit" name="attachdeletion" value="Delete Selected" class="button" />
</IF>
</td>
</tr>
Orignal Code
<tr>
<td class="labelscolumn" width="20%"><span class="labels">Attach Menu(s):</span>
<br />Allowed file types: {ALLOWEDEXTENSIONS}</td>
<td class="optionscolumn" width="80%">
<IF {LINKNUMATTACHMENTS} is less than {THISMEMBERGROUPATTACHPERLINK}><input type="file" name="filefield" /> <input type="submit" name="uploadattachment" value="Attach" class="button" /></IF>
<IF {LINKNUMATTACHMENTS}>
<br />Menus:<br />
<!-- BEGIN LINK ATTACHMENTS -->
<
input type="checkbox" name="attachdelete[]" value="{ATTACHID}" /> {ATTACHFILETITLE} ({ATTACHKB} KB)<br />
<!-- END LINK ATTACHMENTS -->
<input type="submit" name="attachdeletion" value="Delete Selected" class="button" />
</IF>
</td>
</tr> |
Rating |
0/5 based on 0 votes.
|
Ownership |
sportrow |
Views |
420 views. Averaging 0 views per day. |
Similar Topics |
|
Submission Date |
Nov 25, 2007 - 11:20 PM |