mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:46

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Display User on page
PostPosted: 23 Feb 2006, 14:42 
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 :oops:


Report this post
Top
  
Reply with quote  
PostPosted: 26 Feb 2006, 02:34 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
Guest-Teh:

> 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:

Code:
<?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:

Code:
<html>
<head>
<title><?php echo $slogin_pagetitle;?></title>
</head>
<body>
<p><?php echo "Welcome $slogin_Username"; ?></p>


And then all pages would display the "Welcome xxxxx" message.


Regards,

Mario A. Valdez-Ramirez.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: similar problem
PostPosted: 15 Jan 2007, 07:18 
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!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group