Using Wordpress with Amember

Discussion in 'Customization & add-ons' started by ramiro77, Jun 25, 2007.

  1. ramiro77

    ramiro77 New Member

    Joined:
    Jun 25, 2007
    Messages:
    2
    I am using some code on my static pages to display a logged in status. Basically if you are logged in it shows different links then if you are not logged in.

    I have a variable to include the amember login check.

    Then I have code to display links based on your status.

    When I add the above code to the Wordpress header, I get an error.

    Any ideas ? Would the wordpress plugin solve this ? I don't want anyone to have to login to use wordpress though.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Possible wordpress use some global variables that have the same name as in aMember.
    But in your code I found that this:
    <?php include $_SERVER["DOCUMENT_ROOT"] . '/amember/config.inc.php'; ?>
    is not necessary because you don't use any aMember functions. Just session variables.
    So replace that to session_start() it should work.

Share This Page