![]() |
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. |
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.
|
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" /> |
Quote:
Glad you got it figured out. |
All times are GMT. The time now is 02:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|