"quick login" take me to standard login

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Grimmjow
Registered User
Posts: 25
Joined: Mon May 26, 2008 8:35 am

"quick login" take me to standard login

Post by Grimmjow »

At first, I thought I was making a typo in the password, and so I didn't give relevance. But now I realize, every time I try to login through the quick login form, I'm sent to the standard form login instead of loggin-in... am I missing something? Maybe an option in the ACP?

Bye.
CSS colorizer, a script to automatically change colors inside a cascading style sheet.
User avatar
rhythm1
Registered User
Posts: 950
Joined: Sat May 10, 2008 9:23 pm
Location: Maldives

Re: "quick login" take me to standard login

Post by rhythm1 »

COuld you post you index_body.html here. In between

Code: Select all

 tags.
`Rhythm
I 'd rather live in a world with PHPBB
Where we stand and where we siT - Shit is bound to be always therE
User avatar
Eelke
Registered User
Posts: 2903
Joined: Thu Dec 20, 2001 8:00 am
Location: NL, Bussum
Name: Eelke Blok
Contact:

Re: "quick login" take me to standard login

Post by Eelke »

Can you please fill in the SRT? The problem might well be in the template file as rhythm1 is suggesting, but I think we can be a little more constructive if you provide all the info in the SRT at once, instead of us having to ask for it step by step.
Grimmjow
Registered User
Posts: 25
Joined: Mon May 26, 2008 8:35 am

Re: "quick login" take me to standard login

Post by Grimmjow »

I'll post what I can, I hope it's enough:

Version of phpBB3: 3.0.1
Was this a fresh install or a(n) update/upgrade/conversion (please be specific)? Fresh install
Was this an install through your host? Yes
MODs you have installed: none
When the problem started: didn't notice

I'm working on a customized style based on prosilver.

index_body.html

Code: Select all

<!-- INCLUDE overall_header.html -->

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
<p>Custom text</p>

<div class="st-quick-login">
	<div class="inner"><span class="corners-top"><span></span></span>
	
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
	<!--h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></h3-->
		<fieldset class="quick-login">
			<table width="100%" border="0">
			<tr>
			<td width="27"><img src="./styles/abc/imageset/st-icon_user.gif" /></td>
			<td width="1%"><label for="username">{L_USERNAME}:</label></td>
			<td width="140"><input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" /></td>
			<td width="31"><img src="./styles/abc/imageset/st-icon_pass.gif" /></td>
			<td width="1%"><label for="password">{L_PASSWORD}:</label></td>
			<td width="140"><input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" /></td>
			<td>
				<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
				<!-- ENDIF -->
				<!-- input type="submit" name="login" value="{L_LOGIN}" class="button2" / -->
				<input type="image" name="login" src="./styles/abc/theme/images/button_login.gif" />
			</td>
			<td><!-- IF S_REGISTER_ENABLED --><a href="{U_REGISTER}"><img src="./styles/abc/imageset/st-register.gif" /></a><!-- ENDIF --></td>
			</tr>
			</table>
		</fieldset>
	</form>

	<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->

<!-- INCLUDE forumlist_body.html -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
	<h3>{L_BIRTHDAYS}</h3>
	<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF NEWEST_USER -->
	<!-- da index_body.html -->
<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->
The form action resolves to this:

Code: Select all

./ucp.php?mode=login&sid=4dd31e91d938a52a0ad7d9e51e3707cf
CSS colorizer, a script to automatically change colors inside a cascading style sheet.
User avatar
rhythm1
Registered User
Posts: 950
Joined: Sat May 10, 2008 9:23 pm
Location: Maldives

Re: "quick login" take me to standard login

Post by rhythm1 »

Grimmjow wrote:Was this an install through your host? Yes
Does this mean you installed it with fantastico or any other one click automatic method?
`Rhythm
I 'd rather live in a world with PHPBB
Where we stand and where we siT - Shit is bound to be always therE
User avatar
Eelke
Registered User
Posts: 2903
Joined: Thu Dec 20, 2001 8:00 am
Location: NL, Bussum
Name: Eelke Blok
Contact:

Re: "quick login" take me to standard login

Post by Eelke »

