Anyone using Alpha User Points with ChronoForms?

ya yaksushi 22 Nov, 2010
I've created a few forms that submit locations to phoca maps. I would like to assign points to this action using alphauserpoints. Has anyone used this points system with chronoforms, and if so offer some advice on how to integrate with my forms. Thanks! 😀
Gr GreyHead 22 Nov, 2010
Hi yaksushi,

I did this for a client a year or so ago. As far as I recall we just added code snippets to the OnSubmit After code follwing the API guidelines here.

Bob
ya yaksushi 23 Nov, 2010
Ok looked them over got my xml created but I don't think I have the code in chronoforms correctly. this is in my on submit

<?php
$size =& JRequest::getInt('text_14', '', 'post');
$fish =& JRequest::getVar('check0', 'post');
$parking =& JRequest::getString('select_16','post');
$launch =& JRequest::getString('select_17','post');
$cart =& JRequest::getString('select_18','post');
$camp =& JRequest::getString('select_19','post');
$difficulty =& JRequest::getString('select_20','post');
$info =& JRequest::getString('text_18', '', 'post');
$name =& JRequest::getString('username', '', 'post');
$marker = "<strong>Size:</strong>".$size."<br />"."<strong>Target Fish: </strong>".$fish."<br />"."<strong>Parking: </strong>".$parking."<br />"."<strong>Launch Fees: </strong>".$launch."<br />"."<strong>Kayak Cart Needed: </strong>".$cart."<br />"."<strong>Camping Available: </strong>".$camp."<br />"."<strong>Difficulty: </strong>".$difficulty."<br />"."<strong>Info: </strong>".$info."<br />"."<strong>Submitted By: </strong>".$name."<br />";
JRequest::setVar('description', $marker);
?>
<?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_submit_fishing_location' );
}
?>


it doesn't error out but doesn't work either.😢
This topic is locked and no more replies can be posted.