By Keith Colleluori on Thursday, 14 May 2015
Posted in General Issues
Replies 1
Likes 0
Views 454
Votes 0
I am curious what files are involved in easyblog points integration with jomsocial... id like experiment with it but dont want to bother unless i get an idea of all the relevant files first!!
Hi Keith,

Here are the files that trigger the Easyblog integration with Jomsocial point.

-> Joomla root folder\administrator\components\com_easyblog\tables\blogs.php
-> joomla folder\components\com_easyblog\jomsocial_rule.xml

Regarding the jomsocial_rule.xml, this file is store all the Easyblog point rule with Jomsocial.

Example : EasyBlog Write new blog rule file

<action_string>com_easyblog.blog.add</action_string>


So this action string will trigger when the user published a new blog post, after that the user will get a point.


//Joomla root folder\administrator\components\com_easyblog\tables\blogs.php
//902 until 910
if( $config->get( 'main_jomsocial_userpoint' ) )
{
$path = JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_community' . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR . 'userpoints.php';
if( JFile::exists( $path ) )
{
require_once( $path );
CUserPoints::assignPoint( 'com_easyblog.blog.add' , $this->created_by );
}
}


Hope this help.

Best regard
Chris
·
Thursday, 14 May 2015 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post