Problem with mobile access to PivotX admin

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

Problem with mobile access to PivotX admin

Postby Marza » Wed Jul 27, 2011 4:27 pm

We just discovered that mobile users are automatically redirected to the mobile admin version of PivotX: /pivotx/index.php?page=m_editentry
That's a pity, because not only are some mobiles perfectly capable of showing the default interface, there is also a problem with fields that are not supported by the mobile version.

Because fields like subtitle and bonus fields don't show up in the mobile version, whenever a user edits an entry in which those fields have content, that content gets lost after saving. Yesterday it seriously messed up our home page.

Is there any setting we can change, so this doesn't happen?
Marza
 
Posts: 85
Joined: Sat Dec 12, 2009 8:49 pm

Re: Problem with mobile access to PivotX admin

Postby verbaljam » Wed Jul 27, 2011 4:43 pm

In addition to Marleen: the mobile admin looks good, but it's almost impossible to work with. It's not really possible to edit the text of entries, because everything is simply too tiny. And that's not because of my smartphone, because that's a HTC Desire HD, with one of the largest screens in the market. I think the default font should be larger in the text-edit fields, so that it's easier to position the cursor.
But I would rather have the choice between the normal admin screen and the mobile admin screen. And like Marleen said, it should show all extra fields that are implemented in the normal admin screen.
An example of losing content: we have a photo section on our website. The photo is added to an entry via a bonusfield. Yesterday I edited the entry because it had a wrong title. So I only edited the title, saved the entry.
The next day we noticed the photo was missing. Appearently the contents of the bonusfield is simply erased when it's not present in the mobile admin screen. This makes the mobile version unusable for me.
If you read Dutch, you read Verbal Jam.
Lack of documentation makes even the best program useless...
verbaljam
 
Posts: 130
Joined: Thu Apr 22, 2010 8:32 am
Location: Amsterdam

Re: Problem with mobile access to PivotX admin

Postby hansfn » Thu Jul 28, 2011 7:35 am

Yes, there should be an easy way to select the full version for mobile devices. (We have a config setting "is_mobile", but it only works the other way - used for testing the mobile version on the desktop.)

Anyway, until we have fixed this you can either comment out the following code

Code: Select all
    if (isMobile() && ( substr($page, 0, 2)!="m_" && $page!="login") ) {
        $page = "m_dashboard";
    }

in the function displayPage in lib.php, or change it to

Code: Select all
    if (isMobile() && $page=="") {
        $page = "m_dashboard";
    }

The later approach has the benefit that you still get the mobile version as the default, but can switch to the full version by using example.org/pivotx/?page=dashboard (After going there, you'll stay in the full version.)

I have added this to our tracker.
hansfn
Developer
 
Posts: 3072
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Problem with mobile access to PivotX admin

Postby Marza » Thu Jul 28, 2011 4:59 pm

Thanks Hans, we'll use this for now. Will the problem with the subtitle and bonus fields be fixed as well? Or is that a request I should direct to the maker of Bonus Fields?
Marza
 
Posts: 85
Joined: Sat Dec 12, 2009 8:49 pm

Re: Problem with mobile access to PivotX admin

Postby dmd » Sun Oct 16, 2011 8:58 pm

Just need to set a user's level from my phone (travelling) and am completely lost.
There seems to be no way to get to the normal admin Interface.
(and even if there is a hidden config how can I get there?)
dmd
 
Posts: 6
Joined: Sun Oct 09, 2011 4:48 pm

Re: Problem with mobile access to PivotX admin

Postby hansfn » Mon Oct 17, 2011 10:48 am

Yes, it's very annoying that we have no easy way to move from the mobile version to the desktop version. Actually, the only (hard) way to get the desktop version on your phone is to switch the user agent of the web browser. (On my HTC I'm using the Dolphin browser and it allows my to switch to a desktop user-agent.) If you can't switch user agent, you have to edit the PivotX source code (as shown above), but I guess that is even harder on your phone.

We need to fix this - sorry.
hansfn
Developer
 
Posts: 3072
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Problem with mobile access to PivotX admin

Postby dmd » Mon Oct 17, 2011 4:35 pm

AllInOneBrowser did it for iPhone
dmd
 
Posts: 6
Joined: Sun Oct 09, 2011 4:48 pm

Re: Problem with mobile access to PivotX admin

Postby Bob » Fri Oct 28, 2011 7:46 am

The reason why i didn't make a switch to the full version on mobile browsers, is because the full version of the interface just doesn't work on mobile devices.

If you change the code to access the full version, be aware that things will most likely not work entirely. :-)
Bob
Lead Developer
 
Posts: 1251
Joined: Tue Nov 20, 2007 11:16 pm

Re: Problem with mobile access to PivotX admin

Postby hansfn » Fri Oct 28, 2011 7:40 pm

Bob, are you sure about that? To me the normal PivotX admin seems to work completely in several smart phone browsers.
hansfn
Developer
 
Posts: 3072
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Problem with mobile access to PivotX admin

Postby Schop » Wed May 02, 2012 4:18 pm

hansfn wrote:Yes, there should be an easy way to select the full version for mobile devices. (We have a config setting "is_mobile", but it only works the other way - used for testing the mobile version on the desktop.)

Anyway, until we have fixed this you can either comment out the following code

Code: Select all
    if (isMobile() && ( substr($page, 0, 2)!="m_" && $page!="login") ) {
        $page = "m_dashboard";
    }

in the function displayPage in lib.php, or change it to

Code: Select all
    if (isMobile() && $page=="") {
        $page = "m_dashboard";
    }

The later approach has the benefit that you still get the mobile version as the default, but can switch to the full version by using example.org/pivotx/?page=dashboard (After going there, you'll stay in the full version.)

I have added this to our tracker.


I've tried this approach to see if I can access the backend with my iPad. However, when goign to the dashboard, I get an error message, saying "Safari cannot open the page because too many redirects occured". I doubt that this is a PIvotX problem, but maybe someone has seen this before?
User avatar
Schop
Contributor
 
Posts: 481
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Next

Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron