Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Phoca Cart - complex e-commerce extension
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by morphinestyle »

Hello everyone!

I'm using Akeeba Social Login to make faster login, but on J4 it needs Phoca Cart use onUserLoginButtons event to be rendered as described on Akeeba Social Login documentation page https://github.com/akeeba/sociallogin/w ... t-joomla-4.

There is a way to fix, or i need to wait Phoca Chart using new J4 onUserLoginButtons event?

Thank you very much!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by Jan »

Hi, the event is located here: libraries/src/Helper/AuthenticationHelper.php so not sure where exactly in Phoca Cart should be implemented and how?

Jan
If you find Phoca extensions useful, please support the project
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Re: Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by morphinestyle »

Hi Jan,
i use Akeeba Social Login to allow auto-registration by Google or Facebook.

Social Login in Joomla 4 (unlike joomla 3) uses onUserLoginButtons event to append automatically social buttons where login buttons are rendered as explained here: https://github.com/akeeba/sociallogin/w ... t-joomla-4.

As described by Nicholas Dionysopoulos:
Joomla 4
As noted, our code DOES NOT render the login buttons in Joomla 4. Our code simply responds to the onUserLoginButtons event which was added in Joomla 4. Plugins responding to this event convey all the information Joomla needs to render additional login buttons such as WebAuthn (included in Joomla), SocialLogin etc.

If your extension does not render these buttons please talk to its developer. They need to update its code for Joomla 4. There is nothing you can do with an override.
There's no way to override to render Social login buttons, so i'm asking how can i solve to make visible it to make a super fast registration and/or login.

How can i solve?

Thank you Jan!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by Jan »

Hi, would like to give you clue advice, but I just don't understand this:

"If your extension does not render these buttons please talk to its developer. They need to update its code for Joomla 4. There is nothing you can do with an override."

I unfortunately have no idea which buttons are talking about, how such buttons are related to Phoca Cart extension, etc. :idea:


Jan
If you find Phoca extensions useful, please support the project
mino182
Phoca Professional
Phoca Professional
Posts: 224
Joined: 12 Feb 2015, 13:30

Re: Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by mino182 »

Maybe login form in checkout? And render social login buttons there...
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Re: Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by morphinestyle »

mino182 wrote: 08 Jul 2023, 07:51 Maybe login form in checkout? And render social login buttons there...
Exactly: just to render Akeeba Social Login buttons on Phoca Cart login!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by Jan »

Hi, OK, will be set in next version:

Image

Jan
If you find Phoca extensions useful, please support the project
User avatar
Maradona
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 15 Feb 2023, 14:05

Re: Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by Maradona »

Jan wrote: 07 Jul 2023, 23:31 Hi, would like to give you clue advice, but I just don't understand this:

"If your extension does not render these buttons please talk to its developer. They need to update its code for Joomla 4. There is nothing you can do with an override."

I unfortunately have no idea which buttons are talking about, how such buttons are related to Phoca Cart extension, etc. :idea:


Jan

May I know where and how? :D
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Please use onUserLoginButtons event just to render Akeeba Social Login buttons

Post by Jan »

Hi, sorry, I don't understand your question.
If you find Phoca extensions useful, please support the project
Post Reply