Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 A click only to delete image Xthreads / other field?
nier3 Offline
Member
***
Posts: 125
Joined: Jul 2012
Post: #11
RE: A click only to delete image Xthreads / other field?
Yep, like on attachments of Mybb, instead of click directly on each thumbnail on forumdisplay you click on checkboxes in Admin CP, more or less the result is the same

[Image: ACP_Forum_FindAttachmentsResults.png]

http://docs.mybb.com/1.6/Admin-CP-Forum-Attachments/

Maybe with a query can find thumbnails, name, forum, thread, user etc who added the file, but then how do you tell "delete this thumbnail/file"?
10-06-2015 03:30 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #12
RE: A click only to delete image Xthreads / other field?
The checkboxes should be the aid for the attachments. So we delete the attachments based on it. Then update the data of the appropriate field (column) in the threadfields_data table.

10-06-2015 03:40 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #13
RE: A click only to delete image Xthreads / other field?
Here is a simple experiment for it (XThreads attachments management inside the ACP) based on the MyBB attachments management.

This plugins made based on the default MyBB admin directory. Please make sure to put the file inside the admin directory from this archive to your admin directory.


Attached File(s)
.7z  mnxt_xt_attachments.7z (Size: 4.07 KB / Downloads: 379)

10-22-2015 01:53 AM
Find all posts by this user Quote this message in a reply
nier3 Offline
Member
***
Posts: 125
Joined: Jul 2012
Post: #14
RE: A click only to delete image Xthreads / other field?
(10-06-2015 03:40 AM)RateU Wrote:  The checkboxes should be the aid for the attachments. So we delete the attachments based on it. Then update the data of the appropriate field (column) in the threadfields_data table.

Thank you, as soon as I finish the theme of the forum I'll try to do this..it will be a disaster but I try Biggrin
11-07-2015 03:59 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #15
RE: A click only to delete image Xthreads / other field?
Do you have a test board (no matter whether it is on localhost)?

11-07-2015 04:22 AM
Find all posts by this user Quote this message in a reply
nier3 Offline
Member
***
Posts: 125
Joined: Jul 2012
Post: #16
RE: A click only to delete image Xthreads / other field?
Yes, I have a test forum in a subdomain, I don't use localhost because it's too slow and often I have problems with cookies, so better use a live test board
11-07-2015 05:17 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #17
RE: A click only to delete image Xthreads / other field?
You can try the plugin attached in this post in your test forum first:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=5199&pid=1908

11-07-2015 05:36 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: