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

Johannes Genberg Posted in Technical Support 6 years ago

How do I do that?

Replies
se Johannes Genberg Replied 6 years ago

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

Indonesian Arsalan Shah Replied 6 years 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 6 years ago

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

Indonesian Arsalan Shah Replied 6 years 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.