PDA

View Full Version : Administrative and Maintenance Tools - Admin Max-Min Characters and Images Override by BOP5


BirdOPrey5
11-25-2010, 10:00 PM
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:

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