haidinh wrote: Hi Krileon,
I contacted the Alpha User Point developer to ask for the API but he seems to be very at the moment.
He just sent me a document on API. I myself tried several ways but not succeed yet. Can you do me a favor to look over the document and try to help me to write the API for adding points. Please help me as I do not know about coding but it will be very easy for you. Maybe your codes does not exactly but it will give me some suggestion to do it myself.
I know that I will use following API:
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
AlphaUserPointsHelper::newpoints( 'function_name' );
}
But it still miss some code and number of points to be given, for example 5 points.
Please do me a favor, Krileon.
Thank you and regards,
Hai
haidinh wrote: Thank you Nick
Please try to help me as I do not know anything about coding and already tried my best.
Yours sincerely,
Hai