Member ID

Hi

I am trying to make an anchor to a point on the page on the members profile info page so the page scrolls down to say videos, photos, ect but  Ican't retrieve the member ID (high lighted below).

 

http://mysite.com/profile.php?ID=2


I can get the NickName like this.......


$profileID = getID($_GET['ID']);

$aProfile = getProfileInfo($this->oProfileGen->_iProfileID);

 

$sNickName = $aProfile['NickName'];

 

but the ID eludes me. I tried

 

 $sprofileID = $aProfile['ID'];

but that doesn't work. Has anyone any ideas to help me achieve the ID in a link sort of line the one below?

 

a href="profile_info.php?ID=$sprofileID"

Quote · 20 Sep 2015

You can get logged in member ID using $_COOKIE['memberID'];

 

a href="profile_info.php?ID=<?php echo $_COOKIE['memberID'];?>"

Quote · 20 Sep 2015

It doesn't recognise it as a link for some reason.

Quote · 20 Sep 2015

Where are you using this?
In a php/html file or somewhere else? 

Quote · 20 Sep 2015

If you try this in a php/html file which should be inside dolphin directory and if a member is logged into dolphin site then you will surely see the ID. 

 

<?php echo $_COOKIE['memberID'];?> 

 

a href="profile_info.php?ID=<?php echo $_COOKIE['memberID'];?>"

Quote · 20 Sep 2015

php block. I fiddled around with it and came up with this...

 

$profileID = getID($_GET['ID']);

$aUserData = getProfileInfo($profileID);

echo $sprofileID;

 

<a href="profile_info.php?ID={$profileID}">

 

and this worked for me. Thanks for pointing me in the right direction :)

Quote · 20 Sep 2015
 
 
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.