Getting a profileID

I have code blocks and this: array($this->oProfileGen->_iProfileID works in some places to get the current ProfileID but not in others.

 

As an example. When looking at a persons profile I can get the persons profileID on the Info (Profile info) page but if I go to the Photo's page (Photos Profiles Albums) for the same profile it does not return that persons profileID.

 

What should I be using?

 

Cust.

Quote · 18 Aug 2016

Scrub the "array(" bit from the front ... or put a ")" on the end.... I'm sure you know what I mean. :)

Quote · 18 Aug 2016

Also, not all functions are available on all pages.  Just do a search on the forum and you should find several posts on getting member IDs and other information.

Geeks, making the world a better place
Quote · 18 Aug 2016

Did that before I posted the question. No joy I'm afraid.

Quote · 18 Aug 2016

Use google or bing; works better than internal search.

 

If it hasn't changed in the newer versions; the below are cut and paste from some searches I did.

 

The member id of the member currently logged in can be pulled from the cookie.

$memID = $_COOKIE['memberID'];


The members nickname can be obtained by passing the member id to the dolphin function getNickName $nick = getNickName($memID);

 

The function getLoggedId() will also return the ID of a member logged in. It's like pulling it from the cookie.

There is also getIdByNickname($nickname) which returns the member id of the passed nickname.

Also be aware that some of these function calls will not work on every page. It all depends on what php classes are included on that page.

So you really should be looking at the php classes for dolphin located in the inc and inc\classes folders. This is where you will find all this stuff.

 

Geeks, making the world a better place
Quote · 18 Aug 2016

Getting the member who is logged in is not the issue. It's getting the memberID of the profile a member is viewing.

 

$this->oProfileGen->_iProfileID works in most places but not on the Photo's page (Photos Profiles Albums).

Quote · 19 Aug 2016

Then you have to special code it from what is available.  You can look at the functions that are there in the photo module and the DB calls.  That is where you start.

Geeks, making the world a better place
Quote · 19 Aug 2016

on photos profile albums page you can use "$this->iOwnerId" in php blocks.

so much to do....
Quote · 19 Aug 2016

@Prashank25: Thank you. I'll give that a go.

 

@geek_girl: Gone a bit cross eyed looking through those and trying everything I can see.

Quote · 19 Aug 2016
 
 
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.