How can I get members ID?

Hi,

 

I want to insert on "My account", for each profile, a new HTML or PHP block with basically this:

 

To invite your friends, give them your invitation link:
www.website.com/?idFriend=<CODE>

 

And where I inserted the tag "<CODE>" I want to know what's the code that I should use for the system puts it there automatically.

 

Thanks.

 

Best regards,

Pedro Lima

Quote · 24 Mar 2011

Maybe you need this: http://www.boonex.com/unity/extensions/entry/Ultimate_Referrals

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 24 Mar 2011

 

Maybe you need this: http://www.boonex.com/unity/extensions/entry/Ultimate_Referrals

 

Thank you, but I only need to know whats the code so that the system can insert there automatically the user ID number and that's it!

 

It should be something simple but I don't know which code gives me that. Someone familiar with Dolphin will easily know this answer. :)

Quote · 24 Mar 2011

Someone that did the referrals software knows the answer to this question.

 

Can someone, please, just tell me what's the code used for that so I can use it? Thanks.

Quote · 28 Mar 2011

From my site upgrade text file....

Just like most other problems with Dolphin, all these questions have been asked and answered repeatedly the last 3 or so years. Do a search before you ask and you will probably find an answer.....

I am sure the following will get you headed down the right path..

I was searching the forum and found a solution provided by modzzz :

 

Here is a simple solution to display the Member ID beside the Nickname in the members section in admin (all three views).

In the following files :

administration/templates/base/mp_members_simple.html
administration/templates/base/mp_members_extended.html
administration/templates/base/mp_members_geeky.html

Find :

__username__

Replace with 

__username__ (__id__)
http://towtalk.net ... Hosted by Zarconia.net!
Quote · 28 Mar 2011

When I need to find a variable, I usually do one of three things.

1) Use a php block to loop through variables using either $_REQUEST or $_COOKIE such as

foreach($_REQUEST as $key=>$val) {

echo $key . ": " . $val . "<br/>";

}

 

2)  Or I use the command      get_defined_vars();   to find out some variables that are available

Once I find what the variable key is, I then can assign it and/or append it to the URL like you are wanting.

 

3)  Or...depending on the page that I'm on, I'll go into the Dolphin Classes and use the native Dolphin class variables.  For example, if I'm doing something on the profile page, I will probably look into the templates/base/scripts/BxBaseProfileView.php file and look for something like $this->_iProfileID (I'm not sure if this is the var but it will be something like that.  I would this assign this to my own variable ....such as $myprofileid = $this->_iProfileID;

I would then append to the URL like your want...such as www.website.com/?idFriend=<?php echo $myprofileid; ?>

 

I was moving kinda' fast because I was just breezing through and saw your question.  I hope this helps you in some way.

Quote · 28 Mar 2011
 
 
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.