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

Reply
 
Thread Tools Display Modes
  #11  
Old 11-14-2008, 02:58 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SVTCobraLTD View Post
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?
Reply With Quote
  #12  
Old 11-14-2008, 03:46 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this

HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 6)"></if>
Reply With Quote
  #13  
Old 12-23-2008, 03:53 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
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>
Reply With Quote
  #14  
Old 12-23-2008, 04:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$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.
Reply With Quote
  #15  
Old 12-23-2008, 04:44 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
$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?
Reply With Quote
  #16  
Old 12-23-2008, 04:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?).
Reply With Quote
  #17  
Old 12-24-2008, 08:57 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
if (is_member_of($vbulletin->userinfo56)) 
Reply With Quote
  #18  
Old 12-24-2008, 03:26 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 09-24-2009, 02:47 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #20  
Old 09-24-2009, 03:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 07:49 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.04850 seconds
  • Memory Usage 2,280KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete