[3.3][RC] Email Login

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: [3.2][BETA] Email Login

Post by nudels64 »

Thanks!
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
User avatar
pikachuturkey
Registered User
Posts: 335
Joined: Wed Dec 20, 2006 10:34 pm
Location: Türkiye(Turkey)
Name: Rıza

Re: [3.2][BETA] Email Login

Post by pikachuturkey »

Turkish (tr) language files for "[3.2][BETA] Email Login" version 0.1.0

language/tr/error.php

Code: Select all

<?php
/**
* phpBB Extension - marttiphpbb emaillogin
* @copyright (c) 2018 marttiphpbb <[email protected]>
* @license GNU General Public License, version 2 (GPL-2.0)
*/
if (!defined('IN_PHPBB'))
{
	exit;
}
if (empty($lang) || !is_array($lang))
{
	$lang = [];
}
$lang = array_merge($lang, [
	'MARTTIPHPBB_EMAILLOGIN_ERROR_NO_EMAIL'
		=> 'Giriş yapabilmek için bir eposta tanımlamalısınız.',
	'MARTTIPHPBB_EMAILLOGIN_ERROR_NO_USERNAME_OR_EMAIL'
		=> 'Giriş yapabilmek için bir kullanıcı adı veya eposta tanımlamalısınız.',
	'MARTTIPHPBB_EMAILLOGIN_ERROR_NO_VALID_EMAIL'
		=> '%1$s eposta adresi geçerli değil.',
	'MARTTIPHPBB_EMAILLOGIN_LOGIN_ERROR_EMAIL'
		=> 'Belirlediğiniz eposta (%1$s) doğru değil. 
			Lütfen epostanızı kontrol edin ve tekrar deneyin. 
			Eğer problemleriniz devam ederse lütfen %2$sSite Yöneticisi%3$s ile iletişime geçin.',
	'MARTTIPHPBB_EMAILLOGIN_ERROR_EMAIL_DUPLICATE'
		=> '%1$s eposta adresi kullanılamaz çünkü o veritabanında birden fazla mevcut.
		Lütfen %2$sSite Yöneticisi%3$s ile iletişime geçin.',		
]);
language/tr/login.php

Code: Select all

<?php
/**
* phpBB Extension - marttiphpbb emaillogin
* @copyright (c) 2018 marttiphpbb <[email protected]>
* @license GNU General Public License, version 2 (GPL-2.0)
*/
if (!defined('IN_PHPBB'))
{
	exit;
}
if (empty($lang) || !is_array($lang))
{
	$lang = [];
}
$lang = array_merge($lang, [
	'MARTTIPHPBB_EMAILLOGIN_EMAIL'				=> 'Eposta',
	'MARTTIPHPBB_EMAILLOGIN_USERNAME_OR_EMAIL'	=> 'Kullanıcı adı veya Eposta',
]);
User avatar
Hippie459MN
Registered User
Posts: 964
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [3.2][BETA] Email Login

Post by Hippie459MN »

I am having an issue. I just updated a forum to 3.2.5 from 3.2.3 and now I get this error and the board is not accessible at all.

Code: Select all

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home2/hippie74/public_html/hydrostreamforums/ext/marttiphpbb/emaillogin/auth/base.php on line 14
Any ideas would be great as I cant get into my ACP or anything to disable it.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [3.2][BETA] Email Login

Post by david63 »

Hippie459MN wrote: Sat Jan 19, 2019 4:05 pm I am having an issue. I just updated a forum to 3.2.5 from 3.2.3 and now I get this error and the board is not accessible at all.
As this extension is tagged as BETA you should not be using it on a production board.

This might help you - Knowledge Base - Disabling all extensions at once
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
Hippie459MN
Registered User
Posts: 964
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [3.2][BETA] Email Login

Post by Hippie459MN »

I understand the whole Beta/RC thing and it was not on a currently live board but I did get the extension disabled so I could get back in the board. I disabled it via phpMyAdmin then deleted the cache via FTP and all is good and is working again.

Im going to uninstall the extension fully then reinstall it and see what happens. Maybe it was something with the update that it didnt like.

