Topic-icon Altered facebook login image does not work in language file

Active Subscriptions:

None
OK. I know there are several other posts out there, but the solution does not work for me. I managed to create custom facebook login image and made it work using the code as well as choosing to use text image in the SCLogin module.
you can see them both in action here: www.exambag.com
the custom module containing the code to alter {JFBClogin} is on the content page. The modified SCLogin is on the menu bar to the right.
Now when I use the code snippet described above in the language file (for some reason I could not get to load the custom module onto this language file for quiz initiation), it wont work. I am providing the link to the page here:
www.exambag.com/sat-model-test-1.html

I am struggling to know why my web shows COM_QUIZ_REG_ONLY when the {JFBClogin} section of the below code is replaced with the above code snippet!

COM_QUIZ_REG_ONLY=" Some text and html tags ....{JFBClogin}....additional code here that showed the remaining two login buttons"

Regards.
The topic has been locked.
Support Specialist
On your page, I see the 2 Login with Facebook buttons in the sidebar and the top right of the menu. I'm not sure what isn't working whrn you test as I do not see the COM_QUIZ_REG_ONLY text anywhere.

Are you still having an issue getting the button to show? If so, can you provide an image or more information as to where we should be looking?

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

None
I removed the non working code. I placed it for your reference now. Please check both the pages now
www.exambag.com has the module to the right.
The same code placed in the language file for the quiz initiation that will ask for the user to login is broke
www.exambag.com/sat-model-test-1.html (look in the main content area)
If I just place {JFBClogin} it works fine, its the altered code to replace the default login button that fails
The topic has been locked.
Support Specialist
I'm not sure why that isn't working. If your language file string looks like:

COM_QUIZ_REG_ONLY=" Some text and html tags ....{JFBClogin}....additional code here that showed the remaining two login buttons"

Try updating that to something like:

COM_QUIZ_REG_ONLY=" Some text and html tags ....{TESTTEST}....additional code here that showed the remaining two login buttons"

See if that still doesn't work. If not, it's either something with Joomla not liking the { } marks or the com_quiz component that's doing some extra parsing.

In general, we've never heard of this issue though. You should be able to put HTML or any other tags in a language string without any issue.

Let us know how the test above goes,
Alex
The topic has been locked.
Active Subscriptions:

None
OK {JFBClogin} by itslef works fine.

Its the code posted here for the custom image which does hot have anything to do with {JFBClogin} that does not work: www.sourcecoast.com/jfbconnect/docs/common-support-questions

I replaced the code back to using just {JFBCLogin} and you can see that it works fine just that the image is different. Am I supposed to place that code along with {JFBClogin}?
The topic has been locked.
Support Specialist
The code for the custom image is separate from the {JFBCLogin} tag. The custom image code should be used on its own. The {JFBCLogin} tag will create a Javascript based button using Facebook's own widget. Generally, we recommend the custom image as it's more flexible and less prone to bugs since it doesn't rely on Facebook's constantly changing Javascript.

My guess is that Joomla is having difficulty rendering your HTML button when used in a language string. That's not something we test with, and may not be something we can help you work around if that's how Joomla works. Joomla has a lot of checks for security to prevent 'bad' code from causing problems on your site, and it may see the use of HTML and javascript in a language string as a bad thing that it prevents from being used.In that case, if you don't want to use the {JFBCLogin} tag, you'd need to add the HTML for the custom button directly to the template or component that is displaying the button instead of using it in a language string.

Otherwise, can you post the *exact* language string that isn't working, without the {JFBCLogin} tag? If there are quotation marks in the string ", you'll need to replace those with single quotes to prevent Joomla from thinking those are the end of the string.

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

None
Perfect! Thanks for the suggestion. It worked! I can get my buttons uniform and neat as intended. replacing " with ' worked just fine!: exambag.com/sat-model-test-1.html
The topic has been locked.
Support Specialist
Glad to hear we got you going! Hopefully, it's all smooth sailing from here. Should you need anything else though, 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

Thanks,
Alex
The topic has been locked.