Support Forum

mobile devices problem

FI fiddlerman
fiddlerman
Member

Please check out this thread from my site regarding the issues of using an iPad, and iPhone. One person claiming there is a problem with Kindle and Android tablet as well but that is the first I’ve heard of this. The users insist that the trouble only began after the last upgrade.

http://fiddlerman.com/forum/off-music-topics/ipad-and-this-forum

Thanks

15 Answers

New Answer

MP Mr Papa
Mr Papa
Member

can you elaborate on what the problem might be???

if its using tinymce, would have to wonder if its not compatible with ipad… in previous versions of tinymce (our own version) we explicitly disabled it on mobile devices… but the latest version switched over to the wp tinymce… and the wp folks insist it works with the ipad, so we left it enabled… in some testing we did, it was working too – again, at least some level seem to indicate the wp tinymce worked fine with ipads… we also tested with a couple of android phones too… when I say we left it enable, I mean we let WP determine whether to use tinymce or not…

I just ran through a test site of ours with my ipad 3 and did not encounter the problems that seem to be indicated in you forum post…

and thus far, this is first report (only been in the wild a couple months) of mobile issues with us using the wp tinymce editor…

you are running wp 3.5 right?

what I can probably do at this point is offer up a filter to allow users to disable tinymce as needed on mobile devices if they are having problems with it…

MP Mr Papa
Mr Papa
Member

btw… I did visit your topic with an ipad… but guests cannot post so cannot test there…

MP Mr Papa
Mr Papa
Member

thanks for credentials…  definitely some general wonkiness on the site with an ipad 3 – not limited to forum…

so 5.2.1 is released now… it includes a new filter you can do to override tinymce usage on mobiles…  we are leaving that general decision up to wp since we are just using their tinymce editor now…  but you can override that wp decision if desired…

so, in your sp theme spFunctions.php file, lets add this:

add_filter(‘sph_this_editor’, ‘fm_my_mobile_editor’);
function fm_my_mobile_editor($editor) {
    global $SFMOBILE;
    if ($SFMOBILE) $editor = 4;
    return $editor;
}

tested that last night, but forgot to save my ‘test’ so retyping it again… should work… ;)

please be sure to upgrade to 5.2.1 before doing this (wont hurt anything if you dont, but wont work either)

 

FI fiddlerman
fiddlerman
Member

I did it. Don’t have an iPad to test it with but will see if any comments come about now.

Thanks, as usual, you guys provide an incredible, unbeatable support.

MP Mr Papa
Mr Papa
Member

Thanks for the kind words! Will try to stop by later if I can… but let us know how the feedback goes…

FI fiddlerman
fiddlerman
Member

They say that the issues are solved but scrolling and zooming is real slow now. cry

MP Mr Papa
Mr Papa
Member

It was/is for me on any of your pages… as I said before, the ipad experience was pretty wonky on your whole site…

JI jim
jim
Member

We have a number of iPad users reporting issues since our latest WP & SP upgrades. I added the filter above to the functions file for moth the theme we have selected to load on mobile devices (Stacked) and the theme we’re using on our forums (Hacked current Default).

I don’t have an iPad to test, but on an iPhone the TinyMCE editor is still loading. It worked for me, but I was expecting the plain text editor. Which $editor = 4question

MP Mr Papa
Mr Papa
Member

not sure I follow you jim… some typos in there confusing…  to reiterate, wp devs think tinymce works on ipad… and in our testing, it does work too…  however, wp is certainly only testing in the wp admin where a whole lot less js/jquery is loaded… so if something else on the front end  is loading js/jquery that is problematic for the ipad, problems could ensue…  hence the new filter to force it off…

you would want to add the filter in the spFunctions.php file of the theme being used for mobiles… might be the same as non mobile…

have tested this with multiple android devices and ipad on multiple sites.. works great..  I do not have an iphone – nor do I want one ;) – to test with…  but assuming that the iphone is properly identifying itself as a mobile device, should work… or they have changed it and the mobile detection logic needs updating…  we know that iphone detection has worked previously so perhaps browser or ios specific…

so on these iphones at issue, which browser, and what is the user agent string it identifies itself as?

JI jim
jim
Member

Sorry for the confusion. My question was: Which editor is identified as “4” in the filter?

I added the code provided to our functions template for the Stacked theme we are serving up for mobile devices, but when viewing the forums on my iPhone I still got the full TinyMCE editor. I guess I was expecting the plain text editor like SPF used to use on mobile browsers by default.

I wonder which editor is being served up on the iPad (hint, hint).

on these iphones at issue, which browser, and what is the user agent string it identifies itself as?

iPhone 4, v. 6.0.1, Browser: Safari. Not sure how I would identify the user agent string. confused

MP Mr Papa
Mr Papa
Member

wp determines which editor is served on any device…  since we had problems with our version of tinymce working on mobile devices, we had forced it to be a plain textarea…  when we switched to the wp built in tinymce version, wp already has tested and has logic as to which devices it works on… so we let their logic determine which editor goes on mobile devices…

In my testing on ipads and android phones… as well as with emulators that allow us to set the user agent string (that is how a browser identifies itself), it was working nicely…  so yeah, on ipad you should probably get tinymce…

if you use that filter mentioned above, it will disregard what wp says and for any mobile device will force a plain textarea…  the editor type of 4 means plain textarea…

As I mentioned in post, I had tested it, but didnt save my code so had retyped it… will try to retest it… but the other user confirmed it working…

you should be able to go to:  http://whatsmyuseragent.com/

on your mobile device and it will tell you the user agent…

another test would be in your spFunction.php code that you put in to add after the global declaration an:

ashow($SFMOBILE);

and see if it thinks you are on a mobile device…. 

JI jim
jim
Member

Mr Papa said
if you use that filter mentioned above, it will disregard what wp says and for any mobile device will force a plain textarea…  the editor type of 4 means plain textarea…

That was my point, I’m still getting TinyMCE on my iPhone after adding the filter.

Thanks for the clarification and the link, I’ll investigate further and await feedback from our iPad users.

MP Mr Papa
Mr Papa
Member

okay, I did some more testing today and things worked fine… at least with ipad 3 and android phone…

worth noting more changes coming in next version as we reintroduce the wp tinymce editor in the profile signature editor… this whole concept is improved too…

JI jim
jim
Member

The filter was working properly after all. But I’ve turned it off as TinyMCE appears to be functioning fine after updating to 5.2.2 and the latest SF editor plugin. Other iPad users are also reporting better performance.

Thanks again!