Fast login on homepage

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
new.new
Registered User
Posts: 39
Joined: Sun Aug 12, 2018 9:53 am

Fast login on homepage

Post by new.new » Sat Aug 18, 2018 11:25 am

Is it possible to have a fast-login module in the homepage? (instead to have to open the "login" page)

I mean something like the module in this forum: https://forum.audacityteam.org/ , but i would like it in the top instead of in the bottom, something like this:

Image

User avatar
Mannix_
Registered User
Posts: 348
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Fast login on homepage

Post by Mannix_ » Sat Aug 18, 2018 11:41 am

Backup then open index_body.html find

Code: Select all

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
	<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
		<fieldset class="quick-login">
			<label for="username"><span>{L_USERNAME}{L_COLON}</span> <input type="text" tabindex="1" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" /></label>
			<label for="password"><span>{L_PASSWORD}{L_COLON}</span> <input type="password" tabindex="2" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" autocomplete="off" /></label>
			<!-- IF U_SEND_PASSWORD -->
				<a href="{U_SEND_PASSWORD}">{L_FORGOT_PASS}</a>
			<!-- ENDIF -->
			<!-- IF S_AUTOLOGIN_ENABLED -->
				<span class="responsive-hide">|</span> <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" tabindex="4" name="autologin" id="autologin" /></label>
			<!-- ENDIF -->
			<input type="submit" tabindex="5" name="login" value="{L_LOGIN}" class="button2" />
			{S_LOGIN_REDIRECT}
		</fieldset>
	</form>
<!-- ENDIF -->
and move it below:

Code: Select all

<!-- IF S_USER_LOGGED_IN --><p class="responsive-center time">{CURRENT_TIME}</p><!-- ENDIF -->
save it upload it purge the cache.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
My CDB contributions . Like my work? Want me to do make a style just for you? PM here or on twitter.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Need some graphics? PM here or on twitter.

User avatar
david63
Jr. Extension Validator
Posts: 14899
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Fast login on homepage

Post by david63 » Sat Aug 18, 2018 12:00 pm

You also might like to try the Quick login extension - https://www.phpbb.com/customise/db/exte ... ick_login/
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68387
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Fast login on homepage

Post by KevC » Sat Aug 18, 2018 12:10 pm

I hope you're writing down all these code changes you're making as you may well lose them when you update next time.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
Lumpy Burgertushie
Registered User
Posts: 65178
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Fast login on homepage

Post by Lumpy Burgertushie » Sat Aug 18, 2018 2:22 pm

the login section is already at the bottom of the prosilver index page by default.
if your prosilver does not have it then there is something wrong with your prosilver template file. of course, you have to be logged out to see it. )

also, that site you linked to has a problem because when I visited it, I was logged in already. I have never been to that site before and certainly never registered so I am not sure what is going on with that.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

new.new
Registered User
Posts: 39
Joined: Sun Aug 12, 2018 9:53 am

Re: Fast login on homepage

Post by new.new » Sat Aug 18, 2018 7:44 pm

@Mannix_: your code works great thanks
@KevC: yes, i'm taking note of them
@Lumpy Burgertushie: lol, i'm usually always-logged and i didn't even noticed it! But yes, there was, in the bottom of the page :D

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests