Login fields - Bug Report ?

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
Sora Oseka
Posts: 5
Joined: Sat Sep 02, 2006 12:32 am

Login fields - Bug Report ?

Post by Sora Oseka »

I'm currently trying phpbb3 by making change in the template and i copied the login form in the overall_header.html.
template 'L_X' vars works very well on all pages but loggining this way works only from pages index.php and ucp.php.
I noticed the missing line which is only present in index.php and ucp.php :
'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
Shouldn't this var be in the $template->assign_vars list line 2851 of includes/functions.php instead of index.php and ucp.php ???

Joablen
Posts: 60
Joined: Sun Aug 27, 2006 3:09 am
Contact:

Re: Login fields - Bug Report ?

Post by Joablen »

no... because the login form is not on every page of the board... so the variable is only assigned on the pages that need it...

Sora Oseka
Posts: 5
Joined: Sat Sep 02, 2006 12:32 am

Re: Login fields - Bug Report ?

Post by Sora Oseka »

I understand that for the original template. But for people who make new templates. :p

User avatar
Acyd Burn
Posts: 1838
Joined: Tue Oct 08, 2002 5:18 pm
Location: Behind You
Contact:

Re: Login fields - Bug Report ?

Post by Acyd Burn »

{U_LOGIN_LOGOUT} is the global template variable holding the login action if the user is logged out and the logout action if the user is logged in. ;)

Image

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Login fields - Bug Report ?

Post by Highway of Life »

Acyd Burn wrote: {U_LOGIN_LOGOUT} is the global template variable holding the login action if the user is logged out and the logout action if the user is logged in. ;)
Yup, figgured that one out. ;)

You can copy the entire login form and use it on ANY page in the forum if you use the {U_LOGIN_LOGOUT} in the form action instead of the default {S_LOGIN_ACTION}.
Image

Sora Oseka
Posts: 5
Joined: Sat Sep 02, 2006 12:32 am

Re: Login fields - Bug Report ?

Post by Sora Oseka »

I didn't think of that one. thanks.

Post Reply