Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] 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

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 Menu - tab My Profile

More
15 years 11 months ago #48363 by MusicInMe
I have JomSocial installed, and in Kunena backend, setting for profile integration are "JomSocial". Thats ok, cuz I want to be redirected to my community profile after clicking on username in Kunena board. But I would like to change thi part of fb_layout.php
Code:
function KUNENA_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPending = 0) { $header = '<div id="fb_topmenu" >'; $header .= CKunenaLink::GetCategoryListLink('<span>'.(isset($fbIcons['home']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['home'] . '" border="0" alt="' . _KUNENA_CATEGORIES . '" title="' . _KUNENA_CATEGORIES . '" />' : _KUNENA_CATEGORIES).'</span>'); if ($my_id != 0) { $header .= CKunenaLink::GetMyProfileLink( $fbConfig, $my_id, isset($fbIcons['profile']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['profile'] . '" border="0" alt="' . _GEN_MYPROFILE . '" title="' . _GEN_MYPROFILE . '"/>' : _GEN_MYPROFILE); }

to be redirected, after click on tab My Profile on Kunena menu board, to Kunena settings. Or maybe should I hack other part of code?

Hope it's understendable what I mean.

Thank you.

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

More
15 years 11 months ago #48380 by xillibit
Replied by xillibit on topic Re: Menu - tab My Profile
Copy this part of code in line 164 of kunena.link.class.php :
Code:
function GetMyProfileLink2($fbConfig, $userid, $name, $rel='nofollow') { return CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL.'&amp;func=myprofile', $name, '', $rel); }

Leverage this function in the code for Kunena menu :
Code:
function KUNENA_get_menu($cbitemid, $fbConfig, $fbIcons, $my_id, $type, $view = "", $catid = 0, $id = 0, $thread = 0, $is_moderator = false, $numPendi ng = 0) { $header = '<div id="fb_topmenu" >'; $header .= CKunenaLink::GetCategoryListLink('<span>'.(isset($fbIcons['home']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['home'] . '" border="0" alt="' . _KUNENA_CATEGORIES . '" title="' . _KUNENA_CATEGORIES . '" />' : _KUNENA_CATEGORIES).'</span>'); if ($my_id != 0) { $header .= CKunenaLink::GetMyProfileLink2( $fbConfig, $my_id, isset($fbIcons['profile']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['profile'] . '" border="0" alt="' . _GEN_MYPROFILE . '" title="' . _GEN_MYPROFILE . '"/>' : _GEN_MYPROFILE); }

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
15 years 11 months ago #48428 by MusicInMe
Replied by MusicInMe on topic Re: Menu - tab My Profile
Code:
$header .= CKunenaLink::GetCategoryListLink('<span>'.(isset($fbIcons['home']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['home'] . '" border="0" alt="' . _KUNENA_CATEGORIES . '" title="' . _KUNENA_CATEGORIES . '" />' : _KUNENA_CATEGORIES).'</span>'); function GetMyProfileLink2($fbConfig, $userid, $name, $rel='nofollow') { return CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL.'&amp;func=myprofile', $name, '', $rel); } if ($my_id != 0) { $header .= CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL.'&amp;func=myprofile', $name, '', $rel) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['profile'] . '" border="0" alt="' . _GEN_MYPROFILE . '" title="' . _GEN_MYPROFILE . '"/>' : _GEN_MYPROFILE; }

Doesn't work for me. I'm not PHP guru so it was the only way I could leverage this function.

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

Time to create page: 0.215 seconds