Kunena 6.2.5 & module Kunena Latest 6.0.7 released

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

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Adding a tab?

More
14 years 3 months ago #1 by kade119
Adding a tab? was created by kade119
I would like to add "Register" to the tabs instead of down below, i have removed it from it's current position. Now looking into on how to add a new tab

thanks

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

More
14 years 3 months ago #2 by Matias
Replied by Matias on topic Re: Adding a tab?
Tabs are located in fb_layout.php in your template. Function KUNENA_get_menu() handles those.

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

More
14 years 3 months ago #3 by kade119
Replied by kade119 on topic Re:Adding a tab?
i think there is more to it then just that file...

i believe in the kunena.link.class.php file i will also need to add a function..

i'm trying to add "register" as one of the tabs

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

More
14 years 3 months ago #4 by kade119
Replied by kade119 on topic Re:Adding a tab?
can someone assist me in add a "register" tab at the top, here's were i'm at w/ it


in the kunena.link.class.php file i have this added



function GetRegisterLink($rel='nofollow')
{
return CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL.'&view=register&Itemid=' . $Itemid);
}


and then in the fb_layout.php file i added this

{
$header .= ' <li ';
if ($func == 'faq' ) $header .= ' class="Kunena_item_active" ';
$header .= ' >'.CKunenaLink::GetRegisterLink($fbConfig, '<span>'.(array_key_exists('help', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons . '" border="0" alt="' . _GEN_REGISTER. '" title="' . _GEN_REGISTER . '"/>' : _GEN_REGISTER).'</span>');
$header .= '</li>';
}



but i'm getting errors.. any help will be greatly appreciated

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

More
14 years 3 months ago #5 by xillibit
Replied by xillibit on topic Re:Adding a tab?
Hello,

In your kunena.link.class.php add this :
Code:
function GetRegisterLink($name, $rel='nofollow') { $helplink = JRoute::_('index.php?option=com_user&amp;view=register'); return CKunenaLink::GetSefHrefLink($helplink, $name, '', $rel); }

In your fb_layout.php add this , after line 188 and don't forget to replace _GEN_HELP by what you want :
Code:
if ($my_id == "0") { $header .= ' <li '; if ($func == 'faq' ) $header .= ' class="Kunena_item_active" '; $header .= ' >'.CKunenaLink::GetRegisterLink( '<span>'.(array_key_exists('help', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['help'] . '" border="0" alt="' . _GEN_HELP . '" title="' . _GEN_HELP . '"/>' : _GEN_HELP).'</span>'); $header .= '</li>'; }

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 3 months ago #6 by kade119
Replied by kade119 on topic Re:Adding a tab?
ah - thanks , i see what i did wrong now, was missing the var $name and i hsould of put my id=0 it should only appear if they are not logged in

thanks so much

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

Time to create page: 0.329 seconds