Update to latest version

This commit is contained in:
genuineparts 2025-06-24 23:26:25 +02:00
parent 8a89842ec6
commit fe9ecfad73
77 changed files with 1701 additions and 5404 deletions

View file

@ -31,12 +31,12 @@ function forumsnav_info()
* compatibility: A CSV list of MyBB versions supported. Ex, "121,123", "12*". Wildcards supported.
*/
return array(
"name" => "Forum Nav",
"name" => "Forum Nav",
"description" => "Nav of forums in the header",
"website" => "http://funch.at",
"website" => "http://austriachat.net",
"author" => "genuineparts",
"authorsite" => "http://funch.at",
"version" => "1.3",
"authorsite" => "http://austriachat.net",
"version" => "1.2",
"guid" => "",
"compatibility" => "*"
);
@ -45,7 +45,7 @@ function forumnav()
{
global $forumsnav,$mybb, $db;
$sql="SELECT * FROM `".$db->table_prefix."forums` WHERE `type`='f' AND active != 0 AND `pid` != 13 ORDER BY `pid`,`disporder`";
$sql="SELECT * FROM `".TABLE_PREFIX."forums` WHERE `type`='f' AND active != 0 ORDER BY `pid`,`disporder`";
$result=$db->query($sql);
while($row=$db->fetch_array($result)){
$forum .= '<li><a href="/forum/forum-'.$row['fid'].'.html">'.$row['name'].'</a></li>';
@ -53,5 +53,59 @@ $sql="SELECT * FROM `".$db->table_prefix."forums` WHERE `type`='f' AND active !=
$forumsnav=$forum;
}
/**
* ADDITIONAL PLUGIN INSTALL/UNINSTALL ROUTINES
*
* _install():
* Called whenever a plugin is installed by clicking the "Install" button in the plugin manager.
* If no install routine exists, the install button is not shown and it assumed any work will be
* performed in the _activate() routine.
*
* function hello_install()
* {
* }
*
* _is_installed():
* Called on the plugin management page to establish if a plugin is already installed or not.
* This should return TRUE if the plugin is installed (by checking tables, fields etc) or FALSE
* if the plugin is not installed.
*
* function hello_is_installed()
* {
* global $db;
* if($db->table_exists("hello_world"))
* {
* return true;
* }
* return false;
* }
*
* _uninstall():
* Called whenever a plugin is to be uninstalled. This should remove ALL traces of the plugin
* from the installation (tables etc). If it does not exist, uninstall button is not shown.
*
* function hello_uninstall()
* {
* }
*
* _activate():
* Called whenever a plugin is activated via the Admin CP. This should essentially make a plugin
* "visible" by adding templates/template changes, language changes etc.
*
* function hello_activate()
* {
* }
*
* _deactivate():
* Called whenever a plugin is deactivated. This should essentially "hide" the plugin from view
* by removing templates/template changes etc. It should not, however, remove any information
* such as tables, fields etc - that should be handled by an _uninstall routine. When a plugin is
* uninstalled, this routine will also be called before _uninstall() if the plugin is active.
*
* function hello_deactivate()
* {
* }
*/
?>