Topic-icon Social buttons appearing on Kunena registration confirmation

Active Subscriptions:

None
12 years 3 months ago - 12 years 3 months ago #41627 by fridayshoes
When a user registers with the Kunena forum on my site and confirms their email address, I as the admin also receive an email to approve them. When I click the link in that email to approve them it takes me to the account confirmation message. Why do I see the social buttons here, is there a way to remove them?

See example:
Last edit: 12 years 3 months ago by fridayshoes.
The topic has been locked.
Support Specialist
That's automatically added by JFBConnect when you enable the "Integrate with Joomla Login". Whenever the URL is of the type of com_users and the view is registration, we show the login buttons. In your case above, the layout=complete is also set, which is done when an activation is complete.

We don't remove our social login buttons from that view because there's not a way to determine who is activating: the user or an admin. In the case of the admin, it can be confusing to see those buttons (but can hopefully just be ignored). In the case of a user, it should be helpful to have the social login buttons there since they just activated their account.. they have an immediate way to login then.

If you want help removing them from any activation view, we can help. It should be a minor update, but just make sure you want it for all activation cases.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Thanks for confirming why this is happening, which brings me onto my next question which is possibly related.

As an admin when I receive these activation emails I've found that the activation link in the email fails to activate the user if I'm also actively logged into my website. The only way I can get the activation link to work is to right click it and select open in incognito mode.
The topic has been locked.
Support Specialist
Hmmm. I've never heard of that issue.. but I honestly don't do a lot of testing with admin activation enabled. Do you know if that happens for all user account registrations using Joomla as well, or just when a user registers with a social network through JFBConnect?

It's possible it's a Joomla bug, but I'm just not sure what would be causing that off-hand. Definitely strange.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None

alzander wrote: If you want help removing them from any activation view, we can help. It should be a minor update, but just make sure you want it for all activation cases.

Thanks,
Alex


Yes please I'd like to know this. Thanks.
The topic has been locked.
Support Specialist
After you posted your initial topic, there was a big discussion on the Joomla developer group about the activation issue where you have to be logged out to activate an account. This is a confirmed issue with Joomla itself right now, but looks like it's getting some attention:
groups.google.com/forum/#!topic/joomla-dev-cms/U3_9fkH4JGs

As for the social buttons on the activation page, please edit the /libraries/sourcecoast/easyTags.php file. Around line 78, you'll see:
if ($option == 'com_users' && $view == $selView)
Update that to:
if ($option == 'com_users' && $view == $selView && JRequest::getCmd('layout') != 'complete')
That will prevent our social buttons from being added in the 'complete' layout view, which is shown after a user successfully registers or activates their account.

I hope that helps, but as always, let us know if you need anything else!

Thanks,
Alex
The topic has been locked.