View Full Version : 2 attachment questions
CrazyLady
02-28-2005, 03:25 PM
Good afternoon.
I have 2 questions regarding attachments.
1) If a member group can add attachments to their posts, can you decide what forums will allow the attachments? I only want ONE forum for attachments.
2) When deleting an attachment, I see that the post remains intact minus the attachment link. Is there anyway to have the thread deleted as well, AND/OR have a message saying that the attachment has been removed?
Thanks for your help
CL
1) Yes this is possible, you need to set-up the forum permissions correctly for each group. You can read about that here:
http://www.vbulletin.com/docs/html/usergroup_managing_forum_
2) To delete the post click on the edit button and check the 'delete post' box on the editpost page. If the post is the first on in the thread, the entire thread is deleted.
Currently there is no option to show an 'attachment was removed from this post' message. But it would be rather easy to hack in.
CrazyLady
02-28-2005, 04:57 PM
2) Sorry, I did forget to mention removing attachments via the admin control panel. When you remove the attachment, the thread remains. I wish to prune both the thread with the attachment. No need for an empty thread to take up valuable space. Anything like that out there?
thanks again!
I have not seen such a thing, it could be a stock feature for all I know. I have always deleted attachments via the front-end and never used the admincp method for some reason ;).
I will look into it as it is not hard to do, ill post back when I have it working.
CrazyLady
02-28-2005, 05:15 PM
Thank you very much. It just didn't seem good to have a bunch of empty threads... and for myself, I don't want to be going into the forum searching for attachments AND their threads just to delete them one by one. As a side question, if I prune a forum and there are threads with attachments, I assume the attachments are deleted as well?
Thanks for looking into this for me. I'll watch for your reply.
thank you
CL
Thank you very much. It just didn't seem good to have a bunch of empty threads... and for myself, I don't want to be going into the forum searching for attachments AND their threads just to delete them one by one. As a side question, if I prune a forum and there are threads with attachments, I assume the attachments are deleted as well?
Thanks for looking into this for me. I'll watch for your reply.
thank you
CL
When pruning your are removing the threads/posts from the forum forever. If you want you can retain attachments (altho they will have no posts, but if directly linked they will still work) you can make this change to the code:
open /forumroot/admincp/thread.php
Find:
delete_thread($thread['threadid'], 0);
Replace with:
$delinfo = array('keepattachments' => 1);
delete_thread($thread['threadid'], 0, 1, $delinfo);
CrazyLady
02-28-2005, 06:00 PM
I just wanted to be sure that when I pruned threads that the attachments were also deleted and that's what I want. I just want to be able to do the reverse as well, when pruning the attachments, that the threads are also deleted.
Because now, when you prune/delete attachments via the admincp or even usercp, the attachment is removed, but the thread/post remains. Anyway to add an option to remove the post as well?
this would be extremely helpful.
thank you
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.