Topic-icon SCLogin and mobile template issue

Active Subscriptions:

None
14 years 2 months ago #20911 by sbouloc
here's the link for the mobile template page:
www.tahitireviews.com/index.php/mobile

I have added the JFBConnect module on that page
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #20937 by mtk
Hello,
there seems to be a JS problem with jReviews (something with the language):
jrLanguage is not defined
[Break On This Error] 	

'compare_heading': jrLanguage["compare.heading"],

I suggest you first try to remove jReviews from that mobile-test page, and add a 'regular' joomla content page.
if that works, then we can assume the issue is JReviews.

Mati
The topic has been locked.
Support Specialist
14 years 2 months ago #20955 by alzander
Mati is correct that jReviews seems to be having issues. However, it's more widespread than that. The Javascript that JFBConnect normally inserts into the page is missing. If you open the HTML and search for "all.js", it's not there. That's the Facebook Javascript library and is required for operation. It's on your non-mobile site.

Something seems to be removing Javascript and other code from at least JFBConnect and jReviews. I'd look into what's doing that and it will probably fix your issue.

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

None
14 years 1 month ago #21385 by sbouloc
Hello Alzander and Mati,

I have switched to a yootheme template but the problem remained unfortunately.
Following your recommendations and also this post , here's what I have done to have the Facebook Login button inside my mobile template:

1- added this code
$this['asset']->addFile('js', 'js:all.js');
in /templates/yootheme_template/layouts/template.config.php where is says "// add javascripts"

At this point, the JFB Connect module displays correctly when published in a mobile module position. Then I wanted to have the Facebook button in the original login module of the mobile template. So I looked for the proper template file to edit:

2 - added {JFBCLogin} in the login.php file in /templates/yootheme_theme/warp/systems/joomla/layouts/mobile, right before the end of the first form tag

I hope this will help others. But at least this will help me redo these steps in the future :P
Please feel free to react if you see see something wrong.

Cheers.

File Attachment:
The topic has been locked.