I have installed your module and it appears to be working. But, I am unable to log in. If I put incorrect information it then it knows I cannot log in but if I log in then it still tells me I am logged out (uid=0). Is it possible to be "logged in" to a mobile site? Also, when I go to view our forums on the mobile site it says there are no posts, do I need to set up the mobi role and forum access in order to see posts?

-Drew

Comments

jabba_29’s picture

Assigned: Unassigned » jabba_29
Status: Active » Closed (works as designed)

Hi Drew,

This "feature" is by design, sort of, with the current releases of the module -
though it is kind of out-with my the module and more to do with core functionality.

There known issues with some mobile devices and Drupal - http://groups.drupal.org/node/7735

I believe it is the way cookies / sessions are handled..

This factor coupled with the XHTML that is churned out in "comments" etc. is why I "suggest" that user functions such as login / posting threads/comments is not used with the module at this time.... especially for wap users (need different forms etc..)

So in the core of the accessibility module, the uid is always over-written on the mobile site if you are detected as a mobile user.

A mobile theme for v6 will be implemented very soon - no accessibility module required..

Anyway, I hope that all makes sense.
This will probably be changed for Drupal v6 - when I get round to it.

Jamie

drubage’s picture

Thanks Jamie! One more problem, all users on Macs using Safari or Firefox see the mobile version of our site instead of the web version. Any thoughts? Does it make more sense to allow posting of content via text messaging or something? Like they could enter their username, password and the comment/post and it then a custom script could verify the user and insert the data?

-Drew

jabba_29’s picture

Hi,

I know the issue for the MAC - I thought I had sorted it, but I then overrode the initial fix :o

The issue is with PPC in the user agent string.

To fix this there are 2 steps.

1) Remove "ppc" from the browser this file - I think the latest version of the file has this removed already.
2) Remove "ppc" from "$extra" in accessibility.php file @ line 89

Does it make more sense to allow posting of content via text messaging or something?

There is a module that addresses this functionality already, though it's name escapes me at the moment.
The next version of this module "may" include something along these lines though....

Development work starts next week hopefully as I have now created an independent mobile theme for Drupal 6.
I have no CVS access from this machine, so I haven't uploaded yet.

But it is available on my site: bluemobi theme for Drupal v6

HTH...

drubage’s picture

Sorry, but I am having a hard time testing this without a mac. Do you have a mac? Any chance you can try to update those files and let me know if it works?

-Drew

jabba_29’s picture

I do not have a mac either. I used browsershots to get screen shots of the site and noticed the issue.
I have actually uploaded accessibility.php to CVS now.

I additionally made a change to the accessibility.module file but I need to roll it back -
will do this tomorrow -
it does not work as expected.

However, the new version of accessibility.php should fix the issue....

Will update as soon as I have something.

drubage’s picture

I look forward to using this module, thanks for your help!

-Drew