vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Images & Wordcount in post (https://vborg.vbsupport.ru/showthread.php?t=123854)

powerbook 08-13-2006 03:47 PM

Images & Wordcount in post
 
I know how to increase the maximum character count and images allowed in a single post (ACP -> Message Posting and Editing Options). Is it possible to have these different for certain usergroups let's say like Admin and normal users?

As Admin I'd write articles and post images that will exceeed the limit and for this I would like to be able to keep the normal users at 5 images and 5000 characters but for myself 15 images and 15000 characters.

Is it possible to have these profiles?

powerbook 08-24-2006 07:11 AM

Bump : Any takers?

F34R 08-24-2006 02:31 PM

This would be very helpful for me as well.

R.Solutions 08-24-2006 03:01 PM

Should be in the admincp --> Usergroup --> Registered Users

Should have an option there to limit those options as well.

powerbook 08-24-2006 04:55 PM

No, it doesn't offer any setting there to change limit for charcters or images per post for a certain usergroup.

I have a idea this is impossible...

Anyone Else?

F34R 08-29-2006 05:17 AM

I still havent been able to figure out if this is possible or not.

powerbook 08-29-2006 10:33 AM

Me neither I looked at everything but there is no option that allows for you to specify the two options (max word, images per post ) per usergroup or by user.

There must be other members that has/had the same issue.

beano33 08-31-2006 04:51 PM

I've looked around for a way to do this too. The closest solution I've found is the hack that allows specific usergroups to post html.
https://vborg.vbsupport.ru/showthread.php?t=96926

powerbook 09-02-2006 02:17 PM

Thanks, I'll go for that one now. I've searched this forum for some - anything related to this and nothing turned up. If we are asking this question I can't believe no one else were able to advise us. Makes you think doesn't it?

In 15 days no real answer, it's unbelievable...

Kirk Y 09-02-2006 03:54 PM

Here's a quick and dirty solution.

In "includes/class_dm_threadpost.php" Find:
Code:

function verify_pagetext(&$pagetext)
        {
                if ($this->registry->options['postmaxchars'] != 0 AND ($postlength = vbstrlen($pagetext)) > $this->registry->options['postmaxchars'])
                {
                        $this->error('toolong', $postlength, $this->registry->options['postmaxchars']);
                        return false;
                }

Replace with:
Code:

function verify_pagetext(&$pagetext)
        {
                global $vbulletin;
                if ($this->registry->options['postmaxchars'] != 0 AND ($postlength = vbstrlen($pagetext)) > $this->registry->options['postmaxchars'] AND $vbulletin->userinfo['usergroupid'] != '6')
                {
                        $this->error('toolong', $postlength, $this->registry->options['postmaxchars']);
                        return false;
                }

This assumes that your Administrator Group is UsergroupID 6.

This will eliminate the limit placed on Administrators, yet maintain the established AdminCP Limits for other Users.


All times are GMT. The time now is 01:00 PM.

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.05495 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete