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 ???
Login fields - Bug Report ?
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!
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!
Re: Login fields - Bug Report ?
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...
-
- Posts: 5
- Joined: Sat Sep 02, 2006 12:32 am
Re: Login fields - Bug Report ?
I understand that for the original template. But for people who make new templates. :p
Re: Login fields - Bug Report ?
{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.
- 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 ?
Yup, figgured that one out.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.
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}.
-
- Posts: 5
- Joined: Sat Sep 02, 2006 12:32 am
Re: Login fields - Bug Report ?
I didn't think of that one. thanks.