I know how to use the scripts that "alex" has posted about php scripts that show the login forum when they are not logged in and something that shows their username when they are logged in but I have a special case... This is how my site works: public_html/includes/memberlogin.php public_html/amember/templates/profile.html Now what I have done, is I am using memberlogin.php (my own made file which will house all of the php script for the if/else statements alex posted) as a PHP INCLUDE in the templates/profile.html. I have tried both methods alex mentioned: 1. using: "Welcome, $au[name_f]" for example, causes the php script not to work at all. I see the code still when viewing in a browser. 2. using "Welcome {$smarty.session._amember_user.name_f}" I see nothing at all that has to do with smarty.session - so I see "Welcome" when viewing in a browser. Help?
I am in the process of 'helping' the various user interface templates blend in with my site better. For instance I now have two members pages which has the various details included such as their registered user name, real name and email address together with,shortly, an expiry date. this in one column. Another contains renew membership facility. Those that have an active, or expires see one page that contains option to renew while the other page is for pending accounts with the option of paying for their subscription. Other information is also slightly different. The choice of which page is used is determined within the standard 'member.php' file with a small modification. The profile page is also changing slightly but it too will use the standard 'profile.php' as the actual processing file. With both the members and profile pages I have had no trouble displaying members information. My case might be different to you as I have a single renewal group but it is possible to make small mods to the existing scripts to cover directing to more than one member, profile or other page. What exactly are you trying to achieve? and why rewrite one of the 'core' processing .php scripts?
i just ended up following http://manual.amember.com/Integrating_aMember_Pro_with_website I edited some code and it works perfectly. Thanks.