How to get the profile id ???

Hi Friends,

I would like to know how to retrieve the id of the profile that is currently being viewed by a guest or a member.

But I am unable to retrieve the profile id.I tried the following but did not worked -

$iID = $this->_iProfileID;

or

$iID = (int)$_REQUEST['ID'];

Your help would be appreciated.

Thanks

Mick

Quote · 8 Feb 2010

Try,

$iID = getID( $_REQUEST['ID'] );


But it might also help to know where your trying to get that ID. Are you trying to get it from a PHP block placed inside the profile page?

https://www.deanbassett.com
Quote · 8 Feb 2010

Awesome Deanno, you are the man !!!! Worked like a charm and yes I was calling that in the service block for the profile page.

I wish they had an API that described these calls...

Quote · 8 Feb 2010

Nothing is well documented.

The best i have seen is the blog post on how to write a module. And even that does not cover everything you can do with modules.

I would love to see code documentation where every class and function within that class is described in detail on what it is for and examples of usage. Some of the classes have short examples, but not as informative as they could be, and they are spread out in the code itself instead of placed in a single documentation page or wiki. Thus you still have to spend hours, even days hunting through code just to figure something out.

https://www.deanbassett.com
Quote · 8 Feb 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.