Identify current user

9 years 8 months ago #247293 by rafaoc
Identify current user was created by rafaoc
Hi,
I am using joomla 3.3.1 and I am trying to get the data from the current user, mainly his ID identifier in the user table in data base.
It is because I want to use it later for read all the information of the user in the data base.

I tried with " Establishing a CB $user object " but I dont know where to write that code and how to use it exactly.

Any idea?. Thanks

Please Log in to join the conversation.

9 years 8 months ago #247328 by nant
Replied by nant on topic Identify current user

rafaoc wrote: Hi,
I am using joomla 3.3.1 and I am trying to get the data from the current user, mainly his ID identifier in the user table in data base.
It is because I want to use it later for read all the information of the user in the data base.

I tried with " Establishing a CB $user object " but I dont know where to write that code and how to use it exactly.

Any idea?. Thanks


What exactly are you trying to build?

A Joomla module?
A CB Plugin?

Do you have any experience in Joomla/PHP development?

Please Log in to join the conversation.

9 years 8 months ago #247367 by rafaoc
Replied by rafaoc on topic Identify current user
What I want to do is:
I am using the community builder package
and when someone logs in with CB log in,
I want to identify him in order to know his ID and manage all his information in the data base.

About Joomla I am using it since 1 month, so I have few experience
and I have basic knowledge about php

Please Log in to join the conversation.

9 years 8 months ago #247369 by nant
Replied by nant on topic Identify current user

rafaoc wrote: What I want to do is:
I am using the community builder package
and when someone logs in with CB log in,
I want to identify him in order to know his ID and manage all his information in the data base.

About Joomla I am using it since 1 month, so I have few experience
and I have basic knowledge about php


You can see his id in the CB User Manager backend area.

This is the same id used in the Joomla user table and in the CB comprofiler table.

Please Log in to join the conversation.

9 years 8 months ago #247391 by rafaoc
Replied by rafaoc on topic Identify current user
I have solved my problem !

stackoverflow.com/a/25068196/3430103
The following user(s) said Thank You: nant

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.226 seconds

Facebook Twitter LinkedIn