Hello everyone.
I have a Joomla 1.5.24 site running CF4 RC2 and Alpha User Points 1.5.13 I am trying to make it so that on submision of a form the user is awarded points. I have read the documentation on how to do this and also read the post on here on how its done but I am not able to make it work. I believe it is because the post was using an older CF build.
Here is what I have done. I made the form and then on the events section I have added a custom event in the onSubmit section in this code I have:
I created and uploaded my xml file and it looks like this:
Now based on everything I have read this should be all thats needed but it fails to work. What am I missing?
I have a Joomla 1.5.24 site running CF4 RC2 and Alpha User Points 1.5.13 I am trying to make it so that on submision of a form the user is awarded points. I have read the documentation on how to do this and also read the post on here on how its done but I am not able to make it work. I believe it is because the post was using an older CF build.
Here is what I have done. I made the form and then on the events section I have added a custom event in the onSubmit section in this code I have:
<?php
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
AlphaUserPointsHelper::newpoints( 'plgaup_survey_submit' );
}
?>
I created and uploaded my xml file and it looks like this:
<?xml version="1.0" encoding="utf-8"?>
<alphauserpoints type="plugin">
<rule>Submit a Survey</rule>
<description>Points Assigned for submitting a Survey</description>
<component>com_chronoforms</component>
<plugin_function>plgaup_survey_submit</plugin_function>
<fixed_points>true</fixed_points>
</alphauserpoints>
Now based on everything I have read this should be all thats needed but it fails to work. What am I missing?
Hi Webmosa ,
This looks OK to me - at least the ChronoForms specific parts look correct. I wrote this code I think - a long time ago and I don't recall clearly how it worked. I suggest you add some debug lines to output the data at various stages to see exactly what is happening.
Bob
This looks OK to me - at least the ChronoForms specific parts look correct. I wrote this code I think - a long time ago and I don't recall clearly how it worked. I suggest you add some debug lines to output the data at various stages to see exactly what is happening.
Bob
I am not to familiar with debugging and chronoforums/joomla/useralphapounts can you point me in the right direction please
This topic is locked and no more replies can be posted.