oneall / social-login-phpbb

Social Login for phpBB allows your users to login and register with 40+ social networks. It increases your phpBB user registration rate by simplifying the registration process.
https://docs.oneall.com/plugins/guide/social-login-phpbb/
52 stars 33 forks source link

SocialLogin isn't visible on the index page - $this->php_ext #59

Closed b-vetter closed 6 years ago

b-vetter commented 6 years ago

https://github.com/oneall/social-login-phpbb/blob/dce1dc76b8311d9271cbabf3b8208b69e42b44a3/%5B%20%3E%3D%203.1.%20%5D%20EXTENSION/oneall/sociallogin/event/listener.php#L179

$this->php_ext doesn't work on this position. I'm not sure whether it is filled at all. I haven't checked.

I've changed this line back to: if (! empty ($this->user->page['page_name']) && $this->user->page['page_name'] == 'index.php')

Without that change, the login isn't visible on the index page. 😬 Please check that!

Thank you! 👍

SchlesserClaude commented 6 years ago

Hello,

When we submitted the plugin to the official phpBB repository, the staff asked us to replace .php by $this->php_ext! in our test environment we could not replace your issue.

It might be better to replace it with a test that does not rely on the variable.

if (! empty ($this->user->page['page_name']) && strpos($this->user->page['page_name'], 'index') !== false)