The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Is there a way to delete a photo (3.7) without going to edit it?
I am looking to incorporate a delete button underneath photos for their owner, and I was wondering if anyone knew a way to pass the 'delete' order directly to
album.php?do=updatepictures without going to do=editpictures. i.e. it would just delete without the intermediary 'edit' page. |
#2
|
||||
|
||||
If you look at the form for the edit page, you can probably find out what form it uses and what variables need to be passed. I did something similar on my site where my Mods have a single button to hit to Move a thread to another forum and remove the torrent/attachment at the same time. You need to pass the attachment id for sure. So, you may need a few Delete buttons - one for each attachment.
|
#3
|
||||
|
||||
Yeah, I had tried everything it seemed, so I was at the stage where I was ready to be just told how to do it
I got it in the end with this piece of code on an updatepictures form Code:
<input type="image" src="img/new/ico_del.gif" alt="delete photo" name="pictures[$pictureinfo[pictureid]][delete]" id="cb_delete_pic$pictureinfo[pictureid]" value="1" tabindex="1" /> |
#4
|
||||
|
||||
Quote:
Glad you got it figured out. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|