By MD King on Monday, 28 May 2018
Posted in Technical Issues
Likes 0
Views 528
Votes 0
We need to cross-reference information in another database when displaying content on the profile page. Although the logged-in user's ID is available, the content needs to be that of the profile being viewed (not that of the user viewing it).
Hi MD,

You can use the following to get the profile ID when viewing an ES profile page.
[gist type="php"]
$id = $this->input->get('id', 0, 'int');
[/gist]
·
Monday, 28 May 2018 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
I should point out I had to use JFactory::getApplication() instead of $this but ... it works.

Thanks!!!
·
Monday, 28 May 2018 23:31
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Tuesday, 29 May 2018 11:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post