Page 2 of 4

Re: [3.2][BETA] Email Login

Posted: Tue Oct 23, 2018 9:26 pm
by nudels64
Thanks!

Re: [3.2][BETA] Email Login

Posted: Tue Oct 23, 2018 10:53 pm
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 <info@martti.be>
* @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 <info@martti.be>
* @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',
]);

Re: [3.2][BETA] Email Login

Posted: Sat Jan 19, 2019 4:05 pm
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.

Re: [3.2][BETA] Email Login

Posted: Sat Jan 19, 2019 4:12 pm
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

Re: [3.2][BETA] Email Login

Posted: Sat Jan 19, 2019 4:32 pm
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.

Re: [3.2][BETA] Email Login

Posted: Sat Jan 19, 2019 5:33 pm
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.

Re: [3.2][BETA] Email Login

Posted: Sat Jan 19, 2019 5:51 pm
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. :)

Re: [3.2][BETA] Email Login

Posted: Sat Jan 19, 2019 6:51 pm
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


Re: [3.2][BETA] Email Login

Posted: Sun Feb 03, 2019 6:43 am
by John connor
Any plans on having this validated? I'd like to use it, but would rather not have my board broken.

Re: [3.2][BETA] Email Login

Posted: Sun Feb 03, 2019 10:41 pm
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.

Re: [3.2][RC] Email Login

Posted: Wed Feb 06, 2019 2:02 pm
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

Re: [3.2][RC] Email Login

Posted: Wed Feb 06, 2019 3:32 pm
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!

Re: [3.2][RC] Email Login

Posted: Wed Feb 06, 2019 5:12 pm
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.

Re: [3.2][RC] Email Login

Posted: Wed Feb 06, 2019 5:28 pm
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... :)

Re: [3.2][RC] Email Login

Posted: Wed Feb 06, 2019 5:32 pm
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.)