×
Kunena 5.2.4 and Blue eagle 1.6.4 released (04 Apr 2021)

The Kunena team has announce the arrival of Kunena 5.2.4 [K 5.2.4] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.2 and issues discovered during the development stages of K 5.2.4

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with, this template isn't designed to works with Bootstrap 3 and Bootstrap 4.

Question How to change Tabs order

More
11 years 2 months ago - 11 years 2 months ago #1 by foxmulder90
Hi!

I wonder how I can edit the tab-menu order, I would like categories to be to left and then all the other tabs.

PS, I have read about it but it didnt say much and nothing about how you'll do to change it? I know I will have to edit fb_layout.php but thats it =(

Thanks in advance!

Best regards
Jonathan P
Last edit: 11 years 2 months ago by sozzled. Reason: Change topic subject for relevance

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #2 by xillibit
Hello,

for change tab order just change the place of things between <li></li>, by example for categories link, place their part of code, you can the same thing for the other part of code :
$header .= '<li ';
	 if ($func == 'listcat' ) $header .= ' class="Kunena_item_active" ';
	$header .=' >'.CKunenaLink::GetCategoryListLink('<span>'.(array_key_exists('home', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['home'] . '" border="0" alt="' . _KUNENA_CATEGORIES . '"  title="' . _KUNENA_CATEGORIES . '" />' : _KUNENA_CATEGORIES).'</span>');
    $header .= '</li>';

just after that, if you want to see this tab in first :
$header = '<div id="fb_topmenu" ><div id="Kunena_tab"><ul>';

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #3 by foxmulder90
Thank you!

It was just to put the categories-code in first, stupid me =(

Best regards
Jonathan P

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago - 11 years 2 months ago #4 by sozzled
Thank you, xillibit. :) I started to write about this a few hours ago but I got sidetracked. :pinch:

Yes, we've written about this many times. Although the solution is fairly straightforward - well, it's straightforward if you have any understanding of PHP - the solution requires modifying the Kunena source code. Because of this, it would probably be better in future for these kinds of questions to be dealt with in the Hacks, Tips and Tricks category? :unsure:

These discussion topics explain the principle - they don't necessarily give you the solution; that's for you to develop yourself: I'm glad you found a solution that's right for you. :)
Last edit: 11 years 2 months ago by sozzled.

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago - 11 years 2 months ago #5 by Maccro
Hello everybody,

I tried to find some tutorials about tab management in Kunena. I didn't find anything, so I tried to change it directly through Dreamweaver.

Here is the solution :

In my case, I wanted to put Categories Tab in first position.

EDIT : You have to modify the file fb_layout.php (in /components/com_kunena/template/default_ex)

Step 1 : Find this code :
$header .= '<li ';
	 if ($func == 'listcat' ) $header .= ' class="Kunena_item_active" ';
	$header .=' >'.CKunenaLink::GetCategoryListLink('<span>'.(array_key_exists('home', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['home'] . '" border="0" alt="' . _KUNENA_CATEGORIES . '"  title="' . _KUNENA_CATEGORIES . '" />' : _KUNENA_CATEGORIES).'</span>');
    $header .= '</li>';
 
    if ($my_id != 0)
    {

Step 2 : Cut this code.

Step 3 : Paste this code after this :
$header = '<div id="fb_topmenu" ><div id="Kunena_tab"><ul>';

For other tabs, just follow the same steps.

If you want to delete Catagories tab for example, just delete the first code.

I hope it will help you !

Mickael
Last edit: 11 years 2 months ago by Maccro.

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #6 by BeTheDance
Great! Thanks much.

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #7 by hechtic
Using this code, I was easily able to change the order so that Categories shows up first. But Recent Discussions is still the default tab. How can I change this so that Categories is the default tab. Thanks!

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago - 11 years 3 weeks ago #8 by @quila
Replied by @quila on topic Re: How to change Tabs order
Hi,

Backend -> Kunena Forum -> Kunena Configuration -> Frontend -> Default Kunena Page = Categories -> Save

Regards
Last edit: 11 years 3 weeks ago by @quila.

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #9 by hechtic
That was easy. Thanks for the quick reply.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.102 seconds