By Krzysztof on Tuesday, 01 December 2015
Posted in Technical Issues
Replies 11
Likes 0
Views 485
Votes 0
Hi,

I have two issues with K2 integration that I can't solve on my own. I would be grateful if you could help me.

1. K2 Easysocial plugin should replace K2 profiles with Easysocial profiles (I enclose print screen with configuration of the plugin). I searched the forum, but I can't find the solution that would work. Could you please help me?

2. K2 Easysocial app posts to activity stream that new K2 article was created, when it is saved for the first time, even despite the fact that it isn't published. After clicking such a link it leads to server 500 error. As I believe, this app should post to the activity stream when the K2 article is published for the first time, not saved for the first time. Could you please help me fix this as well?

Thanks in advance,
Krzysztof
Hello Krzysztof,

I've tried to access your backend but failed: Nie masz praw dostępu do zaplecza witryny. Please advise. As for the stream issue, please replace the attached file in: ../plugins/k2/easysocial/easysocial.php and see how it goes.
·
Tuesday, 01 December 2015 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nick,

Thanks for the quick reply. The access to the site should work now. When it comes to the stream issues, after file replacement I can't see any k2 posts to the activity stream, while publishing item (for example "k2 test item").

Best wishes,
Krzysztof
·
Tuesday, 01 December 2015 16:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Krzysztof,

I've fixed it for you. Please verify this.
·
Tuesday, 01 December 2015 16:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

we are almost there. It works perfectly when saving item for the first time as a published item. When you saved item for the first time as an unpublished and you publish it later, no activity stream post is generated (It would be great, if we can find a solution, because most of the posts are submitted by a group of users and need to be revised by the editor before publication).


The other case is that I still cannot solve on my own the first question from my first post (about replacing profiles). Maybe you have any clues?

Thx in advance,
Krzysztof
·
Tuesday, 01 December 2015 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Krzysztof,

The scenario where you edit the item and publish it is considered as update. Which means you have to enable this setting in K2 app: http://screencast.com/t/hNUzjDG1m I've enabled it for you. Please verify this.

1. K2 Easysocial plugin should replace K2 profiles with Easysocial profiles (I enclose print screen with configuration of the plugin). I searched the forum, but I can't find the solution that would work. Could you please help me?
- I've checked your K2 item and seems like the avatar and link is using Easysocial's. Am I missing anything?
·
Wednesday, 02 December 2015 10:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

1. For some users yes, like here:
http://eosielsko.pl/wiadomosci/1024-na-jakiej-podstawie-taro-zada-od-mieszkancow-wymiany-pojemnikow

but for some no, see here:
http://eosielsko.pl/styl/1016-gdzie-zamowic-ryby-albo-swiezo-robione-potrawy-swiateczne

2. Okay, I got it. Thak you for ezplanation. Taking into consideration functionality I think it would be the great, if the plugin had the option of streaming activity "publish" (what means, update with the status published for the first time). Please takie it as a development suggestion.

Best regards,
Krzysztof
·
Friday, 04 December 2015 06:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've debug through K2 item file (../components/com_k2/views/item/view.html.php) and seems like the plugin is triggered well and has changed the $item->author->link to use the Easysocial's URL but once it comes to this line: http://screencast.com/t/365KqgDG , it has changed back to use K2 URL. You can uncomment my debug code to see the issue. Since this is from K2 file, I would advise you to consult K2 developer as they have better knowledge in this. Let me know if they need help from our side.
·
Friday, 04 December 2015 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

no. 2 still seems to be unsolved. I turned "off" posting when creating items and "on" when editing items. Now when already created, but still not published item is edited and saved, the k2 app is posting to activity stream.
After clicking such a link it leads to server 500 error (see "unpulished item" at the top of the stream on http://eosielsko.pl/community )

I think this plugin should post only, if the k2 item is already published. Could you please help me with that?

Thx in advance,
Krzysztof
·
Friday, 11 December 2015 06:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Krzysztof,

I have applied some fixes in the plugin file /plugins/k2/easysocial/easysocial.php . Can you give this a try again? When updating the post on K2, it should actually check if the state of the item if it is published before sending it into EasySocial's stream.
·
Friday, 11 December 2015 19:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Mark -

I have the same need (namely, that K2 items post to stream only once item has been published by admin, but publishing under name of author). Can I get access to the same fix? It's a great one to add to future versions, by the way...

I don't want to hijack the string but I am also having issues making the K2 image appear in the EasySocial activity stream, & making the K2 app appear in my menu of apps &/or stream filters. Let me know if you'd like me to open a separate ticket for that.

Thanks,
Cheryl
·
Sunday, 21 February 2016 07:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Cheryl,

Can you download the attached file and upload this into /plugins/k2/easysocial/ ? This should do the trick.
·
Sunday, 21 February 2016 14:39
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post