Topic-icon k2 login and JFBC login

Active Subscriptions:

None
13 years 3 months ago #30981 by solowind
Okay, so today I installed the K2 system on my joomla 3.0, the only thing is, I want to use the k2 login module (arabgamingworld.com) and I want it to include the facebook connect feature. The reason I'm not using the SCLogin, because then this module won't show a link to the users profile.

So is there a way to make K2 login module work with facebook conncet?

Some basic info:
K2 User (module type) is a better version of the Joomla! login module. Use it to display a login box for your users. When users are logged in, they see the user block (toolbar), which allows them to perform tasks like: add/edit K2 items (based on their access rights), moderate comments to their items (again, based on their access rights), update their personal details (profile) and quickly access all their published items (the user page/blog). This module replaces the 'K2 Login' module in v2.5 and later. If you are using the 'K2 Login' module, please make sure you replace it with this one. In v2.6 of K2, the 'K2 Login' module will be permanently removed from the K2 extension package.

Thanks
The topic has been locked.
Support Specialist
13 years 3 months ago #30983 by alzander
Replied by alzander on topic k2 login and JFBC login
Yes, you can add the Login with Facebook button to that module. It's pretty easy actually, but I can see that we don't have documentation for that yet.

To do so, please copy /modules/mod_k2_user/tmpl/login.php to /templates/<YOUR_TEMPLATE>/html/mod_k2_user/login.php . Create any directories that don't already exist in that path. That creates a 'template override' which makes sure your changes don't get erased when you upgrade K2.

Then, edit that file. Around line 37, you'll see:
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('K2_LOGIN') ?>" />
Add a line below it, so it looks like:
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('K2_LOGIN') ?>" />
          <p>or {JFBCLogin}</p>
Obviously, you can change 'or' or add other text if you'd like. Additionally, you could use your own custom image if you'd like as well, instead of the standard 'blue button'. To do so, replace the {JFBCLogin} text like so:
<p>or <a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="/link-to-your-custom-image.jpg" /></a> </p>
Hope that helps, but if you run into issues or have any other questions, just let us know!

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

None
13 years 3 months ago #30995 by solowind
Replied by solowind on topic k2 login and JFBC login
Great! Thanks a bunch, that little trick gave me more idea about coding too!

Works like a charm.
The topic has been locked.
Support Specialist
13 years 3 months ago #30999 by alzander
Replied by alzander on topic k2 login and JFBC login
Glad to hear that helped get you going, and maybe taught you a little too. We like to explain the 'right' way instead of just getting it done. Saves us on support later :) Should you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Best of luck,
Alex
The topic has been locked.