Chances are your custom template is for 3.0.0. See this topic for details: http://www.phpbb.com/community/viewtopi ... 4&t=880735
Grimmjow
Registered User
Posts: 25
Joined: Mon May 26, 2008 8:35 am

Re: "quick login" take me to standard login

Post by Grimmjow »

rhythm1 wrote:
Grimmjow wrote:Was this an install through your host? Yes
Does this mean you installed it with fantastico or any other one click automatic method?
Oh, no no! I mean I uploaded the files and run the proper installer.

@Eelke: I'm modifiying it, using the prosilver as base.

Mmh, just now I switched to the default "prosilver" and the quick login works as expected, so the issue is with my template :(

Maybe I've deleted too much stuff, such as the date, the time of last access, statistics, bottom navbar. And I moved the quick login above the forum list, instead of having it below, but still I can't figure out why those modifications shouldinterfere with the login procedure.
CSS colorizer, a script to automatically change colors inside a cascading style sheet.
User avatar
Eelke
Registered User
Posts: 2903
Joined: Thu Dec 20, 2001 8:00 am
Location: NL, Bussum
Name: Eelke Blok
Contact:

Re: "quick login" take me to standard login

Post by Eelke »

Most forms in phpBB3 include a formcode to validate the form's authenticity (i.e. a reponse that's received is from actually filling in a form, and not some bot just sending the right post variables to the server). Make sure you also move that along.

Off-topic:
Grimmjow wrote:
rhythm1 wrote:Does this mean you installed it with fantastico or any other one click automatic method?
Oh, no no! I mean I uploaded the files and run the proper installer.
Actually, I think that question is misinterpreted by a lot of people, maybe it should be changed in the template. Not sure to what, though.
Grimmjow
Registered User
Posts: 25
Joined: Mon May 26, 2008 8:35 am

Re: "quick login" take me to standard login

Post by Grimmjow »

Eelke wrote:Most forms in phpBB3 include a formcode to validate the form's authenticity (i.e. a reponse that's received is from actually filling in a form, and not some bot just sending the right post variables to the server). Make sure you also move that along.
Bingo. Or sort of. I replaced the submit button with a .gif, and forgot to add the value="{L_LOGIN}" tag.
Eelke wrote:Off-topic:
Grimmjow wrote:
rhythm1 wrote:Does this mean you installed it with fantastico or any other one click automatic method?
Oh, no no! I mean I uploaded the files and run the proper installer.
Actually, I think that question is misinterpreted by a lot of people, maybe it should be changed in the template. Not sure to what, though.
I interpreted as if I had just copied the files from another working installation or run the installer. A variant for the question could be "Do you installed it by yourself or through an host helper/utility/script?"
CSS colorizer, a script to automatically change colors inside a cascading style sheet.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52137
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: "quick login" take me to standard login

Post by Brf »

input type=image does not submit the name/value pair to the post-data like type=submit does.
In order for it to work you will have to change the name on that button (to anything different) and insert

Code: Select all

<input type="hidden" name="login" value="{L_LOGIN}"  />
Grimmjow
Registered User
Posts: 25
Joined: Mon May 26, 2008 8:35 am

Re: "quick login" take me to standard login

Post by Grimmjow »

But this works:

Code: Select all

<input type="image" name="login" value="{L_LOGIN}" src="./styles/abc/theme/images/button_login.gif" />
Since I'm here... is there a way to print the name of the template in use rather than specifying the raw name in the path to the image? ("abc" in this case)
CSS colorizer, a script to automatically change colors inside a cascading style sheet.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52137
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: "quick login" take me to standard login

Post by Brf »

I think it works in Firefox, but it would not in IExplore-6

and you should be using:

Code: Select all

src="{T_THEME_PATH}/images/button_login.gif"
Grimmjow
Registered User
Posts: 25
Joined: Mon May 26, 2008 8:35 am

Re: "quick login" take me to standard login

Post by Grimmjow »

Brf wrote:I think it works in Firefox, but it would not in IExplore-6
You were so right! With the hidden works ;)
Brf wrote:and you should be using:

Code: Select all

src="{T_THEME_PATH}/images/button_login.gif"
Thanks.
CSS colorizer, a script to automatically change colors inside a cascading style sheet.
Locked

Return to “[3.0.x] Support Forum”