Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Allow users to upload more than 10 attachments at once Details »»
Allow users to upload more than 10 attachments at once
Version: 1.00, by wolfstream wolfstream is offline
Developer Last Online: Sep 2009 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.x Rating:
Released: 09-02-2008 Last Update: Never Installs: 3
DB Changes
 
No support by the author.

I recently ran across a need to have more than 10 attachments uploaded on a regular basis, and for the life of me couldn't figure out how to do it. This will help people with that little problem. It's a quick hack, but it works,as long as you follow the instructions.

This is an SQL qery which may be run through vB admincp, or through phpmyadmin, or your favorite SQL editor. This will turn the 'dropdown' attachment limit selection into a standard textbox which will allow you to submit your own limit. Of course, keep in mind that you don't want to allow TOO many attachments, but in some cases, allowing more than 10 attachments is necessary.

Code:
UPDATE setting SET optioncode = '' WHERE CONVERT( `setting`.`varname` USING utf8 ) = 'attachboxcount' LIMIT 1 ;
This is a small hack, but you should still backup your forum before running ANY kind of SQL query!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-03-2008, 04:13 PM
Hitterman's Avatar
Hitterman Hitterman is offline
 
Join Date: May 2008
Location: Tutorialistic.net
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it safe?
Reply With Quote
  #3  
Old 09-03-2008, 04:27 PM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The query itself is quite safe. I've run it at least twice now, it's not caused any issues that I've run into.

Is it safe to allow 1000s of attachments to be uploaded? Of course not, because you'll always find the clown who'll fill up your server with massive attachments.

Everything in moderation. I just ran across a legit need for more than the default dropdown 10 (legal fansite downloads of shows), and thought I'd share how I did it for someone else who might need to do the same thing.

Of course, you'll have to moderate stuff heavily with a lot of attachments, but that's a given
Reply With Quote
  #4  
Old 09-03-2008, 05:33 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wonderful, I've needed something like this as well

Thanks
Reply With Quote
  #5  
Old 09-04-2008, 12:42 AM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would this work in vb 3.6.8?
Reply With Quote
  #6  
Old 09-04-2008, 12:54 AM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I couldn't honestly answer that, but I don't see why not.
All this does is replace the vb option for this , turning it from a select option to a blank text field.

As always you'll want to backup things before you try that, especially on an untested version.
Reply With Quote
  #7  
Old 09-04-2008, 01:29 AM
Hitterman's Avatar
Hitterman Hitterman is offline
 
Join Date: May 2008
Location: Tutorialistic.net
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried it on your forum?
Reply With Quote
  #8  
Old 09-04-2008, 02:04 AM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hitterman View Post
Have you tried it on your forum?
I wouldn't post something that I DIDN'T try on my own first.
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 11:24 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.05350 seconds
  • Memory Usage 2,268KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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