Topic-icon How to place login button within a text field

Active Subscriptions:

None
3 years 6 months ago #66746 by petgal
Hi,
Hope you're doing well. I have a couple questions about making it easy for people to login from where they are reading an invitation, rather than saying something like "Click the login button in the main menu." Would like to present that button or link right there.
1. What's an elegant way to place a FB login button in a text field.
2. Where would I find the link to open that SCLogin window to login.

See: d.pr/v/x82CzM

Thanks
The topic has been locked.
Support Specialist
3 years 6 months ago #66752 by alzander
1) You can use our EasyTags to add the login button anywhere. Simply add the following text to your article, module or anywhere else that will display on the page:
{JFBCLogin}
There are plenty of ways to customize that as well to only show a specific login option. For example, if you only want to show the Facebook and Twitter login buttons, in that order, you can use:
{JFBCLogin providers=facebook,twitter}
There are other customization options as well to set a specific image. If interested, just let us know.

2) If the SCLogin module is already configured to show on a page, you can use the following HTML to have it popup from anywhere:
<a href="#login-modal" role="button" data-toggle="sc-modal">Log in</a>

I hope that helps!

Alex
The topic has been locked.
Active Subscriptions:

None
3 years 6 months ago #66754 by petgal
Hi Alex,
Thanks for responding. I tried adding that tag, but it doesn't show, either as the tag or the button the tag is supposed to generate. See:
d.pr/v/lVde5o

What I'm trying to do is get them to take a poll at:
goodtalktnt.com/living-in-tnt/10-what-de...u-most-interested-in
This is on my home page. But I want them to be logged in to take the poll. So ideally i'd like them to click one button, or link titled "Click here to enter" that both logs them in with facebook and opens that poll for them to take it. Is that possible?
Really appreciate your help on this as I have to get this working for an announcement on Wednesday.

Thanks
peter
The topic has been locked.
Active Subscriptions:

None
3 years 6 months ago #66758 by petgal
Anybody home? Hope everything is OK with you. I’m under some pressure now with the timing so would really appreciate hearing from you.

Tags:
In the meantime I have tried to play around with this on my development site and the icons show with the tag on my development site. But the login doesn’t work because the domain is different I think. That’s no problem. It’s on the live site they need to show and work. The only real difference (what accounts for them showing on one site and not the other) is that I have approved the listing (where I have embedded the tags) on my development site, and on my live site it is in moderation. I guess I can trust that the tags will show the buttons on my live site once I approve the listing. This more fyi I guess.

SCLogin
That code you provided works to bring up the SCLogin module, but I want the redirect after login to be different for when people click on “Log in” for the competition vs. the normal login button. Would I need two separate SClogin modules to accomplish that? For the contest, when they login - either from the code you provided, or from the tag- it should log them in and redirect them to the poll. But if someone logs in from the main menu, it should redirect them to the home page. Possible? How would I execute?

email Registraion
The only thing I haven’t figured out is what happens if someone doesn’t want to use FB to login and prefers to register with email and password. They will need to activate their registration by clicking on their activation email. That will take them to the home page and log them in, but they’ll then have to search for poll? Is it possible to have the activation link log them in and open the poll? If so, can you let me know how to affect that activation link and change the text in that same activation email?

Thanks.
Peter
The topic has been locked.
Support Specialist
3 years 6 months ago #66759 by alzander
Sorry for the delay. We've been super busy with updating JFBConnect for Joomla 4 compatibility.. which is exciting.. but time consuming.

I guess I can trust that the tags will show the buttons on my live site once I approve the listing.

I'm not sure what you're approving here. It sounds like you have it working though (or at least ready to test on live), but if you need answers about the tags, just let us know.

Would I need two separate SClogin modules to accomplish that?

We don't have a way for social logins to redirect to different places. You can only configure the login (or registration) redirections in the Configuration area of JFBConnect. For standard Joomla Logins, yes, the SCLogin module has a separate option for Login redirection that can redirect the user to different places.

Is it possible to have the activation link log them in and open the poll?

That's Joomla's user registration/login system which we don't have control of. The activation link is completely generated by Joomla and there's not a way to have it track where a user originally registered from (or, where they started registering from, which is what matters) and then generate a specific link based on their registration flow. It's a neat idea, but would be pretty complex to implement properly.