EDIT: I may have fixed it. Seems my php version somehow got set back down to php 5.4 but updated it to 7.1 and seems to be working fine now.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [3.2][BETA] Email Login

Post by david63 »

Hippie459MN wrote: Sat Jan 19, 2019 4:32 pm I disabled it via phpMyAdmin then deleted the cache via FTP
That is not the correct way to disable an extension - there are some extension that if you do that will break your board.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
Hippie459MN
Registered User
Posts: 964
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [3.2][BETA] Email Login

Post by Hippie459MN »

david63 wrote: Sat Jan 19, 2019 5:33 pm
Hippie459MN wrote: Sat Jan 19, 2019 4:32 pm I disabled it via phpMyAdmin then deleted the cache via FTP
That is not the correct way to disable an extension - there are some extension that if you do that will break your board.
This I know but that was the only way I could get it to work. I couldnt even run the php script to disable all extensions as I would just keep getting that error so that is what I tried and it worked for me. But after the fact, I think I figured out that the issue was my version of php and that seems to have fixed the error. :)
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti »

Hippie459MN wrote: Sat Jan 19, 2019 4:32 pm EDIT: I may have fixed it. Seems my php version somehow got set back down to php 5.4 but updated it to 7.1 and seems to be working fine now.
That was also my first thought when I read about your error. I use return type declarations. They were introduced in PHP 7.0.

Line 14 of marttiphpbb\emaillogin\auth\base:

Code: Select all

	protected function login_by_email(string $email, string $password):array

User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [3.2][BETA] Email Login

Post by 2600 »

Any plans on having this validated? I'd like to use it, but would rather not have my board broken.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti »

John connor wrote: Sun Feb 03, 2019 6:43 am Any plans on having this validated? I'd like to use it, but would rather not have my board broken.
Yes, I think we can jump to RC now. The plan was to add a console command for checking duplicate email addresses, but I dropped that now.
New version 0.2.0:
  • Requirements to phpBB 3.2.5+ and PHP 7.1+
  • Console Command "info" dropped.
colinshead
Registered User
Posts: 104
Joined: Sun Mar 29, 2015 11:37 am

Re: [3.2][RC] Email Login

Post by colinshead »

Hi Martii

Really useful extension thanks, seems to work fine, and will solve many issues with my forum users forgetting their usernames.

All the best

Colin
User avatar
Hippie459MN
Registered User
Posts: 964
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [3.2][RC] Email Login

Post by Hippie459MN »

colinshead wrote: Wed Feb 06, 2019 2:02 pm and will solve many issues with my forum users forgetting their usernames.
That was my biggest issue. People that would come back after a short break and couldnt remember usernames and they love this now. Works great on my 3.2.5 board!
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][RC] Email Login

Post by martti »

Hippie459MN wrote: Wed Feb 06, 2019 3:32 pm
colinshead wrote: Wed Feb 06, 2019 2:02 pm and will solve many issues with my forum users forgetting their usernames.
That was my biggest issue. People that would come back after a short break and couldnt remember usernames and they love this now. Works great on my 3.2.5 board!
Glad to hear it's useful. It's also the reason why I created this. In a few weeks I will update my own board from 3.0.12 to 3.2.5 and start using this extension myself.
User avatar
nou nou
Registered User
Posts: 507
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][RC] Email Login

Post by nou nou »

martti wrote: Wed Feb 06, 2019 5:12 pm In a few weeks I will update my own board from 3.0.12 to 3.2.5 and start using this extension myself.

You are about the last person I expected to still run a 3.0.x board given your output here... :)
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][RC] Email Login

Post by martti »

nou nou wrote: Wed Feb 06, 2019 5:28 pm
martti wrote: Wed Feb 06, 2019 5:12 pm In a few weeks I will update my own board from 3.0.12 to 3.2.5 and start using this extension myself.

You are about the last person I expected to still run a 3.0.x board given your output here... :)
I had quite some (self made) MODs that had to be turned into extensions. That's why. (The Calendar is the most complicated one.)
Post Reply

Return to “Extensions in Development”