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.',
]);
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',
]);
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
As this extension is tagged as BETA you should not be using it on a production board.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.
That is not the correct way to disable an extension - there are some extension that if you do that will break your board.Hippie459MN wrote: ↑Sat Jan 19, 2019 4:32 pm I disabled it via phpMyAdmin then deleted the cache via FTP
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.david63 wrote: ↑Sat Jan 19, 2019 5:33 pmThat is not the correct way to disable an extension - there are some extension that if you do that will break your board.Hippie459MN wrote: ↑Sat Jan 19, 2019 4:32 pm I disabled it via phpMyAdmin then deleted the cache via FTP
That was also my first thought when I read about your error. I use return type declarations. They were introduced in PHP 7.0.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.
Code: Select all
protected function login_by_email(string $email, string $password):array
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.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.
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!colinshead wrote: ↑Wed Feb 06, 2019 2:02 pm and will solve many issues with my forum users forgetting their usernames.
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.Hippie459MN wrote: ↑Wed Feb 06, 2019 3:32 pmThat 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!colinshead wrote: ↑Wed Feb 06, 2019 2:02 pm and will solve many issues with my forum users forgetting their usernames.
I had quite some (self made) MODs that had to be turned into extensions. That's why. (The Calendar is the most complicated one.)