| Re: Saying Hello to Xoops signed in user |
| by ladysham on 2006/9/8 18:33:52 Great little hack. Thanks! |
| Re: Saying Hello to Xoops signed in user |
| by wcrwcr on 2006/9/8 17:35:26 Hi @canbula & peekay Thank you guys for your time ![]() I?m using the peekay approach and everything is running smooth. Thanks, Wilson |
| Re: Saying Hello to Xoops signed in user |
| by Peekay on 2006/9/8 11:41:38 Or you could just put this in a PHP block... le="color: #000000"><?php global $xoopsUser; if ($xoopsUser) { //User is logged in, display welcome message $uname = $xoopsUser->getVar('uname'); echo("Welcome, $uname"); } else { return false; }
|
| Re: Saying Hello to Xoops signed in user |
| by canbula on 2006/9/8 10:40:09 you didn't understand me..look at this put this code in an external php file located in your XOOPS root directory..and call this file after login..you will see your user name
|
| Re: Saying Hello to Xoops signed in user |
| by wcrwcr on 2006/9/8 9:25:18 I?ve tried le="color: #000000"><?php mysql_query=SELECT * FROM xoops_users WHERE uid=".$_SESSION['xoopsUserId']; print "xoopsUserId"; But the block doesn?t shows up
|