Need expert help :)

I just installed the facebook invite modul where my members can invite their friends through facebook.

My problem is that everyone need a invite to enter my site. My site url (only, without referrense) redirects to a "you need an invite" site.

And of course, when people invite people, using this new fb invite, the "accept invite" links to my site url: which again redirects to the "you need an invite site".

So my question is. How can i change my site url in the facebook invite to be dynamic and insert the "personal" invite link instead of just the site url.

Today it looks like this:

//------------------------------------------------------lets Invite  some  friends-----------------------------------------------------------------//

$myc alt= new BxFaceBookConnectConfig($aModule);

$setinterval = $myconfig->ifrienddisplaycount;

$day = '184000';

$interval = (($setinterval * $day) + time());

setcookie("friend","set", $interval, "/");

global $base_url;

$base_url  =  $myconfig->swebsitenamefull;

$site      =  $myconfig->swebsitename;

$acti alt= 'Please select the Facebook Friends you want to invite';

$action    =  $myconfig->swebsitenamefull;

$type      =  $myconfig->swebsitename;

$content   = '  <fb:req-choice url=\''. $base_url .'\' label=\'Become a Member!\' />';

Hope you understand my question and that someone are able to help.

Best regards

Morten

Quote · 23 Jun 2010

anyone?

Quote · 23 Jun 2010

Looks like you have to find the swebsitenamefull function inside the class that is set by the $myconfig variable.

When you find this function which is inside the class you need to find,  edit what the function returns to get it to output what you want.

It's pretty simple but you'll need to know some php to get it working right.

sup
Quote · 23 Jun 2010

Looks like you have to find the swebsitenamefull function inside the class that is set by the $myconfig variable.

When you find this function which is inside the class you need to find,  edit what the function returns to get it to output what you want.

It's pretty simple but you'll need to know some php to get it working right.

Thanks Martin :) I dont find the class where the $myconfig variable is set. Do i find this within the facebook invite modul or the invite referrence modul? Or somewhere else?

This is very important to me :) So hope someone can help me with this :)

Best regards

Morten

Quote · 24 Jun 2010

Looks like you have to find the swebsitenamefull function inside the class that is set by the $myconfig variable.

When you find this function which is inside the class you need to find,  edit what the function returns to get it to output what you want.

It's pretty simple but you'll need to know some php to get it working right.

Thanks Martin :) I dont find the class where the $myconfig variable is set. Do i find this within the facebook invite modul or the invite referrence modul? Or somewhere else?

This is very important to me :) So hope someone can help me with this :)

Best regards

Morten

Anyone?

Quote · 24 Jun 2010

anyone?

Quote · 25 Jun 2010

In the code snippet that you pasted, find :

$base_url  =  $myconfig->swebsitenamefull;

Just below, Add :

$base_url  .= '?idFriend='. $_COOKIE['memberID'];

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 26 Jun 2010

In the code snippet that you pasted, find :

$base_url  =  $myconfig->swebsitenamefull;

Just below, Add :

$base_url  .= '?idFriend='. $_COOKIE['memberID'];

Thanks mate :) I really appreciate your help!

But with this fix the members are now routed to www.watig.com/memberID (and with me as admin thats www.watig.com/admin).

While the url i want them to be routed to is www.watig.com/m/mlm/join?code=admin

that maybe http://www.watig.com/m/mlm/join?code=memberID  ?!?! but how do I do this??

Hope you can help me with this as well :)

Thank you so much for answers so far!

Best regards

Morten

Quote · 10 Jul 2010

Anyone?

Please :)

Quote · 10 Jul 2010

Anyone?

Please :)

Now i got it to say, www.watig.com/m/mlm/join?code=

But im now missing the Idfriend or members id behind the =

Anyone know what to do? please help :)

Quote · 10 Jul 2010

Anyone?

Please :)

Now i got it to say, www.watig.com/m/mlm/join?code=

But im now missing the Idfriend or members id behind the =

Anyone know what to do? please help :)

When i instert /memberID after =

i get directed to /memberID35 for some reason.

How do i get it to say the url. in my example /admin

Quote · 10 Jul 2010

Have you tried $base_url  =  'http://www.watig.com/m/mlm/join?code=' . $_COOKIE['memberID'];

But really, your begging for help, but the only ones that will be able to help you will be those that happen to have that mod, and are also coders(Which will be rare) or the developer of the mod.

https://www.deanbassett.com
Quote · 10 Jul 2010

Have you tried $base_url  =  'http://www.watig.com/m/mlm/join?code=' . $_COOKIE['memberID'];

But really, your begging for help, but the only ones that will be able to help you will be those that happen to have that mod, and are also coders(Which will be rare) or the developer of the mod.

This is what it looks like today:

$base_url  =  $myconfig->swebsitenamefull;

$base_url  .= '/m/mlm/join?code=memberID'. $_COOKIE['memberID'];

But it redirects me to www.watig.com/m/mlm/join?code=memberID35

instead of: www.watig.com/m/mlm/join?code=admin

I don't know where the memberID35 comes from?

When i login to my or my friends profiles its www.watig.com/admin or www.watig.com/morten or www.watig.com/mari

