$inviteContentUrl = $params->get('invite_content_url', ''); // This line is already there.
$aupReferralUrl = HOWEVER AUP SAYS TO GET THE URL;
if ($aupRefferalUrl != "") // check that it's not blank
$inviteContentUrl = $aupReferralUrl; // Set the invite URL to the AUP one
require_once (JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php');
require_once (JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helpers'.DS.'helpers.php');
$user = & JFactory::getUser(); //get current user
$referrerid = AlphaUserPointsHelper::getAnyUserReferreID($user->id); //get current user's AUP referral ID
$referrer_link = getLinkToInvite($referrerid, 'cb'); //create link. I'm using Community Builder, 'cb' is hardcoded (bad, bad programmer!)
if($referrer_link)
{
$postInviteActionUrl = $referrer_link;
}
else
{
$postInviteActionUrl = $params->get('post_invite_action_url', '');
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.