Mobile device Facebook and Twitter buttons error.

Jan 15, 2013 at 5:11 PM
Edited Jan 15, 2013 at 5:11 PM

Hi

I have entered the the api keys for both Twitter and Facebook and these work perfectly from a PC browser, when I view the forum from a mobile device the Twitter and Facebook login buttons come up with an error saying "Error loading page".

Not sure how to resolve this.

Regards

Colin

Coordinator
Jan 16, 2013 at 9:05 AM

Hi Colin!

I see you are using the alternate mobile layout. The layout that is delivered for mobile is in beta, it is not "mature" and it is not very well tested... It was intended to show that the functionality of "alternate" template for mobile is possible...

Now, you have 3 possibilities:

1 Disable the "alternate layout for mobile" feature.

You can do this by removing the <mobile .../> element, inside the Site.config.

2 Fix this, by adding the following line in the mobile.js file.

  $(".facebook a, .twitter a").attr("rel", "external");

(Between line 9 and 10, becoming line 10)

3 Change the mobile layout view (use another design; mobile js framework; etc...).

You can do this by changing the Mobile.cshtml located inside "/Views/Shared/" folder.

 

Hope it helps,

Kind regards,

Jorge

Jan 16, 2013 at 9:07 PM

Hi

Thanks for getting back to me so quick, works perfectly now, problem I have is that im not a coder or anything so get a little lost now and again. Used the code below

$(".facebook a, .twitter a").attr("rel", "external");

Cheers

Colin