By Ashley Rosenthal on Monday, 06 January 2014
Posted in General
Replies 3
Likes 0
Views 687
Votes 0
I am in the process of creating new points for easysocial users. I've attached a screen shot of where I'm working right now. I have users listing if they attended college or graduate school on their registration page. If I have the unique keys for each of these boxes they're filling in, is there a way to assign the "action string" to a text box in the registration? See attachment please. Thank you!
Hello Ashley,

Sorry but I don't really get what you are trying to achieve here. What does points have to do with the field?
·
Monday, 06 January 2014 11:14
·
0 Likes
·
0 Votes
·
0 Comments
·
For example, during registration my users enter in if they have a college degree-- if they enter something down for a college degree, I would like them to earn a point for that. But this file says that I need to have an "action string" for what the action is that would earn them points. I'm not sure what the action string would be for this.
·
Monday, 06 January 2014 11:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashley,

To assign points based on an action, you need to first create the ".point" file and run a rule discovery so that EasySocial is aware of such new rules. You can learn more about creating the rule here, http://docs.stackideas.com/developers/points/rule_file .

Once the rule is created and discovered, you then need to add your logics which is already explained at http://docs.stackideas.com/developers/points/logging . In your case, you might need to hack the custom field file so that when the user saves his profile, the following logic is triggered. This ensures that when the user save their profile, it generates a new point for them:

Sample code

require_once( JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php' );

// @points: photos.upload
Foundry::points()->assign( 'textbook.create' , 'com_easysocial' , $userId );
·
Monday, 06 January 2014 12:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post