Topic-icon 5.1.1 Questions

Active Subscriptions:

None
12 years 9 months ago - 12 years 9 months ago #36090 by theronin
5.1.1 Questions was created by theronin
First off thanks for the update. Looking forward to seeing an even better JFBC functionality.

I tried it out on a test site. Regarding the buttons, currently I'm using {JFBCLogin} to call them into specific locations on the JomSocial welcome page. Would I replace that with:
<a id="facebook" href="javascript:void(0)" onclick="jfbc.login.facebook();"><img src="/link-to-your-image.jpg" /></a>
<a id="google" href="javascript:void(0)" onclick="jfbc.login.google();"><img src="/link-to-your-image.jpg" /></a>

And noob question but is the img src relative to the root? So maybe I were to keep the images in /images/jfbconnect/ if it were in the root images folder.

Thanks.

[edit] Another potentially noob question but should I have uninstalled 5.0.1 first or was it ok to install 5.1.1 right over it?
Last edit: 12 years 9 months ago by theronin.
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36096 by theronin
Replied by theronin on topic 5.1.1 Questions
I think I answered myself and that would be a yes. Haven't tested it on my live site but the buttons do initiate the process ...
File Attachment:
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36098 by theronin
Replied by theronin on topic 5.1.1 Questions
Totally unrelated to JFBC but in the event you or anyone else knows off hand, where is the template file for a failed login in JomSocial? For example if you leave the username and password empty and click Login, you are taken to this failed login page. I'd like to add the buttons there as well.
The topic has been locked.
Support Specialist
12 years 9 months ago #36101 by alzander
Replied by alzander on topic 5.1.1 Questions
No problem for the v5.1.1 release. It was necessary due to a few bugs being reported with the initial release, though nothing major. For the amount of changes in v5.1.0, we're very please with how smooth it's been. The next major release (v5.2) is targeted for October with Twitter integration. Until then, we'll release any minor releases as necessary as things arise.

As to your questions, if you're using JomSocial v3.0, there's an option to integrate with JFBConnect automatically. When enabled, the social login buttons should show automatically. If you're using an earlier version, the {JFBCLogin} or the HTML you mentioned above is the best way to go. The {JFBCLogin} should add the FB login and G+ login buttons wherever you put it. The custom HTML has a lot more flexibility for your own custom image though.

And noob question but is the img src relative to the root? So maybe I were to keep the images in /images/jfbconnect/ if it were in the root images folder.

The path should either be relative, which is relative to the root, or a full URL using your full domain.com/link-to-image.jpg path.

Another potentially noob question but should I have uninstalled 5.0.1 first or was it ok to install 5.1.1 right over it?

Either way works. We try to make things easy.. so you're free to uninstall first or just install over the top. Either way, JFBConnect will detect what you've done and update things accordingly.

I hope that helps, but if you have any other questions, just let me know.

Thanks,
Ale
The topic has been locked.
Support Specialist
12 years 9 months ago #36102 by alzander
Replied by alzander on topic 5.1.1 Questions
To your other question about the template file, I'm pretty sure it's guest.denied.php

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36173 by theronin
Replied by theronin on topic 5.1.1 Questions
Thanks Alex but I don't think that's it. The page actually has the Facbook and Google+ buttons on them but I don't remember placing those unless they are part of the 5.1.1 update ...

File Attachment:


I'd really like to customize that page to use the buttons I made. Any other ideas which template file this could be?
The topic has been locked.
Support Specialist
12 years 9 months ago #36178 by alzander
Replied by alzander on topic 5.1.1 Questions
Those buttons are automatically added to the standard Joomla login page whenever you have the "Integrate with Joomla Login" setting enabled. That setting has been in JFBConnect for a while, but we used to use the smaller blue "Login with Facebook" button. In 5.1, we updated to the larger image buttons and also added G+ (if enabled).

To use your own, you should disable that feature and create a template override of /components/com_users/views/login/default_login.php . In the override, you can add buttons however you want and wherever you want.

We are planning (likely in v5.2) an option in the admin area to set the default buttons that are used when automatically added to various areas of the site or using the {JFBCLogin} tag. Selections would be any of the built-in ones we have or your own custom images for each of the providers (FB, G+ and, in that release, Twitter).

Thanks,
Alex
The topic has been locked.