user messageboard posts with other user's usernames

Hello,

I'm running elgg 1.5 on hostgator. I tested this with 2 different installations and the bug is there.

 

When I go to some user's profile and post something on their profile messageboard it appears as if it's posted by the profile owner's username! e.g John goes to Alice and posts on her messageboard and the message appears as if Alice posted on her own messageboard. Even on the riverdashboard it says Alice posted on her own messageboard.

That's some serious bug - it's very annoying for the users. 

Does anyone have a workaround?

  • You running php as CGI. Technically, this is not supported but it seems that 99% of Elgg works with it anyway.

    Try this and then report back:

    1. edit /mod/messageboard/ajax_endpoint/load.php

    2. line 29 should be: if ($user->annotate('messageboard',$message,$user->access_id, $_SESSION['user']->getGUID())) {

    3. change this to

    if ($user->annotate('messageboard',$message,$user->access_id, $_SESSION['guid'])) {

  • Thanks Cash, your issue works great !! I had this problem, i fix it but now i have another problem in the river : the two usernames are the same ! How can i fix it? thanks ;)

    image

  • line 46 change the

    add_to_river('river/object/messageboard/create','messageboard',$_SESSION['user']->guid,$user->guid);

    TO  

    add_to_river('river/object/messageboard/create','messageboard',$_SESSION['guid'],$user->guid);

    seems to work. Please report back.

     

  • hi Panosher,

    Messageboard issue has solved but the coments of same user posting on his own messageboard appreading at dashboard remains any suggestions please!!!

  • worked now thanks a lot for this solution buddy!!!