×
Kunena 6.0.6 & Kunena 5.2.13 & blue eagle5 1.6.8 released as security release (Yesterday)

The Kunena team has announce the arrival of Kunena 6.0.6 [K 6.0.6] which is now available for download as a native Joomla extension for J! 4.2.x. This is a security release.

Question usernames being displayed instead of Real Name

More
1 year 8 months ago #11 by xreliable

Hello,

I haven't looked at it yet
 
because you hate me?

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

More
1 year 8 months ago - 1 year 8 months ago #12 by xreliable
I don't know if this is the actual fix but I changed as follows and seems to work...:
this:
// return FD::user($user->id)->username;
to this:
return FD::user($user->id)->name;
Last edit: 1 year 8 months ago by xreliable.

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

More
1 year 8 months ago #13 by xillibit
On the file \plg_kunena_easysocial\profile.php, at the replace the existing getprofilename method by this one :
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
1 year 8 months ago #14 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
1 year 8 months ago #15 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
1 year 8 months ago #16 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
1 year 8 months ago #17 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
1 year 8 months ago #18 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.

More
1 year 8 months ago #19 by unigene
Hello,
I have the same issue as xreliable but have Jomsocial instead of easysocial. So it looks as if all integrations are affected?

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

More
1 year 8 months ago #20 by xillibit
Hello,

Yes all integrations which do profile integration are affected, i need to do the same change that i had done for easysocial. Do-you know on jomsocial where is the setting to choose to display username or name ?

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.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.142 seconds