phpBB Welcome, “Username”!

hamppyncpype

New Member
I have a site with a phpBB forum and I have a separate login through a different page. I want it so when a user logs in, it will display a "Welcome, 'Username'!" message and when they are not logged in it says, "Welcome, Guest!". I just can't find the syntax to get the username.I don't really have any code so far that has gotten anywhere, but I was looking for something in the realm of:\[code\]<?php echo "<span class = 'WelcomeStyle'>Welcome, " . $username . "!</span>";?>\[/code\]Except, where do I get the variable $username? If this helps I did the login system by linking to the login page of the forums, with the code here:\[code\]<form method = "post" action = "http://www.ravenwolfguild.net/forum/ucp(Copy).php?mode=login"><span class = "LoginLabelStyle">Login:&nbsp;&nbsp;</span><input name = "username" type = "text" id = "username" placeholder = "Username"/><input name = "password" type = "password" id = "password" placeholder = "Password"/><input name = "redirect" value = "http://stackoverflow.com/questions/LoginTest.php" type = "hidden"><input name = "login" class = "mainoption" value = "http://stackoverflow.com/questions/3681356/Log in" type = "submit"></form>\[/code\]Thanks in advance for any help.
 
Back
Top