vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Admin Max-Min Characters and Images Override by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=254240)

BirdOPrey5 11-25-2010 10:00 PM

Admin Max-Min Characters and Images Override by BOP5
 
1 Attachment(s)
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. :)

BirdOPrey5 11-26-2010 02:47 AM

Reserved.

sulasno 11-26-2010 03:21 AM

tagged and thanks

oopps

untagged; wrong version

BirdOPrey5 11-26-2010 01:35 PM

Updated to Version 1.1
Only Change: Added "Minimum Character Overrides" for Posts.

BirdOPrey5 12-27-2010 01:19 PM

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.

BirdOPrey5 12-27-2010 04:03 PM

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...

EddyMaxx 12-27-2010 04:32 PM

Works great.

Dj Smuggla 05-16-2011 08:11 PM

Thanks a lot m8, works great on 3.8.6...

BirdOPrey5 08-26-2011 01:20 AM

Updated with a major bug-fix. Also now works on primary or secondary usergroups. Urge everyone to upgrade ASAP.

BirdOPrey5 08-26-2011 08:22 AM

Quote:

Originally Posted by X-or (Post 2238199)
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" ? :confused:

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.


All times are GMT. The time now is 09: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.01914 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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