Skip to main content
Skip to login
Skip to sign up
Skip to menu
Facebook
Twitter
Youtube
Log in
Sign up
Home
Community Builder
Add-ons
CB Quickstart
CB Paid Subscriptions
CB Activity
CB Gallery
CB GroupJive
CB Auto Actions
More ...
Memberships
Demo
Downloads
News
Featured
Releases
Blog
Support
Resources
Localization
Documentation
Videos
Forge
About Us
Help Me
Help Us Help You
FAQ
Forums
Warranty
Contact Us
Index
Recent Support Topics
New Support Topics
Recent Topics
Etiquette
Search
Index
Recent Support Topics
New Support Topics
Recent Topics
Etiquette
Search
Forums
Archive
Joomla/Mambo Newbies
user_id?
user_id?
Start
Prev
1
Next
End
1
jm1968a
OFFLINE
New Member
Posts: 6
Thanks: 0
Karma: 0
12 years 1 month ago
#190181
by
jm1968a
user_id?
was created by
jm1968a
I need to pull the current logged in user's ID so that I can use it in a query. My objective is to list items based on the user_id of the current user.
Is there an API call or something like that?
$user_id = $this->user_id;
Please
Log in
to join the conversation.
jm1968a
OFFLINE
New Member
Posts: 6
Thanks: 0
Karma: 0
12 years 1 month ago
#190192
by
jm1968a
Replied by
jm1968a
on topic
Re: user_id?
found it!!!
$user =& JFactory::getUser();
<p><?php echo $user->id ?></p>
Please
Log in
to join the conversation.
Start
Prev
1
Next
End
1
Moderators:
beat
,
nant
,
krileon
Forums
Archive
Joomla/Mambo Newbies
user_id?
Time to create page: 0.167 seconds
Powered by
Kunena Forum
Search
Login / Logout
Remember Me
Log in
Menu
Home
Community Builder
Add-ons
CB Quickstart
CB Paid Subscriptions
CB Activity
CB Gallery
CB GroupJive
CB Auto Actions
More ...
Memberships
Demo
Downloads
News
Featured
Releases
Blog
Support
Resources
Localization
Documentation
Videos
Forge
About Us
Help Me
Help Us Help You
FAQ
Forums
Warranty
Contact Us
User Menu
Forgot Login
Sign Up