Kunena 7.0.3 Released

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

Question How to change Tabs order

More
16 years 1 month ago - 16 years 1 month ago #40583 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: 16 years 1 month ago by sozzled. Reason: Change topic subject for relevance

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

More
16 years 1 month ago #40586 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
16 years 1 month ago #40588 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
16 years 1 month ago - 16 years 1 month ago #40593 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: 16 years 1 month ago by sozzled.

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

More
16 years 1 month ago - 16 years 1 month ago #40615 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: 16 years 1 month ago by Maccro.

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

More
16 years 1 day ago #45081 by BeTheDance
Great! Thanks much.

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

Time to create page: 0.240 seconds