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 10-12-2009, 09:42 PM
TheGorf TheGorf is offline
 
Join Date: Oct 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Disabling attachments/uploads per forum

I've been spending a little time this afternoon with Google and the VB.org search trying to find a solution to my problem. I am running VB 3.8.4, and I would like to disable attachments per forum. I realize that I can do it globally, and I also realize that I can do it with usergroups, however here is my issue. We have many sub-forums that are protected by permissions based around usergroup membership. Some are assigned, some are open to anyone joining. The point is that I have a single forum that I have need to disable users from attaching images to posts, but still allow the use of the img tag to hotlink. I don't want to have to burden my admin and moderator staff with the chore of editing that one forums permissions for 40 usergroups and then update it every time we edit or create a new usergroup.

I found some stuff that might have done what I wanted, but it was for VB 3.5, and the searches I have done seem to come up with nothing but explanations about how to disable it using usergroups. I even took a hack at trying to do it with a plugin, but I just don't know enough about VB coding interfaces to be very productive.

Anyone have any good suggestions?
Reply With Quote
  #2  
Old 10-12-2009, 09:52 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried "Forum permission manager" in this you can disable "Can Upload Attachments"

EDIT: Oh you did ... ignore this.

.
Reply With Quote
  #3  
Old 10-12-2009, 11:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would do it with a plugin. Set 'canpostattachment' to false. So, for the newreply page, I woud use the newreply_start hook location and do something like:

PHP Code:
if ($forumid == x)
$vbulletin->bf_ugp_forumpermissions['canpostattachment'] = false
x should be changed to the correct forumid. You can do something similar for other pages where attachments can be added (newthread.php page).
Reply With Quote
  #4  
Old 10-13-2009, 05:57 PM
TheGorf TheGorf is offline
 
Join Date: Oct 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I would do it with a plugin. Set 'canpostattachment' to false. So, for the newreply page, I woud use the newreply_start hook location and do something like:

PHP Code:
if ($forumid == x)
$vbulletin->bf_ugp_forumpermissions['canpostattachment'] = false
x should be changed to the correct forumid. You can do something similar for other pages where attachments can be added (newthread.php page).
That is exactly what I was looking for and it works perfectly! Thank you so much!
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 05:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03439 seconds
  • Memory Usage 2,190KB
  • Queries Executed 11 (?)
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
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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