Ok, so I am re-coding an existing component, this is a standard Joomla Component, and is being called inside a tab in Community Builder. What I need to be able to do is pull the currently viewed profile user id and be able to insert it into my query to pull data from an un related table in Joomla. So
A) User comes to persons profile
Component pulls the current profile user id
C) User id is used in code to populate query
The component is outside of Community Builder and I am not finding a useful way to access the currently viewed profile from outside community builder. I have been working on this all week, so I am not even sure I am explaining it right. But I don't need the logged in user's ID, I need to get the ID of the currently viewed user profile. It's in the URL but how do I get it into my query?