Change the order of Forum link to the top in the left menu.

Johannes Genberg Posted in Technical Support 3 months ago

How do I do that?

Replies
se Johannes Genberg Replied 3 months ago

I put it at the bottom of the file and it works perfectly! Thank you so much :D

German Arsalan Shah Replied 3 months ago

Here is a component: you can move the code into your ossn_com.php file

function forum_menu_priority() {
        if(com_is_active('Forum')){
            ossn_unregister_menu_item('forum', 'links', 'newsfeed');
            ossn_register_sections_menu('newsfeed', array(
                    'name' => 'forum',
                    'text' => ossn_print('forum'),
                    'url' => ossn_site_url('forum/categories'),
                    'section' => 'links',
                    'icon' => true,
                    'priority' => 1,
            ));                 
        }
}
ossn_register_callback('ossn', 'init', 'forum_menu_priority');
se Johannes Genberg Replied 3 months ago

Aha. Is there an easy way to do that? If yes, how do I do that?

German Arsalan Shah Replied 3 months ago

I believe priority won't work here, you have to use javascript and move the menu item link to forum to top of the newsfeed item.