Pulling user information

Discussion in 'Customization & add-ons' started by mmfcanada, Nov 15, 2010.

  1. mmfcanada

    mmfcanada New Member

    Joined:
    Nov 5, 2010
    Messages:
    2
    Not sure if this is the most appropriate category for this thread, but here it goes!

    I have protection working via including check.inc.php, but i was wondering if there was any way of pulling user info, or at least checking to see if they're logged in or not from public pages of our site (that dont include check.inc.php). Also on the pages including check.inc.php is there any user array or class that gets pulled through that i can use to get user info?

    any help would be greatly appreciated,
    Ryan
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
  3. mmfcanada

    mmfcanada New Member

    Joined:
    Nov 5, 2010
    Messages:
    2
    Perfect, thanks!
  4. glrfcentral

    glrfcentral New Member

    Joined:
    Mar 19, 2007
    Messages:
    27
    Hi -

    Similar to what Ryan asked here, I was wondering if there was a way to show a display of users who are currently logged in via aMember, on our index page, which is .php? Similar to say the home page of twitter that shows current users ...

    Yes, our page already has the code for php session start so that member who are logged in will see a 'welcome johndoe' display.

    But for those who are not logged in and simply visiting the front door, so to speak, it would be great to have a display of current users online. Is that possible? What code would I use?

    Thanks so much for considering my question.

    Brian
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Unfortunately this is impossible.
  6. glrfcentral

    glrfcentral New Member

    Joined:
    Mar 19, 2007
    Messages:
    27
    Hi Alex,

    Thanks for your reply. May I ask another question?

    Could we feature a list of users who are currently online, for those people who are already logged in to aMember? This is a slight variation but it would be as useful as my first idea.

    Thanks,

    Brian
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Brian ,
    The problem is aMember do not store info about logged in users currently and we do not plan to change this in aMember 3 (this will be too difficult to add into current version and will require modifications in almost all protection plugins)

Share This Page