Ozzy47
Administrator
I created a test user and tested this, it doesn't seem to enable the edit post button after the timeout of 15 minutes for the OP in the specified forums I enabled for in the settings. Seems to be the same issue civicf is having.
Related posts:
vBulletin.org Forum - View Single Post - [OzzModz] First Post Editable Indefinitely Per Usergroup
vBulletin.org Forum - View Single Post - [OzzModz] First Post Editable Indefinitely Per Usergroup
vBulletin.org Forum - View Single Post - [OzzModz] First Post Editable Indefinitely Per Usergroup
should be
Also you need to create a new hook ajax_start and add
Related posts:
vBulletin.org Forum - View Single Post - [OzzModz] First Post Editable Indefinitely Per Usergroup
vBulletin.org Forum - View Single Post - [OzzModz] First Post Editable Indefinitely Per Usergroup
vBulletin.org Forum - View Single Post - [OzzModz] First Post Editable Indefinitely Per Usergroup
PHP:
$vbulletin->userinfo
PHP:
vB::$vbulletin->userinfo
Also you need to create a new hook ajax_start and add
PHP:
$ozzmodz_editable_post['active'] = $vbulletin->options['ozzmodz_editable_post_active']; //Is mod active
$allowed_users = explode(',', $vbulletin->options['ozzmodz_editable_post_groups']); //Allowed users
$included_forums = explode(",", $vbulletin->options['ozzmodz_editable_post_forums']); //Enabled forums
global $threadinfo, $postinfo, $foruminfo, $vbulletin;
if (($threadinfo['firstpostid'] == $postinfo['postid']) AND ($vbulletin->userinfo['userid'] == $postinfo['userid']) AND ($ozzmodz_editable_post['active']) AND (is_member_of(vB::$vbulletin->userinfo, $allowed_users) AND in_array($forumid, $included_forums)))
{
$vbulletin->options['edittimelimit'] = 0;
}