Get to profile ID on profile page for phpblock

I'm using a phpblock on the profile page (/someuser) and I'm having a hard time getting the member ID of the member being displayed, so that I can look up their profile info and display it in the php block.  I've tried $profileID, and _GET("ID") but these seem out of scope.  How can I get the member ID (not the ID of the currently logged in user)?

pm

Quote · 9 Apr 2012

give this a try

bx_get('id');

Good luck

so much to do....
Quote · 9 Apr 2012

profile.php has the code that does this.

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

So. $profileID should have worked for you if the block is on the profile page. I had no problems during my tests.

https://www.deanbassett.com
Quote · 9 Apr 2012

wait a second you can only get id of the viewed profile if a profile page page it being viewed.

so $profileID should work.

so much to do....
Quote · 9 Apr 2012

this also returns the id of profile being viewed

$this->oProfileGen->_iProfileID

so much to do....
Quote · 9 Apr 2012

Thanks,

 That did it.

Quote · 13 Apr 2012
 
 
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.