|Display User on page
|Page 1 of 1|
|Author:||Guest-Teh~ [ 23 Feb 2006, 14:42 ]|
|Post subject:||Display User on page|
Is there anyway to say at the top of the page display the name they are logged in under?
like :Logged In As "Teh~"
i dont know how to do this myself
|Author:||mvaldez [ 26 Feb 2006, 02:34 ]|
|Post subject:||How to display the username...|
> Is there anyway to say at the top
> of the page display the name they
> are logged in under? like :
> Logged In As "Teh~"
Hi. Yes, you can do it! Just add this to the webpage, in the place you want to display it:
<?php echo "Logged in as $slogin_Username"; ?>
So, for example, if you have a header file (like header.inc.php) you could add it there too. For example:
<title><?php echo $slogin_pagetitle;?></title>
<p><?php echo "Welcome $slogin_Username"; ?></p>
And then all pages would display the "Welcome xxxxx" message.
Mario A. Valdez-Ramirez.
|Author:||Guest [ 15 Jan 2007, 07:18 ]|
|Post subject:||similar problem|
I would like to have Welcome Guest' displayed on the page, but whent he user logs in, the word guest is replaced by their login name.
I've got it working perfectly for displaying the users name after login, but this would just add the finishing touch!
Any help would be much appreciated!
It a totally awsome script!
|Page 1 of 1||All times are UTC - 7 hours|
|Powered by phpBB® Forum Software © phpBB Group