Webmastersite.net
Register Log In

Delete custom attachment

Comments on Delete custom attachment

barrykilby
Member

Usergroup: Customer
Joined: Jun 30, 2003
Location: England

Total Topics: 7
Total Comments: 48
Posted Aug 23, 2005 - 1:51 PM:

i have given up, i carnt figure it! how do you delete attachments from a custom file field? sad
barrykilby
Member

Usergroup: Customer
Joined: Jun 30, 2003
Location: England

Total Topics: 7
Total Comments: 48
Posted Aug 23, 2005 - 7:00 PM:

<IF {LINKIMGHIDE} is Yes> seems to work as good as any for now!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 23, 2005 - 9:22 PM:

They might show up on the regular file field's list for deletion, though that'd be an oversight if they do. I haven't tested a custom file field since 3.2 as the normal uses for it don't apply anymore. Anyhow you could make a toplist of attachments for it and submit them the same way the regular ones get submitted in the 'edit link' template.
barrykilby
Member

Usergroup: Customer
Joined: Jun 30, 2003
Location: England

Total Topics: 7
Total Comments: 48
Posted Aug 24, 2005 - 12:18 PM:

have got things working basicly right but when different things are entered in a text field for example (ie for a remote link) it does not seem to save the updated result.. any ideas? confused
barrykilby
Member

Usergroup: Customer
Joined: Jun 30, 2003
Location: England

Total Topics: 7
Total Comments: 48
Posted Aug 26, 2005 - 12:42 PM:

any at all.. they wher added via the back end and they did/do seem to work for som elinks.. im at a bit of a loss
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 26, 2005 - 3:28 PM:

What do you mean by things being entered in a text field? I don't see what a text field has to do with files.
barrykilby
Member

Usergroup: Customer
Joined: Jun 30, 2003
Location: England

Total Topics: 7
Total Comments: 48
Posted Aug 26, 2005 - 3:48 PM:

well there are two field attach and remote i have used the <IF> to get it to decide what one is getting used and display the picture accordingly, now since i could not figure how to delete the custom uploaded file i have also added visible as a option for attach i.e. <IF> visible = yes (some code) <otherwise> nothing <IF>

now remote is a text field, literly just copy and paste the path to a image on a remote server (http://whatever)

now the problem we hare having is that when a new target remote image address is entered.. it does not update it keeps the old one..
barrykilby
Member

Usergroup: Customer
Joined: Jun 30, 2003
Location: England

Total Topics: 7
Total Comments: 48
Posted Aug 26, 2005 - 8:41 PM:

just for some extra wierdness it seems to work for most links but not for one or two.. humm..
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 28, 2005 - 3:03 PM:

Adding the ability to use <input type="checkbox" name="customattachdelete" value="1"> to delete for 3.25.
barrykilby
Member

Usergroup: Customer
Joined: Jun 30, 2003
Location: England

Total Topics: 7
Total Comments: 48
#10 - Quote - Permalink
Posted Aug 28, 2005 - 3:05 PM:

thanks dude nod
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Aug 30, 2005 - 9:58 PM:

Untested, so I hope it works.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
#12 - Quote - Permalink
Posted Oct 29, 2005 - 12:07 PM:

Searching for delete custom attachments I found:
scripts.webmastersite.net/w...nks/wsnmanual/articles/161
And it's working fine.

Paul,
Maybe it would be useful to, when creating a new custom field link, to insert a:
<tr>
<td class="labelscolumn"><span class="labels">test1attach:</span></td>
<td class="optionscolumn"><input type="file" name="test1attach">
</td><td><IF {LINKTEST1ATTACHTITLE}><input type="checkbox" name="test1attachdelete" value="1">Delete?</IF></td>
</tr>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#13 - Quote - Permalink
Posted Oct 30, 2005 - 9:18 PM:

Yes, will change what it adds.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.