I hope that helps explain some of the things you were looking for, but if you need anything else, please let us know.

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

None
3 years 6 months ago #66761 by petgal
Hi Alex,
Thanks for responding. Some clarifications. Here's a screencast that shows the problem I'm having with the tags not showing on my live site. See: d.pr/v/IDsGyr
Is it the case that the tags and login button will show once I approve the listing to show on the front end of my live site?

SCLogin button
To be clear, you are confirming that I can use two SCLogin modules. Correct? If so, where would I find the equivalent of this code:
<a href="#login-modal" role="button" data-toggle="sc-modal">Log in</a>
which would work for the second SClogin module configured with a different redirect?

Email Registration
I get what you are saying. This is a separate request: Where can I change the text that goes with the Joomla sent activation email?

Separately; It would be nice if joomla 4 pulled the rabbit out of the hat for the joomla community as it seems stagnant at best compared to the Wordpress community. I must confess I wish I had rebuilt my site in Wordpress as there are many, many more options in Wordpress than their are in Joomla. Seems like WP is growing and Joomla is declining. Curious to learn your view.
Thanks
The topic has been locked.
Active Subscriptions:

None
3 years 6 months ago #66762 by petgal
Alex. I also need to confirm that when users login with any of the social buttons that an email is placed in their joomla profile. I expect that will be the email they used to register on those social platforms. I'll need this to contact the winner of a contest I'm running. Thanks. I really need to iron these things down tomorrow so thanks in advance for your urgent attention. Thanks.
Peter
The topic has been locked.
Support Specialist
3 years 6 months ago #66766 by alzander
I just watched your video. I am not sure why the tags is being hidden, but there's a few ways to test or check ahead of time:
* Set that review to "Special" access. Then, it should just be visible to administrators, but still act like it's normally published.
* Create another temporary review, add the tags, check and then delete it right away so that no one would see it.

Things to check:
* In the JFBConnect -> Social -> Misc tab, check if a "Social Tag Admin Key" is setup. If so, you need to add tags like {JFBCLogin tag=1234} where 1234 is your Social Tag Admin Key.

To be clear, you are confirming that I can use two SCLogin modules. Correct? If so, where would I find the equivalent of this code:

Ahhh.. that could be a problem. Yes, you can use multiple SCLogin modules. However, there should only be one configured for the modal popup. Our Javascript expects only one modal when it's launching, so the first one on the page is the popup that would display. I'm not sure if there's an easy way around that.

Where can I change the text that goes with the Joomla sent activation email?

In the Joomla language manager. Either create overrides through the administrator area or update the /language/xx_yy/xx_yy.com_users.ini file

I also need to confirm that when users login with any of the social buttons that an email is placed in their joomla profile.

Most social networks do return the email address of the user. Instagram, specifically, does not, and there may be others. But Facebook and Twitter definitely do return the email address and that will be added to the Joomla's user profile when their account is created. I'd recommend making sure the "Automatically link new users by email" setting is 'Yes' in JFBConnect so that, if the user already has an account on your site with that email address, their social account will connect to the Joomla account automatically and they won't need to go through any registration or linking process to connect them.

Finally, regarding Joomla, I think the future is bright. There is a lot of development going on for the new release and we're very excited for it. It's true though that Wordpress has the marketshare, which means there are more developers creating more plugins for it. That can be a good lure that we can't argue with, but I'd also say that Joomla has most extensions that most sites need.. and whether you have just a few options with Joomla or 30+ options with Wordpress (sometimes much lesser quality) options, the main important point is that the feature you need is available.

Thanks,
Alex
The topic has been locked.
Support Specialist
3 years 6 months ago #66767 by mel
Just wanted to point out it would be key=1234 if you have a Social Admin Tag Key set, not tag
{JFBCLogin key=1234}
The topic has been locked.
Active Subscriptions:

None
3 years 6 months ago #66773 by petgal
Thanks for sharing your perspective on Joomla

Hi that Misc setting is not set up. It couldn't explain the problem as my development site is made from a backup of the live site so all the same settings. I have made the listing live but it still does not show the tags. What else could be the problem? Is it safe to provide you backend access details here?

For the email activation text change, I meant the text in the email, not the text saying the email has been sent.

Thanks for your attention.
The topic has been locked.