Register    Login    Forum    Search    FAQ

Board index » Misc. » Configuration and Administration




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Phreebooks on Android Tablet
 Post Posted: Mon Oct 17, 2011 1:46 pm 
Offline

Joined: Mon Apr 19, 2010 3:18 pm
Posts: 105
Hi All,

I don't know if this was covered elsewhere in the forum. If so, please post the link here...

I recently bought a 10.1" tablet pc and installed firefox as my browser on Android (Honeycomb) O/S...

This works great when I see clients on the road to issue them quotes on the spot, BUT I have come across a feature that makes it difficult to use the touch screen of the tablet.
The top menus (Customers, Vendors, Inventory... Company) ''opens'' when you move a mouse over it... Is there anyway to change this so that you need to click on it to show the menu?

This will make it very easy to use when using touch screen devices such as tablet pc's.

Kind regards


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Wed Oct 19, 2011 10:11 am 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
That would be best handled in the theme. I'm in the process of reworking R3.3 to handle jquery UI and themeroller support. The menu scripts are handled here and I'm sure a theme can be made to require clicking instead of hovering as the current default theme works.

Dave


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Fri Mar 16, 2012 9:49 am 
Offline

Joined: Mon Apr 19, 2010 3:18 pm
Posts: 105
Anyone have an idea where to start and how easy this will be...

I would think in the ...themes\default folder. Maybe change the .hover() to .click() but I have no idea which files and what is safe to change.

I like the current theme and dont want to change it. I just want the buttons to react as described.

Android and other "mobile browsers" are now common amongst business owners big and small. This would therefore be a great feature.

Regards,

_________________
________________________
tanoISP - See More.Do more
www.tano.co.za


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Fri Apr 06, 2012 9:50 am 
Offline

Joined: Mon Mar 01, 2010 5:32 am
Posts: 554
Location: Netherlands
the code is located in the following file
'themes/default/ddsmoothmenu.js'

It is best to copy the current theme folder to a new one this would prevent that when you update your code it would overwrite.

Let us know how it go's the code is not easy to read.

_________________
Rene Kervezee


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Sun Apr 08, 2012 1:28 pm 
Offline

Joined: Mon Apr 19, 2010 3:18 pm
Posts: 105
Hi Rene,

I'm still in diapers when it comes to programming, but I'm learning as we go. I found the following file on the dynamicdrive forum and uploaded it to my test server.

It opens the menu's on click and not hovering, but I still need to test this with my tablet. Unfortunately my tablet can only open the production phreebooks on my domain, as I am running my test copy on my locally on my pc.

For those novices like myself:
1. Log out of phreebooks if you are logged in
1. Goto 'themes/default' folder of the phreebooks install
2. Make a bakup copy of ddsmoothmenu.js (just in case something goes wrong :wink: )
3. Unzip the attached file and upload to the same folder in 1
NB! You might need to refresh the browser to take effect

Regards,


Attachments:
ddsmoothmenu.zip [3.24 KiB]
Downloaded 52 times

_________________
________________________
tanoISP - See More.Do more
www.tano.co.za
Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Mon Apr 09, 2012 5:35 am 
Offline

Joined: Mon Apr 19, 2010 3:18 pm
Posts: 105
Ok, tested the above, but I think it needs more tweaking.

I run into two issues:

1. The hover effect have been replaced with a click effect, working 100%, BUT once you click on a submenu, nothing happens. Tested both on a tablet and normal firefox browser. I can however (on pc) right click on the submenu and select "open in new tab" which then opens it.

2. Attached screenshot from tablet (Android). The top menu have a strange "question mark". This displays only on the tablet and not on a pc.

I will scratch a bit further on google and dynamicdrive.

Will post any findings... and more important, will appreciate help from those who knows programming :wink:


Attachments:
SC20120409-122801.jpg
SC20120409-122801.jpg [ 53.97 KiB | Viewed 871 times ]

_________________
________________________
tanoISP - See More.Do more
www.tano.co.za
Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Sun Apr 15, 2012 1:19 pm 
Offline

