MyBB Community Forums

Full Version: Code for Welcome Message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where is the code or function for the  welcome message when user logged in?

[Image: tm6vdJE.png]
(2016-04-22, 05:15 AM).m. Wrote: [ -> ]if I am not mistaken
~/member.php#1746

~/inc/languages/english/messages.lang.php#L11

I've tried it but nothing happens. it just loads the index page.
(2016-04-22, 06:04 AM)xkevin Wrote: [ -> ]
(2016-04-22, 05:15 AM).m. Wrote: [ -> ]if I am not mistaken
~/member.php#1746

~/inc/languages/english/messages.lang.php#L11

I've tried it but nothing happens. it just loads the index page.

Mind explaining what did you 'tried'? Change the code? Load the the page? If you changed the code, post it here, maybe someone might be able to help.
or maybe you are looking for ACP >> Configuration >> General Configuration >> Friendly Redirection Pages
---some validation made for user here ----

if($cookie_email == $user_email)
{

--force login code here--

redirect("index.php", $lang->redirect_loggedin);

}
else
{
//do nothing
}

On my sso.php file I have code which auto login the user.

Now, if the user email was existing in database, it will logged the user in (shows the welcome message first).

Note: I include the sso.php file on global.php