Topic-icon triggers Easysocial

Active Subscriptions:

None
12 years 2 weeks ago - 12 years 2 weeks ago #44260 by ikaelis
triggers Easysocial was created by ikaelis
Hello,

I need to win points on Easysocial when i comment an article with JFBConnect so i have told to Stackideas how to do and here is their response :
"You'll actually need to get in touch with JFBConnect and request them to add this as they need to add the triggers"

I hope you can help me.

Thank you in advance.
Last edit: 12 years 2 weeks ago by ikaelis.
The topic has been locked.
Support Specialist
12 years 2 weeks ago #44263 by alzander
Replied by alzander on topic triggers Easysocial
Can you help explain a bit more about what you are actually trying to do? We'll gladly help answer any questions we can, but from your quick description above, I'm not really certain what you're looking for.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 weeks ago - 12 years 2 weeks ago #44273 by ikaelis
Replied by ikaelis on topic triggers Easysocial
In fact, I use JFBConnect to comment K2's article. I want users can comment articles allways with JFBConnect an win points on easysocial when the post a comment.

Sorry, my english is not very good. I m french...
Last edit: 12 years 2 weeks ago by ikaelis.
The topic has been locked.
Active Subscriptions:

None
12 years 1 week ago #44287 by ikaelis
Replied by ikaelis on topic triggers Easysocial
Up.

Have you understood my explaination ?
The topic has been locked.
Support Specialist
12 years 1 week ago #44293 by alzander
Replied by alzander on topic triggers Easysocial
Yes, I have understood. Please let me investigate this further and I'll get you a solution soon. It may take a day or so though, but we'll post when we have a small code snippet to add to our files.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 1 week ago #44295 by ikaelis
Replied by ikaelis on topic triggers Easysocial
Thank you so much. I hope you will find this quickly :)

Have a nice day
The topic has been locked.
Active Subscriptions:

None
12 years 1 week ago #44396 by ikaelis
Replied by ikaelis on topic triggers Easysocial
Hi Alex,

Have you any news about the small code snippet ?

Have a nice day
The topic has been locked.
Active Subscriptions:

None
12 years 6 days ago #44450 by ikaelis
Replied by ikaelis on topic triggers Easysocial
Up ... :)
The topic has been locked.
Support Specialist
12 years 5 days ago #44465 by alzander
Replied by alzander on topic triggers Easysocial
Sorry for the delay. We're planned to investigate this weekend, but got caught up in some other priorities. I'm hoping to get you an answer tomorrow.

Thanks for your patience,
Alex
The topic has been locked.
Support Specialist
12 years 5 days ago #44509 by alzander
Replied by alzander on topic triggers Easysocial
Alright.. we've done some research and have some steps to take below which should get you going. Please note, we've tested this only very quickly, so you'll need to test a lot more to ensure things work how you want. We're planning deeper integration with multiple point systems in the 6.2 release, later this summer. At that time, we will have a fully tested solution that doesn't need code hacks like below. We'd love any feedback you have on the below.

1) Create the file /plugins/socialprofiles/easysocial/easysocial.points
2) Add the following to the file:
[
    {
        "title"         : "New Facebook Like",
        "alias"         : "facebook-like",
        "description"   : "Earn points when you Like or Share our content.",
        "command"       : "facebook.like",
        "extension"     : "com_jfbconnect",
        "state"         : true,
        "points"        : 5
    },
    {
        "title"         : "New Facebook Comment",
        "alias"         : "facebook-comment",
        "description"   : "Earn points when you Comment our content.",
        "command"       : "facebook.comment",
        "extension"     : "com_jfbconnect",
        "state"         : true,
        "points"        : 5
    }
]
2) In EasySocial admin, go to Points -> Discover
3) Edit the /components/com_jfbconnect/controllers/social.php file. Around line 28, add the following line after the rewardAlphaUserPoints line:
Foundry::points()->assign('facebook.comment', 'com_jfbconnect', JFactory::getUser()->id);
4) Add another similar line around line 57:
Foundry::points()->assign('facebook.like', 'com_jfbconnect', JFactory::getUser()->id);

Again, please test and let us know how that goes. You likely will run into issues, but we'll help however we can.

Thanks,
Alex
The topic has been locked.