Welcome, Guest
Username Password: Remember me

Joomfish / iPhone / Main Menu issue
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Joomfish / iPhone / Main Menu issue

Joomfish / iPhone / Main Menu issue 14 years, 3 months ago #436

  • pdacton
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi,

I'm seeing abnormal behaviour when looking at the site using the iPhone:
- main menu only shows the very first time, any subsequent pageloads it no longer shows
- pressing "Home" returns to the front page content, without main menu
- pressing "Back" returns to the front page content, without main menu
- even if at the root of the site, the "Home" and "Back" buttons still show.
- when I create a separate iPhone menu the menu shows normal.

Once I disable the plugin "System jfrouter", everything behaves normally on the iPhone.

I've already checked that all menus are translated in JoomFish, I even copied the original language to the other languages using "Joomfish - Manage Translations"

I wonder if MobileJoomla has an issue with detecting home, believing for some reason that it is still within the site structure, while it actually is at the top.

Has anybody seen anything similar?

Joomla 1.5.20
MobileJoomla 0.9.6
JoomFish 2.0.4

Joomfish / iPhone / Main Menu issue 14 years, 3 months ago #2021

  • pdacton
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
After some php echos in /templates/mobile_iphone/index.php it looks like
  • $MobileJoomla->_ishomepage is empty if jf_router is enabled
  • $MobileJoomla->_ishomepage is 1 if jf_router is disabled

Not quite sure how to continue...

Joomfish / iPhone / Main Menu issue 14 years, 3 months ago #2022

  • pdacton
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Found it!
in /plugins/system/mobilebot.php on line 281, adding the lines
echo "plugins/system/mobilebot.php";
print_r ($current);
print_r ($home);
revealed, that there was an additional variable called "jfcookie" that was passed in the $current array.

Quick Fix:
adding on line 276 in mobilebot.php
unset($current['jfcookie']);
removes the difference between $current and $home and the menus behave normally.

Yeah!

Joomfish / iPhone / Main Menu issue 14 years, 3 months ago #2025

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
pdacton, in v0.9.7 there will be more elegant solution to the problem (just set $current=$_GET). Version 0.9.7 is in testing stage now and will be released soon.

Joomfish / iPhone / Main Menu issue 14 years, 3 months ago #2044

  • pdacton
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Thanks for the feedback, Denis. I'm starting to get the hang of MobileJoomla.
Very nice solution, especially the fact that it supports all kinds of mobile devices!
  • Page:
  • 1
Time to create page: 0.08 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.