I have looked through every forum and can't find this anywhere so here it goes...

Website: www.washingtonpastime.com

I have installed the Mobile jQuery theme to work for my mobile devices. It has worked great, and detects when a mobile device is accessing my website. It switches themes from Bartik to Mobile jQuery without problems.

However, I want some content to show up differently in Mobile and other content not at all. To adjust this for mobile, I went to: Structure>Content Types>Manage Displays>Custom Display Settings. I turned on Full content, Teaser, and Mobile; and then saved it. Then, I clicked on "Mobile" in the upper right. I then moved "Image" and "Tag" to "Hidden" area in the lower area and saved it.

This should have made it so when I use a mobile device to access my website, I do not see images or tags. However, I see both. When going back into the "mobile" secton on Manage Displays, it shows that Image and Tag are "hidden" but that is not what actually happens on mobile devices.

I have tried different settings for these two featurers. I have also tried changing setting for other custom displays (like teaser) and these work just fine. I also enabled another mobile theme (cloudy day) and tested it and the custom display setting still did not work.

For these reasons, I know it is not an issue with custom displays (teaser is working) and I know it isn't an issue with Mobile jQuery (cloudy day has same problem). So, I'm thinking it is Mobile Tools. I have been struggling with this for days and am at a complete loss.

Help!

CommentFileSizeAuthor
#11 mobile_tools.zip40.98 KBlquessenberry

Comments

darylhedley@hotmail.com’s picture

Hey,

I have exactly the same problem. All I want to do is change the view of images so I can change the size of them when a mobile device is accessing the site...did you find an answer?

Thanks

washingtonpastime’s picture

repeat deleted

washingtonpastime’s picture

Unfortunately I haven't. I have been stuck on this stupid bug for over a week now.

I do have some extra info. The "Mobile" section of the custom displays actually doesn't seem to work at all. However, Teaser (and others) work just fine. "Mobile" will not even resize photos for view on mobile devices.

I currently have 7.7 so I will try upgrading the core to 7.8 tonight to see if that makes a difference. Are you using 7.8?

let me know if you find a fix....

washingtonpastime’s picture

The issue also might be that I haven't added Browscap for mobile tools. Do you have browscap? http://drupal.org/project/browscap

It states in the description that mobile tools uses this to help it detect a device as mobile.

darylhedley@hotmail.com’s picture

I had Browser cap and running 7.7 yet still no luck.

No files seem to be uploading to my directory even though the folders are writeable. Also the site doesn't redirect when a mobile user accesses it.

It's like it's completely stopped working.

Did you have any luck?

May contact the mobile tools developer.

washingtonpastime’s picture

I sent a message to the mobile tools developer last night after uploading browscap, a couple other mobile modules, and updating to 7.9. Nothing helped. I'll let you know what he says. There was a new version that came out a couple days ago. I deleted mobile tools and reinstalled the update. No issues during the install but the mobile functionality is still not working.

Also, if you turn off mobile tools, the "mobile" option disappears so is definitely seems to be a mobile tools issue.

lquessenberry’s picture

I have painstakingly created several field groups to be displayed differently based on the detection of a mobile device, and then I found this thread... 18000 nodes with over 80 fields that will no doubt be at the mercy of this bug. Please fix this if you can.

lquessenberry’s picture

I just came up with a work around. I added "$_GET['v'] = 'mobile';" after line 311 of the mobile_tools.module file. This superimposes a get variable being set to select view mode. Only uses mobile view mode on mobile device detection. If you look around, you can do it for theme redirection too.

mohan.kumar’s picture

Category: bug » support

i used "$_GET['v'] ='mobile';" in mobile_tools.module file. But still it doesn't works. View for teaser and full content working but mobile doesn't works. Could you please attach a patch. Thanks in advance

lquessenberry’s picture

It seems as if my quick fix has been broken somehow. I am trying to reinitialize it to make sure it works. You must have Display Suite Extras installed and turned on so that you can append ?v=mobile to the end of the URL and test to see that your display works.

lquessenberry’s picture

StatusFileSize
new40.98 KB

Okay, so I found out the way to make mine work. I was using the dev version and not the unstable version. I have provided a hack version here. I changed the info file up a little bit just so it illustrates within your admin screens that this is not the official release but is a custom job. I am not good at making patches, and this may be complete garbage according to the Drupal community.

You must have Display Suite enabled with the Extras module turned on. In the configuration panel for Display Suite Extras, you will need to activate the following option:

View mode per node
Change view modes for individual nodes. A new tab 'Display settings' will appear on the content create form.
You can also pass the name of a view mode through the URL, eg node/x?v=full.

This worked in a pinch for me and does incorporate my previous statements above about line 311 if using the dev version. The version i included here has the changes made to it.

benjaminkyta’s picture

Thanks

yashadev’s picture

Status: Active » Closed (fixed)