k2 login and JFBC login

k2 login and JFBC login

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 (http://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

solowind
Badar
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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:

Code:

    <input type="submit" name="Submit" class="button" value="<?php echo JText::_('K2_LOGIN') ?>" />

Add a line below it, so it looks like:

Code:

    <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:

Code:

<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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Online
24016 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: k2 login and JFBC login

Great! Thanks a bunch, that little trick gave me more idea about coding too!

Works like a charm.

solowind
Badar
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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 current/smile 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:
http://extensions.joomla.org/extensions … ation/7215

Best of luck,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Online
24016 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11612
Total Polls:
0
Total Posts:
48798
Posts today:
15
User Info
 
Total Users:
47658
Newest User:
lszlsz
Members Online:
6
Guests Online:
955

Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program