Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-8625 now.

Quick login box only works on board index. (fix completed in vcs)

Because the
Code: Select all
'S_LOGIN_ACTION'
template variable is defined in index.php and not in the page_header() function you can only add the quick login box to the index page without changing phpBB itself. It looks strange to do this, this way and it limits style author as they can't add the box everywhere.

Comments / History

Edited ticket

Action performed by Erik Frèrejean (Support Team Member) on Aug 25th 2009, 17:56

Posted by Derky (MOD Team Member) on Aug 25th 2009, 18:17

That will definitely be a great change. Also a lot of authors are currently already using S_LOGIN_ACTION globally in the header as login, but they don't know that it will not work except on the index and login page.

Posted by Erik Frèrejean (Support Team Member) on Aug 25th 2009, 20:29

My last patch seems to break the login page itself, due to the fact that those templates use the S_LOGIN_ACTION variable as well. I've prepared two patches to cope with this, the first one changes one of the template variables and therefore will break templates though it seems like the cleanest solution to me. The second will only set the S_LOGIN_ACTION variable in the page_header function if the user isn't looking at the login page.

Posted by Acyd Burn (Server Manager) on Aug 29th 2009, 14:20

Erik, please test the attached patch. I hope it syndicates the login action for all pages and all possibilities and also allowing for proper redirects on all pages.

Please also test with cookies disabled. ;)

I did some first tests of course, but need this verified, because it changes quite a lot regarding internal functionality.

Assigned ticket to user "Acyd Burn"

Action performed by Acyd Burn (Server Manager) on Aug 29th 2009, 14:21

Posted by Erik Frèrejean (Support Team Member) on Aug 29th 2009, 16:55

Meik,

I've tried the most obscure combinations I could think of (with and without cookies) and it seems to work all.

Linked ticket with changeset: r10067

Action performed by Acyd Burn (Server Manager) on Aug 30th 2009, 17:13

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by Acyd Burn (Server Manager) on Aug 30th 2009, 17:13

Linked ticket with changeset: r10147

Action performed by Acyd Burn (Server Manager) on Sep 15th 2009, 13:10

Ticket details

Related SVN changesets