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

Reply
 
Thread Tools
Admin Max-Min Characters and Images Override by BOP5 Details »»
Admin Max-Min Characters and Images Override by BOP5
Version: 1.2, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.8.x Rating:
Released: 11-25-2010 Last Update: 08-25-2011 Installs: 22
Supported Uses Plugins
Re-useable Code Translations  

VB4 Thread: https://vborg.vbsupport.ru/showthread.php?t=254242

This product allows you to override the maximums set in vBulletin Options for the following:
  • Max Characters per Post
  • Min Characters per Post (New in Version 1.1)
  • Max Images per Post
  • Max Characters per Social Group Post
  • Max Characters per Private Message
  • Max Characters per Visitor Message

I have confirmed this working on vBulletin 3.8.7. I'm sure it will work on all earlier versions too.

I believe it will work on old versions as far back as 3.5. Settings for unavailable options (such as Social Groups and Visitor Messages) should simply be ignored, but I could not test this. If you can confirm this mod does or does not work on other versions please post here and let me know.

Instructions included in the .zip file but this is a simple product install, no files to upload, no templates to edit.

Once the product is installed it is turned off by default. You must go to vBulletin Options -> Admin Max Characters Override to enable the mod and choose your custom limits (if any.)

By default this mod will override usergroup 6 only (this is usually the admin usergroup.) You can add additional usergroups in the mod settings if you so choose.

WARNING: Read the instructions included in the zip file before installing and using this mod. While it is possible to do I DO NOT recommend running this mod with NO LIMITS.

Please do not PM me for support. I will provide support in this thread. If I disappear for a while you might be able to find me on my own forum, http://www.qapla.com.

PLEASE "mark as installed" if you use this.

Download Now

File Type: zip Admin Max-Min Overrides by BOP5v12.zip (3.1 KB, 48 views)

Screenshots

File Type: png ss_adminmaxover11.png (71.2 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 11-26-2010, 02:47 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Reply With Quote
  #3  
Old 11-26-2010, 03:21 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged and thanks

oopps

untagged; wrong version
Reply With Quote
  #4  
Old 11-26-2010, 01:35 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to Version 1.1
Only Change: Added "Minimum Character Overrides" for Posts.
Reply With Quote
  #5  
Old 12-27-2010, 01:19 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's working for images on the 3 forums I've tested it on... Are you getting any kind of error message? Any more info in this?

If you're interested in possibly trouble shooting this can I get a list of mods you have installed?
You can go to your product manager and copy and paste the info here.
Reply With Quote
  #6  
Old 12-27-2010, 04:03 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the code in this mod is very simple, I can't imagine it conflicting with anything unless another mod is trying to do more or less the same thing.

If you go to your Admin CP -> Plugin Manger -> Admin Max-Min Character and Image Override
and edit the plugin titled: "Max Character and Image Override"

You can change the execution order from "5" to "2"... Also erase all the php code in the plugin and replace it with below:
PHP Code:
if(in_array(($vbulletin->options['bop5_admin_enabled'] == 1) AND     $vbulletin->userinfo['usergroupid'], explode(','$vbulletin->options['bop5_admin_group'])))
{
  
$bop5post $vbulletin->options['bop5_max_posts'];
  
$bop5min  $vbulletin->options['bop5_min_posts'];
  
$bop5imgxx  $vbulletin->options['bop5_max_img'];
  
$bop5gm   $vbulletin->options['bop5_max_gm'];
  
$bop5pm   $vbulletin->options['bop5_max_pm'];
  
$bop5vm   $vbulletin->options['bop5_max_vm'];

  
$vbulletin->options['postmaxchars'] = $bop5post;
  
$vbulletin->options['postminchars'] = $bop5min;
  
$vbulletin->options['maximages']    = $bop5imgxx;
  
$vbulletin->options['gm_maxchars']  = $bop5gm;
  
$vbulletin->options['pmmaxchars']   = $bop5pm;
  
$vbulletin->options['vm_maxchars']  = $bop5vm;

Save the plugin and test again. If you still have the problem go back one more time and change the execution order to: 10. If neither of these help I'm out of suggestions without knowing your mods.


Also I just want to confirm what exact version of vBulletin were you using and what number did you have the Max Images set to? (The default is 0.)

Thanks...
Reply With Quote
  #7  
Old 12-27-2010, 04:32 PM
EddyMaxx EddyMaxx is offline
 
Join Date: Jan 2010
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great.
Reply With Quote
  #8  
Old 05-16-2011, 08:11 PM
Dj Smuggla Dj Smuggla is offline
 
Join Date: Sep 2009
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot m8, works great on 3.8.6...
Reply With Quote
  #9  
Old 08-26-2011, 01:20 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated with a major bug-fix. Also now works on primary or secondary usergroups. Urge everyone to upgrade ASAP.
Reply With Quote
  #10  
Old 08-26-2011, 08:22 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by X-or View Post
why no official patch by official team?
This is a modification I released, and I fixed a bug and released an update. I don't know what you mean by an official patch or official "team" ?

Mods don't get "patched" they get upgraded/updated.

The bug was it look like I inadvertently moved a function call in the first line of the plugin that would activate the plugin for all usergroups instead of the selected usergroups only.
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 09:36 AM.


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.12098 seconds
  • Memory Usage 2,326KB
  • Queries Executed 24 (?)
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_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete