[...]
$registerType = $params->get('register_type');
if ($registerType == "jomsocial")
{
[...]
}
else if ($registerType == "communitybuilder")
{
//CHANGES BEGIN
$aup_referrer_id = JRequest::getVar('referrer'); //get referrer_id from url (something like 'AUPRR-4D0794F39B3C3')
if($aup_referrer_id)
{
$registerLink = JRoute::_("index.php?option=com_comprofiler&task=registers&referrer=$aup_referrer_id", false); //create CB registration link that includes the referrer_id
$forgotLink = JRoute::_("index.php?option=com_comprofiler&task=lostPassword");
}
else
{
$registerLink = JRoute::_("index.php?option=com_comprofiler&task=registers", false); //no referrer_id? no problem: use regular registration link.
$forgotLink = JRoute::_("index.php?option=com_comprofiler&task=lostPassword");
}
//CHANGES END
}
else
{
[...]
}
// common for J! and JomSocial
[...]
fb_1660790489 wrote: Hi !
Long Time no see !
I resolve that problem is best to write invite module for him self !
After 12 hours of writhing I build facebook multi friend selctor for him self in aup invitation tmpl .Just put were you want in aup with facebook/php-sdk.
<?php
// Get these from http://developers.facebook.com
$api_key = 'YYYYYYYYY';
$secret = 'XXXXXXXXXX';
require 'src/facebook.php';
$facebook = new Facebook($api_key, $secret);
?>
<center>
<fb:serverFbml width="680px">
<script type="text/fbml">
<fb:fbml>
<fb:request-form method="GET" type="Page" invite="true"
action="http://apps.facebook.com/casinosahre/<?php echo $this->referreid; ?>"
content="Become a fan of Objective-C!<fb:req-choice url='http://apps.facebook.com/casinosahre/<?php echo $this->referreid; ?>' ' label='GO' /> ">
<fb:multi-friend-selector actiontext="Tell your friends about Objective-C" rows="4" cols="3" max="35"/>
</fb:request-form>
</fb:fbml>
</script>
</fb:serverFbml></center>
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.