Uridium Posted November 30, 2021 Posted November 30, 2021 This small edit will stop the Forum lists appearing on your left menu and there will only be one link to the forums to view all topics and cats Lines 1 to 31 need editing to that of the below code <?php new hook("customMenus", function ($user) { if ($user) { $forums = $user->db->prepare("SELECT * FROM forums ORDER BY F_sort ASC, F_name Limit 1"); $forums->execute(); $allForums = $forums->fetchAll(PDO::FETCH_ASSOC); $items = array(); foreach ($allForums as $forum) { $items[] = array( "url" => "?page=forum", "text" => "View Forums" ); } if (!count($items)) return array(); return array( "title" => "Forum", "url" => "?page=forum", "items" => $items ); } else { return false; } }); 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.