Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2005, 03:25 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 2 attachment questions

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
Reply With Quote
  #2  
Old 02-28-2005, 03:52 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/u...anaging_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.
Reply With Quote
  #3  
Old 02-28-2005, 04:57 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 02-28-2005, 05:08 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 02-28-2005, 05:15 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 02-28-2005, 05:40 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CrazyLady
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:

PHP Code:
            delete_thread($thread['threadid'], 0); 
Replace with:

PHP Code:
            $delinfo = array('keepattachments' => 1);
            
delete_thread($thread['threadid'], 01$delinfo); 
Reply With Quote
  #7  
Old 02-28-2005, 06:00 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03555 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete