Log in

View Full Version : Maximum Images per Post for Usergroup


Justin V
08-24-2009, 10:16 PM
Is there a way for me to make a specific usergroup have a larger (or smaller) "Max. Images per Post" number than other usergroups?

I want my Admins to be able to post 10 images per post, as opposed to the usual 4.

Lynne
08-24-2009, 11:50 PM
You can try writing a plugin and change it for that usergroup.

if (is_member_of($vbulletin->userinfo, x,y))
{
$vbulletin->options['theoptionname']=zz;
}
Change x,y to the usergroup ids, zz to the number of images and theoptionname to the option name (see page source op options page for that option).

pigpog
09-05-2009, 02:31 PM
Hello Lynne! :) Long time no see.

This sounds perfect for what I need. I have just a couple of questions though.

1. Which template would I put this in?

2. What is the page "source op options page"?

Sorry for the silly questions but I want to make sure I get it right. :)

Thanks! I hope you are keeping well. :)

Kate xxx

Lynne
09-05-2009, 04:30 PM
1. It's a plugin, not something you put in a template. Probably the global_start hook location, I'd guess.

2. I'm talking about the vboptions page - the ones where you toggle things on and off. Look at the page source to find the option name. Or, if you are in debug mode, you can just hover your cursor over it to get the name. (You should only have debug mode on if you are on your test site.)

pigpog
09-06-2009, 11:55 AM
You genius Lynn, I can't thank you enough! :up::up::up::up::D:up::up:

ateesdale
08-13-2010, 03:28 AM
I was able to change Max images Per Post using Lynnes advice:
http://a.imageshack.us/img836/2048/maximages.jpg (http://img836.imageshack.us/i/maximages.jpg/)