Switch between entry fields and button and mobile template

Create fresh and professional look of personal or blog websites with AppsPro Tech
GK User
Sat Apr 28, 2012 3:48 am
Hello,

1- I use jReviews on my site and on the listing page, where the login module appears (bottom of the page) the login button appears before the entry fields. How can this be fixed?

2- which file should I edit in order to load javascripts in the mobile theme? I need this so I can load a Facebook Connect button in the loin of the mobile theme. I have done this in a yootheme template by adding
Code: Select all
$this['asset']->addFile('js', 'js:all.js');

in /templates/yootheme_template/layouts/template.config.php

3- which file should I edit in order to include the Facebook Connect button in the mobile template?

Tahnk you for your help.
User avatar
Expert Boarder

GK User
Sat Apr 28, 2012 3:56 am
screen-listing-login.jpg
User avatar
Expert Boarder

GK User
Sat Apr 28, 2012 11:07 am
The button problem is now solved by adding a jreviews override, thanks to Kristian of the jReviews support team.
User avatar
Expert Boarder

teitbite
Mon Apr 30, 2012 8:49 am
Hi

Sorry I haven't seen this thread. Let me know if You need my help.
User avatar
Moderator

GK User
Mon Apr 30, 2012 11:28 am
Hello teitbite,

which file should I edit in order to insert the {JFBCLogin} tag for the facebook connect in mobile template?

Thank you for your help.
User avatar
Expert Boarder

GK User
Mon Apr 30, 2012 11:48 am
Teitbite,

I found the file to edit:
/templates/gk_appsprotech/html/com_users/login/default_login.php

I have inserted the JFBConnect button but it will display only the text on the mobile template.
I wonder if the javascripts are loaded correctly (like on my post on the World News II forum)
User avatar
Expert Boarder

teitbite
Wed May 02, 2012 2:35 pm
Hi

{JFBCLogin} is for a mambot to replace it with a regular code. Unfortunately this would require some code changes. But You can always use a true code which would add it. Can You please show me Your site ?
User avatar
Moderator

GK User
Wed May 02, 2012 7:11 pm
Hello teitbite,

Site is visible on:
[url]tahitireviews.com[/url]
User avatar
Expert Boarder

teitbite
Thu May 03, 2012 1:50 pm
Hi

I can see You have a module "Connexion avec Facebook" already on Your site. I've checked it and it's working ok. So what's the problem ?
User avatar
Moderator

GK User
Thu May 03, 2012 10:46 pm
This is workink fine with desktop template, the problem is with the mobile template, it will display only the text, which does nothing. I had this with another template (non-gavick) and I had to load the javascripts in order to make it work.

Sans-titre-1.jpg
User avatar
Expert Boarder

teitbite
Fri May 04, 2012 1:41 pm
Hi

Ok. I've seen this problem before. Programmers has already solved it, so please try update the template to the latest version.
User avatar
Moderator

GK User
Sat May 05, 2012 9:04 am
teitbite,

the template I use is the latest version: 3.1
User avatar
Expert Boarder

teitbite
Sat May 05, 2012 4:03 pm
Hi

I've reported that to programmers.
User avatar
Moderator

GK User
Sun May 06, 2012 9:14 am
thank you
User avatar
Expert Boarder

teitbite
Sun May 06, 2012 2:27 pm
Hi

You'll thank me when I got an answer about this :)
User avatar
Moderator

GK User
Fri May 11, 2012 2:58 am
The facebook button is still disabled in mobile template after the upgrade to version 3.1 unfortunately.
Any news from the Devs?
User avatar
Expert Boarder

teitbite
Mon May 14, 2012 2:04 am
Hi

I was asked to provide them with Your ftp access to site. They will check what is wrong. Can You please send it to me ?
User avatar
Moderator

GK User
Mon May 14, 2012 2:21 am
Teibite,

ftp and user account logins are sent to your mail.

Thank you.
User avatar
Expert Boarder

teitbite
Mon May 14, 2012 5:35 pm
Hi

I've gave programmers Your access, but just a moment after I did this I've recived a message from them:

@teitbite the screen in post shows not build in template login module, please compare with our demo

so it is probably not template issue that some external module don't show nice button but text, probably some javascript is missing for this module in mobile version
User avatar
Moderator

GK User
Mon May 14, 2012 7:37 pm
teitbite,

This is what I am talking about in the original message of this post. In fact I have removed the Gavick FB button and replaced it by the JFBConnect button from Source Coast in the GK login form. As mentioned in the original message, I suspected that there must be some Javascripts loads missing. The thing is that I don't which file of the GK template loads the Javascripts. Can the dev point me to the right direction?
My site is about to go live and I just have this little issue. But this prevents my members to login from their smartphone.
User avatar
Expert Boarder

teitbite
Tue May 15, 2012 1:50 am
Hi

What I pasted was a replie from programmers couple of hours before I send them Your access so it's not the end of the topic. I just wrote it so You know the progress.

A head part for mobile to load files is in /layout/blocks/mobile
User avatar
Moderator

GK User
Tue May 15, 2012 2:09 am
teitbite,

Thank you for the update. I'll give a try to the mobile file once I got back home.
User avatar
Expert Boarder

teitbite
Tue May 15, 2012 2:20 am
Hi