Joined: Mon Apr 19, 2010 3:18 pm
Posts: 105
In terms of the "strange" question mark referred to above (point no.2), I found it was only due to the image reference in the 'themes/default/ddsmoothmenu.js' file.

Around line 21, change to:
arrowimages: {down:['downarrowclass', 'themes/default/images/down.gif', 23], right:['rightarrowclass', 'themes/default/images/right.gif']},

I still haven't figured out why I can't open the sub (child) menus.

Regards,

_________________
________________________
tanoISP - See More.Do more
www.tano.co.za


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Wed May 30, 2012 2:44 pm 
Offline

Joined: Tue Mar 20, 2012 5:32 pm
Posts: 17
Hi there,

I've been going through the same thing, and ended up with the same result; clicking on the submenu doesn't do anything.
The only change I did was to change "$curobj.hover(" to "$curobj.toggle(" on line 25 of ddsmoothmenu.js.
I'm trying to understand where the link function is, but so far I had no luck.

Were you able to get this working?


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Wed Sep 12, 2012 7:39 am 
Offline

Joined: Mon Apr 19, 2010 3:18 pm
Posts: 105
Hi Lyute,

No luck on this side. Tried various scenarios but normally end up with the same result or messing up the entire theme.

Something else that I want to try is loading a new ddsmoothmenu into PB.

If ever I get this to work I will post the results and procedures.

Regards

_________________
________________________
tanoISP - See More.Do more
www.tano.co.za


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Thu Sep 13, 2012 10:52 am 
Offline

Joined: Mon Apr 19, 2010 3:18 pm
Posts: 105
Hi all,

I've done the nitty gritty but being new to php i'm totally lost with the .js

Everything is working 100% on my test server with the main menu opening "onclick", but the submenu's still don't work if you click on it. I assume that it needs to be set in the .js to allow it to open, but I can't figure out where to set it. I have even compared the new ddsmoothmenu.js file with the original to try and find a difference that might point to the error.

What I have confirmed is that if I go to a submenu and right-click on it and choose to open it, the correct menu opens. See screenshot demonstration...
Attachment:
ddsmooth_childmenu.jpg
ddsmooth_childmenu.jpg [ 77.3 KiB | Viewed 696 times ]



Is there anyone who can assist, as I recon this is the last step required to make PB work on touchscreen devices (tablets/cellphones)

Thank you in advance.

Kind regards

_________________
________________________
tanoISP - See More.Do more
www.tano.co.za


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Wed Sep 19, 2012 1:26 pm 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
Try the css for the submenu. You may also want to look at the JavaScript error console in FireFox to see if there are any JavaScript errors that are halting the script. If there are, the script terminates and the links may not be rendered properly.

Dave


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Thu Jan 24, 2013 2:21 am 
Offline

Joined: Mon Jan 21, 2013 12:35 am
Posts: 5
Did anyone ever get this figured out?


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Tue Apr 02, 2013 11:39 am 
Offline

Joined: Tue Mar 20, 2012 5:32 pm
Posts: 17
Hi there,

I haven't got it to work on my end. I tried the same thing with the R3.5RC3, but unfortunately no.
Just to let you know, sorry for the late response.


Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Sat Apr 13, 2013 11:15 am 
Offline

Joined: Mon Mar 01, 2010 5:32 am
Posts: 554
Location: Netherlands
I found the solution.
turned out that there was a update for the menu

use this file to replace the current ROOT/themes/default/ddsmoothmenu.js


Attachments:
themes.zip [7.76 KiB]
Downloaded 8 times

_________________
Rene Kervezee
Top 
 Profile  
 
 Post subject: Re: Phreebooks on Android Tablet
 Post Posted: Wed Apr 17, 2013 11:16 am 
Offline

Joined: Tue Mar 20, 2012 5:32 pm
Posts: 17
Hi Rene,

Thank you very much for the file!
I tried uploading it, replaced the ddsmoothmenu.js, made sure that I was using the default theme but it's still not working.
I did notice that the down arrow icon on the right of each menu disappear.
Could you please let me know when you have time on what I should check to get this to work?
Thank you again and best regards.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

Board index » Misc. » Configuration and Administration


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron