By Kevin on Wednesday, 03 May 2017
Posted in Technical Issues
Likes 0
Views 483
Votes 0
I'd like access the feature of mass assigning points to a specific user, but to do so bypassing the back-end upload through the admin interface. If I created the .csv file from a form I present to the user, can I just write that .csv file somewhere where EasySocial will find it and execute the mass assignment? Is there a function I can call from the form?
Hello Eileen,

There is currently no such feature However, if you want, you could refer to the codes in /administrator/components/com_easysocial/controllers/badges.php in the method massAssign and customize this behavior.

It's probably just going to be modifying the codes at line 88,

[gist]
$data = ES::parseCSV($file['tmp_name'], false, false);
[/gist]

You just need to replace it with,

[gist]
$data = ES::parseCSV(PATH_TO_FILE, false, false);
[/gist]
·
Wednesday, 03 May 2017 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
I appreciate your kind nudge
·
Wednesday, 03 May 2017 20:39
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Eileen
·
Wednesday, 03 May 2017 21:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post