As you can se there is no www.watig.com/member1 watig.com/memberID35 or urls like that.

If someone knows FTP they may know how to get the last part of the url instead of "member35".

This is the last step and i have been working on it for weeks, so if someone know how to fix this. Please pretty please help me :)

Best regards

Morten

Quote · 10 Jul 2010

Have you tried $base_url  =  'http://www.watig.com/m/mlm/join?code=' . $_COOKIE['memberID'];

But really, your begging for help, but the only ones that will be able to help you will be those that happen to have that mod, and are also coders(Which will be rare) or the developer of the mod.

This is what it looks like today:

$base_url  =  $myconfig->swebsitenamefull;

$base_url  .= '/m/mlm/join?code=memberID'. $_COOKIE['memberID'];

But it redirects me to www.watig.com/m/mlm/join?code=memberID35

instead of: www.watig.com/m/mlm/join?code=admin

I don't know where the memberID35 comes from?

When i login to my or my friends profiles its www.watig.com/admin or www.watig.com/morten or www.watig.com/mari

As you can se there is no www.watig.com/member1 watig.com/memberID35 or urls like that.

If someone knows FTP they may know how to get the last part of the url instead of "member35".

This is the last step and i have been working on it for weeks, so if someone know how to fix this. Please pretty please help me :)

Best regards

Morten

$base_url  .= '/m/mlm/join?code=memberID'. $_COOKIE['memberID'];

Take out the memberID so it looks like this.

$base_url  .= '/m/mlm/join?code='. $_COOKIE['memberID'];

https://www.deanbassett.com
Quote · 10 Jul 2010

You actually have me lost on what your trying to do.

If you want it to say this. www.watig.com/m/mlm/join?code=admin then set it that way.

$base_url  .= '/m/mlm/join?code=admin';

https://www.deanbassett.com
Quote · 10 Jul 2010

The MLM modul invite looks like this:

/**

* Implementation of the 'referral url' action.

*/

function actionJoin () {

$destinati alt= BX_DOL_URL_ROOT . '';

$code = isset($_GET['code']) ? $_GET['code'] : '';

if ($code) {

$referrerId = $this->validateCode($code);

if ($referrerId) {

$cookie = $this->generateCookie($code, $referrerId);

setcookie($this->cookieName, $cookie, 0, '/');

}

}

header('Location: ' . $destination);

}

/**

*

*/

function userJoined($userId)

{

if ($_COOKIE && isset($_COOKIE[$this->cookieName])) {

$referrerId = $this->validateCookie($_COOKIE[$this->cookieName]);

if ($referrerId) {

if ($referrerId != $userId) {

// is it an active profile?

if (getProfileInfo($referrerId, true)) {

$this->addLink($userId, $referrerId);

}

}

}

// clear the cookie:

setcookie($this->cookieName, '', time() - 2592000, '/');

}

}

function addLink($iUserId, $iReferrerId)

{

$higherLevelIds =

$this->_oDb->getReferringUsersIds($iReferrerId,

$this->maxDistance - 1);

// get people the Referrer is linked to, and establish a distance+1

// relationship between them and the new member

foreach ($higherLevelIds as $id => $distance) {

$this->_oDb->addLink($iUserId, $id, $distance+1);

}

// now the direct link between the new user and his referrer:

$this->_oDb->addLink($iUserId, $iReferrerId, 1);

Quote · 10 Jul 2010

You actually have me lost on what your trying to do.

If you want it to say this. www.watig.com/m/mlm/join?code=admin then set it that way.

$base_url  .= '/m/mlm/join?code=admin';

I want it to say admin when I invite someone, but if one of my members invite i want it to say "their username".

If i leave it open, nothing gets filled in.

Quote · 10 Jul 2010

When i login to my or my friends profiles its www.watig.com/admin or www.watig.com/morten or www.watig.com/mari

Oh i think i get what you want now.

Try This.

$base_url  = '/m/mlm/join?code=' . getNickName();

https://www.deanbassett.com
Quote · 10 Jul 2010

When i login to my or my friends profiles its www.watig.com/admin or www.watig.com/morten or www.watig.com/mari

Oh i think i get what you want now.

Try This.

$base_url  = '/m/mlm/join?code=' . getNickName();

Close, at least i got redirected to a site where i could login. but this is the url that comes up when addin this:

http://apps.facebook.com/watigff//m/mlm/join?code=MortenSæthre✫&_fb_fromhash=a93e92c6db0ffb42edbd526ea4cf1300

im trying to invite from my other profile and the code im looking for is: /m/mlm/join?code=MortenSathre

Is there anything els i can do?

Quote · 10 Jul 2010

I may have missed the .

You have two lines. Verify they look like this.

$base_url  =  $myconfig->swebsitenamefull;
$base_url  .= '/m/mlm/join?code=' . getNickName();

https://www.deanbassett.com
Quote · 10 Jul 2010

I may have missed the .

You have to lines. Verify they look like this.

$base_url  =  $myconfig->swebsitenamefull;
$base_url  .= '/m/mlm/join?code=' . getNickName();

Thanks a million mate!

This really did it :))))))))))))))))

Left u a feedback ;)

Best regards

Morten

Quote · 10 Jul 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.