The normal Joomla login module has code built into it that recognizes when a user is logged in. If so, the login boxes disappear, and instead, the box says:"hello, user" and there is a logout box. Unless I am doing something wrong- this functionality is not present with the Joomla amember plugin. I really would like to see this added. Is that possible?
My answer I just replaced all the code in the joomla plugin module with the following, and it seems to work. The old code did not display a logout button. Please tell me if this is a problem: <?php session_start(); if ($au=$_SESSION['_amember_user']){ // user is logged-in print "Hello $au[name_f] $au[name_l]!<br>"; print "<a href='/amember/logout.php'>Logout</a>"; } else { // user is not logged-in print "<form method=post action='/amember/login.php'> Username : <input type=text name=amember_login size=10><br> Password : <input type=password name=amember_pass size=10><br> <input type=submit value='Login'> </form>"; } ?> <?php // $Id: mod_amemberl.php,v 1.1.2.1 2006/01/10 12:52:25 avp Exp $ /** * Amember Login Module * @package Mambo Open Source * @Copyright (C) 2000 - 2003 Miro International Pty Ltd * @ All rights reserved * @ Mambo Open Source is Free Software * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html * @version $Revision: 1.1.2.1 $ **/ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );