Log in

View Full Version : Images & Wordcount in post


powerbook
08-13-2006, 03:47 PM
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:
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:
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.

powerbook
09-02-2006, 04:16 PM
Thanks a million acidburn0520, I'm going to have a look in that file right now.. :)

Edit: I made the change and it's working great. I changed the normal user count for both back to the standard and then posted a sample as Admin.

Thanks again...

Kirk Y
09-02-2006, 09:17 PM
No problem, glad to help.