Need username field to write navigational script

Discussion in 'Templates customization' started by loganeast, Jun 5, 2007.

  1. loganeast

    loganeast New Member

    Joined:
    Jun 5, 2007
    Messages:
    3
    Hi,

    I read a bunch a posts on here and did a search through the forum, but couldn't find an answer to this question that works.

    Basically, I need to be able to retrieve the username of the person logged into the site.

    I am trying to write a navigational script that feeds the user different links according to the age of their membership. It should be an easy enough script - I have the navigational products set up in a table and wrote a PHP script that will filter out pages based on the age of the customer's account. Our membership structure is such that we don't want people who have been with us for 2 weeks to see the same things that someone who's been a member 6 months sees. It's kind of a course.

    So I'm trying to get the username of the person signed in so I can retrieve the added date of the user. If its easier to just get the added date of the user, that's fine too. But I assumed I could get the username easier and then compare that to the database with a simple SQL statement and get the age.

    Any answers/suggestions would be greatly appreciated. Thank you.

    Joe
  2. loganeast

    loganeast New Member

    Joined:
    Jun 5, 2007
    Messages:
    3
    Nevermind.

    I found something that worked. Thanks!

    $_SESSION['_amember_user']['added']

Share This Page