PDA

View Full Version : Time Limit for Editing Posts - per usergroup


ludachris
05-26-2010, 03:16 PM
I know there is a general setting for everyone. I'd like to make it so that it doesn't affect certain usergroups. Would it be easy to create a plugin for this? Would anyone mind sharing how a plugin would work?

Lynne
05-26-2010, 10:43 PM
if (is_member_of($vbulletin->userinfo, 5, 6, 7))
{
$vbulletin->options['edittimelimit'] = 'xxx';
}

ludachris
05-27-2010, 02:06 PM
Thanks Lynne. Would you have a recommendation on which hook location to place that code?

Lynne
05-27-2010, 03:07 PM
Maybe try fetch_foruminfo ? You can go into debug mode and see the available hooks at the bottom of the page and try a few of them.

Marco van Herwaarden
05-28-2010, 08:56 AM
Try using global_start.