Supporters / CoAuthors
Show Your Support
<version>1.2</version>
<version>1.3</version>
<dependencies> </dependencies>
<dependencies> <dependency dependencytype="vbulletin" minversion="3.6.8" maxversion="" /> </dependencies>
<plugin active="1" executionorder="5"> <title>Fetch Forum Info</title> <hookname>fetch_foruminfo</hookname> <phpcode><![CDATA[if (isset($vbulletin->bf_misc['pfetlforumoptions'])) { foreach ($vbulletin->bf_misc['pfetlforumoptions'] AS $optionname => $optionval) { $vbulletin->forumcache["$forumid"]["$optionname"] = (($vbulletin->forumcache["$forumid"]['pfetlforumoptions'] & $optionval) ? 1 : 0); } } ]]></phpcode> </plugin>
<plugin active="1" executionorder="5"> <title>Fetch Forum Info</title> <hookname>fetch_foruminfo</hookname> <phpcode><![CDATA[if (isset($vbulletin->bf_misc['pfetlforumoptions'])) { foreach ($vbulletin->bf_misc['pfetlforumoptions'] AS $optionname => $optionval) { $vbulletin->forumcache["$forumid"]["$optionname"] = (($vbulletin->forumcache["$forumid"]['pfetlforumoptions'] & $optionval) ? 1 : 0); } } if ($vbulletin->forumcache[$forumid][pfetltimelimit] == '-1') { $vbulletin->options['edittimelimit'] = '0'; } elseif ($vbulletin->forumcache[$forumid][pfetltimelimit] != '0') { $vbulletin->options['edittimelimit'] = $vbulletin->forumcache["$forumid"]['pfetltimelimit']; } ]]></phpcode> </plugin>
<plugin active="1" executionorder="5"> <title>Disable Edit Button</title> <hookname>showthread_start</hookname> <phpcode><![CDATA[if ($foruminfo['pfetltimelimit'] == '*') { $vbulletin->options['edittimelimit'] = '0'; } elseif ($foruminfo['pfetltimelimit'] != '0') { $vbulletin->options['edittimelimit'] = $foruminfo['pfetltimelimit']; }]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>Edit Time Limit</title> <hookname>editor_toolbar_start</hookname> <phpcode><![CDATA[if ((isset($forum)) AND ($forum['pfetltimelimit'] == '-1')) { $vbulletin->options['edittimelimit'] = '0'; } elseif ((isset($forum)) AND ($forum['pfetltimelimit'] != '0')) { $vbulletin->options['edittimelimit'] = $forum['pfetltimelimit']; }]]></phpcode> </plugin>