- Moderated by:
- Support
-
- rank:
-
Freshman
- registered:
- August 2004
- Status:
- offline
- last visit:
- 23.10.04
- Posts:
- 10
i dun quite get it. at first i thought i should add the piece of code in my master.htm and home.htm, but then realised that this is PHP code so i need to put it in a .php file. but if i put it in theme.php, i can't seem to control where the thing appears. -
- rank:
-
Professional
- registered:
- September 2003
- Status:
- offline
- last visit:
- 11.04.08
- Posts:
- 3055
PHP placed in A-T template files will be parsed, just surround it PHP tags...
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info... -
- rank:
-
Helper
- registered:
- November 2004
- Status:
- offline
- last visit:
- 01.09.05
- Posts:
- 163
grafixwerk
I've implemented the code below...
InvalidResponse
Code
<?php
if(!pnUserLoggedIn()){
?>
<form action="user.php" method="post">Username<input type="text" name="uname" size="12" maxlength="20">
Password<input type="password" name="pass" size="12" maxlength="20"><input type="checkbox" value="1" name="rememberme" />
<input type="hidden" name="module" value="NS-User" /><input type="hidden" name="op" value="login" />
<input type="hidden" name="url" value="/index.php" /><input type="submit" value="Login" />
</form>
<a href="user.php?op=lostpassscreen&module=NS-LostPassword">Log in Problems?</a><br> New User? <a href="user.php">Sign Up!</a>
<?php
}
?>
But, the "Login" appears above the header not in it? I'm using atPN-Blue. Is there something else I need to do... It seems to be working otherwise! :shock:
Hello,
what should i had in this code so when the user is log in, it shows "Welcome Userxxxx" and the "logout" link ?
thanks in advance
