I’m trying to call this:
http://wiki.modxcms.com/index.php/API:userLoggedIn
by just making it to a snippet. Doesn’t work [[ or [! ...
Should it work this simple though? Tnx for reply.
Quote from: mrhaw at Nov 24, 2008, 04:47 PM
I’m trying to call this: http://wiki.modxcms.com/index.php/API:userLoggedIn
by just making it to a snippet. Doesn’t work [[ or [! ...
Should it work this simple though? Tnx for reply.
It returns an array of data about the user so your snippet would have to do something with that using PHP code and then return something appropriate.
You might also look at the Personalize snippet. It will show one chunk to logged in users and another to not-logged-in users.
What are you trying to accomplish?
Lol!
I have the showmember snippet that reports latest login. But what
I want is the same report as it showing who’s online in the manager.
$modx->userLoggedIn() returns info about the user accessing the page, it doesn’t say anything about other users.
I don’t think there’s an API-function for that purpose. But you could look in the manager code to see how it’s done there, and copy the functionality to a snippet.
MODx snippet-glossary 101:
Ditto = Content Lister -- Wayfinder == Menu Builder -- Jot = Comment Control
Yeah good point. I will report back if I succedd to cut out that code!
// Thoose who bridge their modx session to SMF Forum can they then use SMF functions
for showing inside of modx?
Thanks!!