| :: |
| Author |
Message |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Fri May 26, 2006 11:19 am Post subject: login.php issue [ Fixed in 2.8 ] |
|
|
Like i've mentioned times before, after I've added advanced SEO MOD, my mxbb login.php for whatever reasons does not work properly. I'm talking about the link on my overall_header. when your taken to the login.php, you enter nick and pass and the page just refreshes... even if you head back to the portal, you are still not logged in.
What does work, is the mxbb login block.. so I decided to just place the login box on my portal. the log out link on my overall_header does work properly and logs out properly.
So I was wondering if someone can help me find the language for "Log in" for mxbb because I want to keep the "Log out" link, but get rid of log in as to not confuse members. because at this point, mxbb login.php file is useless.
thanks. |
Last edited by Peter77 on Tue Jan 30, 2007 5:40 am; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Fri May 26, 2006 12:03 pm Post subject: Re: login.php issue [ Fixed in 2.8 ] |
|
|
Yeah that's how I pretty much had it all week... have members login from the forums login page. I was just looking for 'log in' in language file to get rid of the login link but keep 'log out' on my overall header.
| dcz wrote: | Please Take a look at this as well  |
Intresting! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Fri May 26, 2006 12:14 pm Post subject: Re: login.php issue [ Fixed in 2.8 ] |
|
|
open :
| Code: |
includes/page_header.php |
The mxBB one
Find :
| Code: | //
// Generate logged in/logged out status
//
if ( $userdata['session_logged_in'] )
{
$u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id'];
$l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';
}
else
{
$u_login_logout = 'login.'.$phpEx;
$l_login_logout = $lang['Login'];
} |
This is wher everything is done.
So I think the better fix right now would be to use the phpBB login.php instead, so that the link will be usable in both cases (log in and out) even if your user log-in from the portal will be thus redirected to the forum after they logged in.
So change it to :
| Code: |
//
// Generate logged in/logged out status
//
if ( $userdata['session_logged_in'] )
{
$u_login_logout = PHPBB_URL . 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id'];
$l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';
}
else
{
$u_login_logout = PHPBB_URL . 'login.'.$phpEx;
$l_login_logout = $lang['Login'];
} |
Note, you might prefer no to use the first PHPBB_URL if the log out feature is working as is, then it will also work without the PHPBB_URL path
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Fri May 26, 2006 12:47 pm Post subject: Re: login.php issue [ Fixed in 2.8 ] |
|
|
Ahh, in page_header.php ... should of known! thanks, I will experiment with this.  |
_________________ Juarol.com
| Frekuenciadigital.com | |
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Sun Oct 22, 2006 7:35 am Post subject: Re: login.php issue [ Fixed in 2.8 ] |
|
|
| If a member accidently types wrong pass or nick, It will provide a link to try again but for mxbb login.php. Where can I edit ( or how ) to have the link redirected to phpbb's login.php page instead? |
Last edited by Peter77 on Fri Feb 02, 2007 4:52 pm; edited 1 time in total |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Sun Oct 22, 2006 12:09 pm Post subject: Re: login.php issue [ Fixed in 2.8 ] |
|
|
You can try open :
the mxbb one.
find :
| Code: | | $message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>'); |
Replace with :
| Code: |
$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\" . PHPBB_URL . "login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>'); |
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Sun Oct 22, 2006 12:20 pm Post subject: Re: login.php issue [ Fixed in 2.8 ] |
|
|
Jeez, that was simple.. I was probably confused with confirmation pages. That and late night posting . Anyway, that should do the trick! Thank you.
----
Edit to say, this issue is fixed in version 2.8.x |
|
|
| Back to top |
|
 |
|
|