[solved] Getting Username and Fullname within Module Script / Theme
syscologne
Joined: 2003-05-20
Posts: 37 |
![]() |
Hi, From within a module I would like to print out the username and the full name of the user currently logged into Gallery3. Is there a method to an active class or a php variable that is filled with this information to accomplish this? Thanks |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
<p> Hello <b><?= identity::active_user()->name ?></b>! </p> <p> You’re looking at <?= $item->title ?> which was uploaded by <?= $item->owner->name ?> </p>
Dave |
|
syscologne
Joined: 2003-05-20
Posts: 37 |
![]() |
Great - that gives me the login name. How would I get the full / real Name? Where is this defined? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Dave |
|
syscologne
Joined: 2003-05-20
Posts: 37 |
![]() |
Thanks - your suggestion solved it. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Looking forwarded to seeing your module contribution for the community. Dave |
|
syscologne
Joined: 2003-05-20
Posts: 37 |
![]() |
Intent was not to build a new module - It just helped me to modify the existing Piwik module to track the username of who is using my (family) album. |
|