× Joomla Facebook Connect support forum

Topic-icon moduels not working properly

Active Subscriptions:

None
13 years 4 months ago #6404 by seflera
Hello,

I have a few questions:
1.Facebook logo for logging in with facebook is not showing?
Titlehttp://prirodnilek.com/jomsocial/pocetak
2. "powered by JFBConnect" is showing, and it is disabled in backend

Regards,
Jovana
The topic has been locked.
Support Specialist
13 years 4 months ago #6407 by alzander
1) Uh oh. You've found a language that Facebook doesn't support. That's a first. The Facebook JS file that we're trying to load below is coming up with an error:
connect.facebook.net/sr_YU/all.js

A list of the languages Facebook supports (in an XML file) are below. Forgive my lack of knowledge, but the closest language I could find in that file is:
sr_RS - Serbia
If that works, or you find another code that most closely matches your language, you'll have to make one minor code modification to force loading the correct Facebook language. In the file /components/com_jfbconnect/libraries/facebook.php, around line 66, you'll see a few statements about $locale. At the bottom of these, add the following:
$locale = "sr_RS"; (or whatever other language code seems to fit your case best.

Sorry for the inconvenience.

2) Each module has it's own on/off switch for the Powered by Facebook link. We'll be updating these in a future release to use the main control in the component.

Hope that helps get you on your way. Please let us know what you determine about the language setting.

Thanks!
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #6459 by seflera
Thank you for your reply. I added the code, and now it is working. That is the right language. Serbian language can be written in two kind of letters, one like alphabet, and the other like russian letters. Facebook made serbian language application only in letters like russian.
The topic has been locked.
Support Specialist
13 years 3 months ago #6463 by alzander
Great. Glad we could help out. That's the first language we've seen that isn't automatically detected. When we release 3.1 (soon), we'll have to let you know how to change that string again. In a future release, we'll add a parameter to let you specify a language instead of using the auto-detection, but it won't be there in the next release.

Thanks for posting back. Always like to get closure on support requests!
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #6500 by seflera
Hello, I have some new questions.
1) I have the same problem like in topic www.sourcecoast.com/forums/topic?id=1457&p=1#p5841 , have done what is suggested, but still I didn't do something right, prirodnilek.com/jomsocial/pocetak ?
2) On the same page in right column there is module JFBLogin and link REGISTER (registruj se), which leads to Joomla users registration, and not Jomsocial users registration? Maybe, I didn't configure it somewhere...

Thanks in advance
The topic has been locked.
Support Specialist
13 years 3 months ago #6504 by alzander
1) For the login button text issue, my best guess is that there's an issue with your language file. Please make sure that the text for the string below is all on one line:
LOGIN USING FACEBOOK=Login With Facebook

You may want to try changing the right side of the string to something very short (as a test) to see if that fixes the problem.

2) In the JFBCLogin module there is a paremeter for "Registration Component". If you set that to JomSocial, it should fix the link.

Good luck, and let us know how it goes!
The topic has been locked.
Support Specialist
13 years 3 months ago #6616 by alzander
Jovana,
I took a mental note to update this post when the 3.1 release came out to let you know where to update the language string. The 3.1 release shifted things around a bit, so the instruction above, while great for 3.0, don't work for 3.1. We haven't sent out a newsletter yet about the new release, that will happen next week, but wanted to make sure this was up-to-date first.

To modify the locale setting in 3.1, you'll need to edit the /plugins/system/jfbcsystem.php file. At line 45, you'll see:
$locale = str_replace("_", "_", $locale);

Underneath this, simply put:
$locale = "sr_RS";

That will override the automatic detection as before. With the next minor release, we'll be adding an override setting in JFBConnect so you can hard-code a language like this more easily.

Good luck!
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #6649 by seflera
Thank you very much for great support and thinking of my case! I can't believe that I am the only one using this extension for facebook application in serbian (many people prefer using facebook in english, as they are used to it). I have added the code, and even had no template override to do this time (looks fine, although I thought it would all mess up, but I suppose language files have stayed the same).
The topic has been locked.
Support Specialist
13 years 3 months ago #6655 by alzander
Glad we could help, and it's good to hear that everything seems to be working well for you now.

Good luck, and if you have any other questions, just let us know!
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #7074 by seflera
Hi,
now, I have another question.
Where to change the text that is showing up after a registered user logs in with facebook account? It says: "Automatically logging you in with your facebook credentials."

Regards,
Jovana
The topic has been locked.