Topic-icon SC Login vs JFBC Login modules

Active Subscriptions:

None
14 years 5 months ago #17444 by ryaarm
What is the difference between SC and JFBC login modules? Until just a few moments ago, I didn't realize that both existed. But, I happened to have a look at the JFBConnect Extension Check, and it showed that SC Login WAS NOT published.

So, I looked at my modules, and discovered that I had a JFBC login module enabled. I looked at SC login module, and it was pretty much the same, but the settings were all in a different order/layout.

I set them up the same, took turns enabling each one, and it seems that they do the exact same thing. The only think I don't like is that the SC login module seems to have a little extra space at the bottom(when viewing the module on the front page, while logged in), while the JFBC one doesn't have the extra space.

So, what is the deal? Should I be using one or the other? What is SC Login? Thanks!
The topic has been locked.
Support Specialist
14 years 5 months ago #17446 by alzander
You should use the SCLogin module. It's a replacement for the JFBCLogin module, and where all future development for our login module will go. It was just included with JFBConnect v4.1. The main differences/improvements over JFBCLogin are:
* It works with both JLinked and JFBConnect
* The template is broke into login and logout files
* The Facebook avatar displayed uses the new method from Facebook, not the older (deprecated) fb:profile-pic tag that JFBCLogin uses

Multiple other code cleanups and minor things.. but in general, it should be used. If you find any problems with the SCLogin that need to be fixed (like the spacing thing), just let us know, and we'll be on it!

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

None
14 years 5 months ago #17447 by ryaarm
Hey Alex,

Ok, I will switch over to the SC login module, and delete the JFBC.

I'm attaching two screenshots. I like how the JFBC one looks (LEFT IMAGE); I don't like the extra space at the bottom of the SC (RIGHT IMAGE). I know it is anal, but that is the kind of guy I am :)

Can you do anything about it?
File Attachment:
File Attachment:
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17452 by phiree
I acutally prefer the space below :)

But i have a question about this module - how do i replace the standard facebook connect button image with my own?

I want to replace it with this -
The topic has been locked.
Support Specialist
14 years 5 months ago #17460 by alzander
Ryan,
In the /tmpl/logout.php file, at line 25 is a <br/> line break. Simply remove that, and your space will be gone.

Philip,
There are instructions on how to do that in the /modules/mod_sclogin/tmpl/login.php file. Open it up, and go to line 65. Basically, you'll need to comment out lines 65-67 and uncomment line 76. Then, update line 76 with the page to that image.

For both of you, we recommend a template override so that your changes stay intact when you upgrade to the next JFBConnect release. To create a template override, copy the file you're editing to /templates/<your_template>/html/mod_sclogin (creating that directory if not there).

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

None
14 years 5 months ago #17465 by ryaarm
Thanks Alex! It worked like a charm! Once again, awesome support!!!
The topic has been locked.
Support Specialist
14 years 5 months ago #17471 by alzander
It's what we do! Glad we could help.

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17485 by phiree
So for a template over ride i edit this file - /modules/mod_sclogin/tmpl/login.php file

and then copy that to /templates//html/mod_sclogin (creating that directory if not there) ?

Sorry to ask such a newbie question but belive it or not never done it.
The topic has been locked.
Support Specialist
14 years 5 months ago #17497 by alzander
No problem for the questions. Generally, you should copy the file first, and then edit in the new directory. That leaves the 'original' intact.

Basically, what Joomla will do is check that /templates/<your_template>/html/mod_sclogin directory to see if a template file is there. If so, it will use that. If not, it will use the one from the modules/mod_sclogin/tmpl directory. This allows you to change the file in your templates directory and be assured that those changes won't be overridden when you upgrade to the newest version, since upgrading will replace the files in /modules/mod_sclogin.

Hope that explains the process and why you want to do it. Editing the file directly in the /modules/mod_sclogin/tmpl is fine, but may cause you problems unexpectedly when you upgrade.

Good luck,
Alex
The topic has been locked.