Topic-icon JFBConnect integration with EasyBlog

Active Subscriptions:

None
11 years 8 months ago - 11 years 8 months ago #47206 by leo1079
Hi,

I would like to integrateJFBConnect with EasyBlog.
Most importantly, I would like to have the Login using Facebook & Google (SCLogin) functionality working for Easy Blog. Same time it should not disrupt the Joomla users. (This i reckon it will not, as seen on my SCLogin on the home page top bar -that works perfectly fine with both Joomla & fb/g+ users- Just to be clear that I'm expecting same here)

To give you a better picture, Basically I have JFConnect installed/configured & working fine across the site.
However I installed Easy Blog at a more recent point in time. Now when going to the 'write blog' section, I notice it is pointing to the native Joomla module/component for the registration/logins.
I need this to point to the SCLogin (along with fb/google options) so that the login / registration process is consistent across the board.
Or maybe just add the Login using fb/g+ buttons to the side/bottom. (As long as this will do the same purpose as the SC Login & will not mess up the Joomla users)


In your documentation, it talks about:

Edit the file /components/com_easysocial/themes/wireframe/login/default.php file
At the bottom of the file, add the following line with {JFBCLogin}


But this is for Easy Social. What would be the equivalent for Easy Blog?

I added the {JFBCLogin} for Kunena & it worked. So believe this will sort out the issue, but need your help in knowing which file I need to edit in Easy Blog.

Thanks
Davis
Last edit: 11 years 8 months ago by leo1079.
The topic has been locked.
Support Specialist
11 years 8 months ago #47213 by alzander
Davis,
There's a few easy ways to do what you're looking for. In general though, please note that the SCLogin module is just that.. a Joomla module. There's no specific page you can redirect the user to that is just for the SCLogin module. You can place the module on any page you want to though.

However I installed Easy Blog at a more recent point in time. Now when going to the 'write blog' section, I notice it is pointing to the native Joomla module/component for the registration/logins.
I need this to point to the SCLogin (along with fb/google options) so that the login / registration process is consistent across the board.
Or maybe just add the Login using fb/g+ buttons to the side/bottom. (As long as this will do the same purpose as the SC Login & will not mess up the Joomla users) [/code]
If EasyBlog is pointing to the standard Joomla registration and login pages, the most easy way to add the social login buttons in in the JFBConnect -> Configuration area. There's a setting for "Integrate with Joomla Login". Simply set that to Top or Bottom for where you want the social buttons to show on the standard Joomla page and you're set.

If, by chance, you have another extension that's taking over the registration/login process (like EasySocial, CB, JomSocial or multiple others) you may need to make a modification like noted above for EasySocial (though that's actually not required any more, since they have built in integration for JFBConnect). If you are using another registration flow, let us know what extension it is, and we'll help however we can.

Thanks,
Alex

The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #47222 by leo1079
Hi Alex,

Thank you for the explanation.

In this case, I already had 'Integrate into Joomla' set to 'Top' in the Configuration area prior to installing Easy Blog.
So I'm not sure why it doesn't work...

I've sent you the direct url links on email, that would explain things better.

Cheers
Davis
The topic has been locked.
Support Specialist
11 years 8 months ago #47235 by alzander
Davis,
Thanks for your email and patience. On your site, the page that the user is redirected to when clicking the "Write a Blog" is EasyBlog's own login page. That's not the standard Joomla login page. That's fine, but it means that our auto-login buttons won't display there. They're only intended for the default Joomla login page, which you can see at /log-in/ on your site.

To add the social login buttons to the EasyBlog login page, you'd need to make an edit to their login template files. To do so, you should:
* Setup your template so that you can create template overrides for EasyBlog. More information here
* Create a PHP override by copying /components/com_easyblog/themes/default/guest.login.php to /templates/<YOUR_TEMPLATE>/html/com_easyblog/
* Edit that new file and add the following tag wherever you want the social network buttons to display:
{JFBCLogin text=Or login with a social network}

I hope that helps get you going, but if not, or you run into any other issues, just let me know.

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

None
11 years 8 months ago - 11 years 8 months ago #47239 by leo1079
Hmm... sounds more work than what I was hoping for ;)
No worries, couple of questions / comments if you don;t mind..

Pardon my ignorance, but would like to ask..
It's not really clear to me why I would need to override to make an edit.. I thought I could add the {JFBConnect} to the default easy blog login page to which the write a blog points to, appreciate if you elaborate on that.
Secondy, just fyi -When I posed the question to the easy blog developer yesterday, his reply was

Currently we do not have integrations with JFBConnect but I think it's really simple to add the {JFBConnect} tag in our existing theme files to render the login buttons.


Anyways he is not expert on your component, so probably not aware..

Now, coming to the steps suggested:
I went through >stackideas.com/docs/easyblog/customizations/template-overriding

My template is on 3.x, hence uses the less framework. And I got a specific folder named 'overrides' under \templates\jm-joomclassifieds\less

Hence my question would be -Are the above steps mentioned in the link be valid for mine as well? Or should I look to create that folder/copy_file under less instead?

Thanks
Davis
Last edit: 11 years 8 months ago by leo1079.
The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #47241 by leo1079
Hi Alex, any thoughts on this one?
Waiting for your reply..

Thanks
Davis
The topic has been locked.
Support Specialist
11 years 8 months ago #47248 by alzander
Sorry for the delayed response.

Pardon my ignorance, but would like to ask..
It's not really clear to me why I would need to override to make an edit.. I thought I could add the {JFBConnect} to the default easy blog login page to which the write a blog points to, appreciate if you elaborate on that.
Secondy, just fyi -When I posed the question to the easy blog developer yesterday, his reply was

No problem asking, that's what we're here for.

When you say "add the {JFBCLogin} to the default easy blog login page", that is a template override. You can edit the file in place, where it exists, in the /components/com_easyblog/... folder. Creating a template override, where you copy the file to your templates/<YOUR_TEMPLATE>/html/com_easyblog/... folder is the recommended way to edit that file. By copying the file to your templates folder, when you upgrade EasyBlog, your edit won't be overwritten. If you leave that file in the /components/com_easyblog directory, it will be overwritten when you upgrade.

Don't get worried about the terminology. The important thing is that you are editing the login page file to add the {JFBCLogin} tag.

As for Joomla 3.x, the steps are the same. LESS files are for CSS (the styling output). The steps outlined in that document, and above, for copying the file to the /templates/<YOUR_TEMPLATE>/html/com_easyblog folder are for overriding the PHP layouts that are used to create the actual page. CSS simply applies styles to the element that are placed on the page. The elements are placed in the PHP layout files.

I hope that helps explain, but if not, or you need more assistance, definitely let me know!

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

None
11 years 8 months ago #47249 by leo1079
Ah ok, that explains it :)

So the specific steps in this case would be:

1)create /templates/mytemplate/html/com_easyblog/
2) copy com_easyblog\themes\default\guest.login.php to /templates/mytemplate/html/
essentially to read: /templates/mytemplate/html/com_easyblog/themes\default\guest.login
Add {JFBConnect} in that file

Does that sound correct?

Thanks
Davis
The topic has been locked.
Support Specialist
11 years 8 months ago #47252 by alzander
That sounds almost correct to me. In your templates folder, you just put in in the /html/com_easyblog directory, not com_easyblog/themes/default/ (at least, that's how it normally is and what their documentation indicates as well).

Of course, if you run into issues, let me know, and we'll gladly help however we can.

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

None
11 years 8 months ago #47367 by leo1079
I have got this sorted :)
Can close this thread now.

Cheers
Davis
The topic has been locked.