I'm affraid without knowing which files are missing this can be very hard. Maby restoring the template login will be the fastes solution ?
User avatar
Moderator

GK User
Tue May 15, 2012 2:46 am
In fact I had uploaded all the template files with ftp twice since the latest update came out, so I pretty sure all the files are in place. I'll try to add the code to load all the javascripts and see if it works
User avatar
Expert Boarder

teitbite
Tue May 15, 2012 5:08 pm
Hi

No no. That's not what we meant. Template files are in place for sure. The problem is that this new modules may be in conflict with old fb button and the files may not be loaded by joomla. So it's not really something You can truck without knowing which files should it use exacly.

I really think that the easiest in this point would be to get back to the template's regular fb login button.
User avatar
Moderator

GK User
Tue May 15, 2012 8:50 pm
The 2 reasons I have switched to Source Coast FB Login module are:

1st, I could not make the GK FB login to work on my site. I have posted numerous messages in the forum and couldn't have it fixed. In fact I couldn't make it work on the official GK demo site either.

2nd, the GK FB button does not appear on the mobile template login
User avatar
Expert Boarder

GK User
Thu May 17, 2012 12:21 am
Hello teitbite,

I got some feedback from the soucecoast staff. They had a look at my site and here's what alzander said:
As for the login button missing, yes, again, something is stripping our Javascript code. The body tag and contents after look like:
Code:

<body><div id="fb-root"></div>



<div style="di....

That space in the middle is where our code should go.. but it's missing! JFBConnect is also adding the fb-root div, so our plugin is working, but then something's coming along and removing that extra stuff.


I hope this can help solve this problem.

Regards
User avatar
Expert Boarder

teitbite
Thu May 17, 2012 4:46 pm
Hi

I've heared that regular fb login has been fixed already, but if You have an access to this new module developer please ask Him what JS files should be loaded and simply try add it manualy in /layouts/blocks/mobile/

Meanwhile I'll try to rush a response form programmers.
User avatar
Moderator

GK User
Fri May 18, 2012 9:25 pm
Hello teitbite,

event the regular fb login is not loaded in the mobile template.
Unfortunately, source coast is saying they can't help with that issue.

Do you have any feedback from the dev?
User avatar
Expert Boarder

teitbite
Sat May 19, 2012 1:08 am
Hi

No solution, but I can see them exchanging ideas in this topic.

Anyway why developers cannot help with this module ? If it's a matter of loading right javascript files than I can try add it manualy, but need to know what exacly.
User avatar
Moderator

GK User
Sat May 19, 2012 1:12 am
teitbite,

they are saying that it is the template that prevents somehow the javascripts to load. And I have also noticed that the jreviews javascripts are also blocked. So it is not a problem with the JFBConnect component.

I hope the devs will find a solution.

Thx for your support.
User avatar
Expert Boarder

GK User
Sat May 19, 2012 8:44 am
A funny thing happens when I enable SH404sef: the facebook button displays correctly (image) but it leads to a 404 error page on the facebook login validation.
User avatar
Expert Boarder

teitbite
Mon May 21, 2012 7:37 am
Hi

This is not so funny :) Conflicts happen I know, but how to explain if a 3rd party extention fixes the problem ??? Hopefully programmers get to the bottom of it.
User avatar
Moderator

GK User
Wed May 30, 2012 7:20 am
Hello,
It's been a month now I requested some help on this issue and I still have no solution. Are the developers on it or maybe they don't have time for this? Mys site has been online for 2 weeks now and I am kinda sad I can't access it from my mobile.
User avatar
Expert Boarder

teitbite
Wed May 30, 2012 9:09 am
Hi

I do not know how to apologize to You. I've left couple of messages. I'll try to talk directly to lead programmer and assign someone to this as fast as possible.
User avatar
Moderator

GK User
Wed May 30, 2012 9:15 am
teitbite, thank you for trying.
User avatar
Expert Boarder

teitbite
Wed May 30, 2012 9:28 am
Hi

You'll thank me when I'll get Him here. Right now I'm waiting for a reply on skype.
User avatar
Moderator

teitbite
Wed May 30, 2012 9:59 am
Hi

Ok. Now it's clear why there were no answer to this. There were a second thread with the same issue reported by different moderator, so programmers thought they answered already and it was in this second thread acctualy. Sorry. Here is a solution:

Finally I got this, GKParser class is stripping dynamically added script so we need to remove this part from all mobile head files like :

- ../layouts/mobile/head.android.php
- ../layouts/mobile/head.iphone.php
- ../layouts/mobile/head.handheld.php

code that you need to delete from files mentioned above is :

Code: Select all
// remove mootools and other template scripts
$k2option = JRequest::getCmd('option');
if($k2option != 'com_k2') {
    GKParser::$customRules;(...)
}


Right now it is the only solution and I think the proper one because when GKParser strip this script it surely cause many problems with other extensions (there are several topics about not working 3rd party plugins in mobile versions, probably this was the reason)

User avatar
Moderator

GK User
Fri Jun 01, 2012 1:34 am
OMG, it's just working with this! Finally.
Thank you for the help teitbite.
User avatar
Expert Boarder

teitbite
Fri Jun 01, 2012 2:04 am
Hi

No problem. Sorry I took that long.
User avatar
Moderator


cron