By André Eidskrem on Wednesday, 21 September 2016
Posted in Technical Issues
Likes 0
Views 362
Votes 0
Hi!

We have integrated easydiscuss with jomsocial and are having this problem.
When a user click "like" on a new post in the forum, it shows up like this in the jomsocial activity stream "Bob Smith likes the discussion ..." with three dots instead of the post title. There is a link on the three dots, but this link is completely wrong and leads to a 404 error page.

When I turn off "Search Engine Friendly URLs" on the site, I see that the link on the three dots is this:
/index.php?option=com_easydiscuss&view=post&id=&Itemid=198
when it should be this:
/index.php?option=com_easydiscuss&view=post&id=515&Itemid=198
so the post id number is missing.

Another strange thing is that when we make a reply to the post, and click "like" on the reply, is shows up in the activety stream "correctly" the way the "like" on the original post should have looked
Like this: "Bob Smith likes the discussion testing" with the correct link to the post.
When infact from looking at the language file this activity should be "Bob Smith likes a reply in discussion testing"

I have tried this on two different installations, and the same thing happens.
Hi there,

I've fix this issue in your site in the files:
JOOMLA_FOLDER\administrator\components\com_easydiscuss\includes\jomsocial\jomsocial.php
Please have a looks http://screencast.com/t/44uaNqhzv7X
·
Wednesday, 21 September 2016 17:31
·
0 Likes
·
0 Votes
·
0 Comments
·
That's great Muhammad, thanks!
So if I copy the jomsocial.php file that you have fixed, and use this on our intranet where we have the same setup, that should fix it there too right?
·
Wednesday, 21 September 2016 17:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, you're correct André Eidskrem

p/s: you're suggested to backup file that you want to replace beforehand just for precaution
·
Wednesday, 21 September 2016 17:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi again!
There is still a problem...
I liked a post, and then wrote a comment under this like-notification in jomsocial.
Then, when I posted a new post, and clicked "like" on this, the same comment automatically also show up under this notification in jomsocial... And one of the comments looks funny with regards to a smiley I used in the comment.
Have a look
(The same happens in our intranet, and I've tried clearing the cache both in joomla and browser)
·
Wednesday, 21 September 2016 18:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi André Eidskrem,

I'm don't quite understand you here. Correct me if I'm wrong, do you mean when you've comment in a post using a smiley the notification will looks strange? Can you provide us some steps how to replicate this and some screenshot for this might be helps
·
Wednesday, 21 September 2016 20:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Just go to /community on the page, and look at the posts there.
A user, Bjorn, has liked two different posts. Under each of them the same comment shows up "Never mind this post, just testing something "
This comment was just made to the first post, but when we click like on a new post in easydiscuss the comment fshows up also on this post... Also under one of the activity streams the comment looks normal, showing a smiley face in stead of the , on an other it looks like this "Never mind this post, just testing something <i class="joms-icon-smiley2 joms-status-emoticon"></i>"
·
Wednesday, 21 September 2016 20:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi André Eidskrem,

Did you comment it in the Jomsocial stream?If yes, it is better you to consult this with Jomsocial developers, because Jomsocial component is not develops by us
·
Thursday, 22 September 2016 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi!
Can you try this: on our site, create a new post/question in easydiscuss and then click "like" on this.
Take a look at how this "like notification" looks on the joomsocial wall. Right away it has comments attached to it that has been made previous, and that has nothing to do with this post.
·
Thursday, 22 September 2016 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Andre,

Can you try download my attached file and replace into same file location JoomlaFolder\administrator\components\com_easydiscuss\includes\jomsocial\jomsocial.php then try like the new reply or question.

And I will explain about the behaviour here :

1. First when you like one of the reply or question on forums, it will generate a stream in Jomsocial wall.
2. If you comment on this stream and unlike just now that reply from forums and like it again.
3. It will regenerate a new stream regarding this action in Jomsocial wall, and the previous comment will belong to this new stream as well.
4. If you like another reply or question, the previous comment will not show on your new stream now. (This is a bug in current version, and I already attached the fix file in this reply)

The reason why click unlike and like again with the same reply, these comment will appear on the new generated stream is because we unable to retrieve the Jomsocial activity id is because when we pass in the data to Jomsocial, Jomsocial only start to store in the database then the stream id only exist.
·
Thursday, 22 September 2016 19:33
·
0 Likes
·
0 Votes
·
0 Comments
·
That seems to have done the trick!
Thank you!
·
Thursday, 22 September 2016 19:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 22 September 2016 22:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post