Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2

The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).

Question usernames being displayed instead of Real Name

More
5 years 7 months ago #216395 by xillibit
On the file \plg_kunena_easysocial\profile.php, at the replace the existing getprofilename method by this one :
Code:
public function getProfileName($user, $visitorname = '', $escape = true)     {         $config  = ES::config();        $displayusername =  $config->get('users.displayName');                 if ( $displayusername == 'username')        {            return FD::user($user->id)->username;        }        else        {            return FD::user($user->id)->name;        }                      }

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: xreliable

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

More
5 years 7 months ago #216398 by xreliable
thank you but in case this is affecting anyone else and for when you fix the plugin, this doesn't work. I get:
Rendering Error in layout Widget/MenuBar: Class 'KunenaProfileEasySocial' not found.
Rendering Error in layout Topic/Item/Message: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST).

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

More
5 years 7 months ago #216414 by xillibit
The change is here in github : github.com/Kunena/Kunena-Forum/commit/70...3bc3e25249b7881048d4

At which place do-you have this error ?

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
5 years 7 months ago #216461 by xreliable
any kunena forum page the formatting of the site becomes hosed and these error show.

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

More
5 years 7 months ago #216462 by xillibit
I have checked on my test site, all the Kunena pages but i don't see these errors. Do-you have a test site to allow me to look at it ?

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
5 years 7 months ago #216488 by xreliable

I have checked on my test site, all the Kunena pages but i don't see these errors. Do-you have a test site to allow me to look at it ?
 
This is on a live site.  I fell back to my fix because it was working without error.  I'll try your fix again on your next release and if necessary I'll setup a test site. 
 

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

Time to create page: 0.135 seconds