Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3

Question How to change Tabs order

More
14 years 2 months ago - 14 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: 14 years 2 months ago by sozzled. Reason: Change topic subject for relevance

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

More
14 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 :
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 :
Code:
$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
14 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
14 years 2 months ago - 14 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: 14 years 2 months ago by sozzled.

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

More
14 years 2 months ago - 14 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 :
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 :
Code:
$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: 14 years 2 months ago by Maccro.

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

More
14 years 2 weeks ago #6 by BeTheDance
Great! Thanks much.

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

More
14 years 3 days 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
14 years 3 days ago - 14 years 3 days 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: 14 years 3 days ago by @quila.

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

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

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

Time to create page: 0.811 seconds