vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Multiple file upload like VB (https://vborg.vbsupport.ru/showthread.php?t=137068)

stwilson 01-20-2007 08:13 PM

Multiple file upload like VB
 
1 Attachment(s)
Has the feature to upload multiple files at one time been released as a MOD? I am talking about the feature to identify multiple files to upload. See attached image. Anyone know where I can get the code to perform this?

ST

stwilson 01-22-2007 12:26 AM

Anyone????

ST

Smoothie 01-22-2007 12:44 AM

Hey, it's not available as a mod because it's already built-right-in to vB. LOL

stwilson 01-22-2007 03:22 AM

HA! HA! HA! Boy do I feel stupid. Somehow, I overlooked that option. THANK YOU for posting up, even though I really feel silly.

ST

murrtex 09-02-2007 02:36 PM

find $attachinput

in the newattachment

and add below or above

$attachinput
$attachinput
$attachinput
$attachinput

thats all.

ragtek 09-02-2007 02:39 PM

in the acp=>settings you have an point attachments, there you can say how many

SVTCobraLTD 09-29-2008 11:22 AM

Quote:

Originally Posted by murrtex (Post 1330772)
find $attachinput

in the newattachment

and add below or above

$attachinput
$attachinput
$attachinput
$attachinput

thats all.

I added this line
Code:

<if condition="$post[usergroupid] == 6">$attachinput</if>
yet it is not showing up. User group 6 being admins. Am I messing this up?

SVTCobraLTD 10-02-2008 06:20 PM

Quote:

Originally Posted by SVTCobraLTD (Post 1633005)
I added this line
Code:

<if condition="$post[usergroupid] == 6">$attachinput</if>
yet it is not showing up. User group 6 being admins. Am I messing this up?

Anyone?

SVTCobraLTD 10-14-2008 01:14 PM

Quote:

Originally Posted by murrtex (Post 1330772)
find $attachinput

in the newattachment

and add below or above

$attachinput
$attachinput
$attachinput
$attachinput

thats all.

If you add
Code:

<if condition="is_member_of($bbuserinfo, x)">$attachinput</if>
you can choose which user groups can upload more than one file at a time.

SVTCobraLTD 11-06-2008 03:46 PM

I have this done and I thought it worked, just tried it out and got this error:
Code:

Warning: fopen(/tmp/phpYrKngM) [function.fopen]: failed to open stream: No such file or directory in /includes/class_image.php on line 328
If I use the standard first upload feature I can upload one file at a time, but when I try and do more than one, I get the above error on 3.6.11. Any ideas?

SVTCobraLTD 11-14-2008 02:58 PM

Quote:

Originally Posted by SVTCobraLTD (Post 1660565)
I have this done and I thought it worked, just tried it out and got this error:
Code:

Warning: fopen(/tmp/phpYrKngM) [function.fopen]: failed to open stream: No such file or directory in /includes/class_image.php on line 328
If I use the standard first upload feature I can upload one file at a time, but when I try and do more than one, I get the above error on 3.6.11. Any ideas?

Anyone have any ideas on this?

veenuisthebest 11-14-2008 03:46 PM

try this

HTML Code:

<if condition="is_member_of($vbulletin->userinfo, 6)"></if>

SVTCobraLTD 12-23-2008 03:53 PM

Quote:

Originally Posted by veenuisthebest (Post 1665613)
try this

HTML Code:

<if condition="is_member_of($vbulletin->userinfo, 6)"></if>

Tried that but got the following error:
Code:

Warning: fopen(/tmp/phpWDuytz) [function.fopen]: failed to open stream: No such file or directory in /includes/class_image.php on line 328
Anyone else? Unless the problem is because I am trying to do 3 user groups:

Code:

<if condition="is_member_of($vbulletin->userinfo, 6, 28, 5)">$attachinput</if>

Lynne 12-23-2008 04:21 PM

$bbuserinfo should work. That variable is already being used in that template.

But, what exactly are you trying to do? You can increase the number of uploads allowed in vboptions > message attachment options > attachments per post and attachment upload inputs. If you want to increase that just for one usergroup, just create a plugin to increase that setting ( $vbulletin ->options['attachboxcount'] and $vbulletin ->options['attachlimit'] ??) for that usergroup.

SVTCobraLTD 12-23-2008 04:44 PM

Quote:

Originally Posted by Lynne (Post 1692116)
$bbuserinfo should work. That variable is already being used in that template.

But, what exactly are you trying to do? You can increase the number of uploads allowed in vboptions > message attachment options > attachments per post and attachment upload inputs. If you want to increase that just for one usergroup, just create a plugin to increase that setting ( $vbulletin ->options['attachboxcount'] and $vbulletin ->options['attachlimit'] ??) for that usergroup.

I want the multiple uploads like here on vB but for only certain user groups.

If I create a plugin and put in there the code you put above, what do I put where you put ?? Is that where I put the usergroup or the # of uploads allowed?

Lynne 12-23-2008 04:51 PM

I'm not sure which variables you want to change or for what usergroup, but you could do something like:

PHP Code:

if (is_member_of($vbulletin->userinfo56))  
{
    
$vbulletin->options['attachboxcount'] = '10';
    
$vbulletin->options['attachlimit'] = '10';


You'll have to figure out the best hook location (one at the beginning of showthread perhaps?).

Dismounted 12-24-2008 08:57 AM

PHP Code:

if (is_member_of($vbulletin->userinfo56)) 


Lynne 12-24-2008 03:26 PM

Ack! I knew that.... sometimes... um.... uh..... OK, I fixed my condition in my post above so someone else doesn't use my strange condition.

SVTCobraLTD 09-24-2009 02:47 PM

I really don't have a clue about making a plugin. Anyone what to give me a short lesson in it or explain how to do this?

Lynne 09-24-2009 03:28 PM

Here are a couple of threads regarding Plugins/Products:
https://vborg.vbsupport.ru/showthread.php?t=82625
https://vborg.vbsupport.ru/showthread.php?t=82923

And, of course, there is info in the manual - Plugin System


All times are GMT. The time now is 02:16 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.01215 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete