Hi,

Originally Posted by
Mark_88
My problem is getting it to work alongside a mobile theme/modification.
You're the second person to ask about this recently..

Originally Posted by
Mark_88
Brief explanation of the mod I'm using: detects browser agent. If found to be a mobile browser, sends all requests through "mobile.php?main_page". The mod does this by detecting mobile websites as another "language" and serves up the mobile template relating to that language.
That's a really dumb modification this "theme" makes. It's overriding Zen Cart's usage of the core file name "index.php". Bad coding!
What is this theme/template you are talking about? The developers need to write it properly instead of breaking Zen Cart.
Instead of redirecting people to mobile.php, I immediately identified for the other person who contacted me about this, that when this theme detects that the site is being used on a mobile browser, it should set a flag that will have index.php load in mobile.php...
Instead of calling mobile.php, at the top of index.php the developer should add:
PHP Code:
if (CHECK FOR MOBILE VERSION) {
require('mobile.php');
exit;
}
This "theme" developer will have to come up with a way to have Zen Cart know that the mobile version is being used..and put it in place of "CHECK FOR MOBILE VERSION" above.
If you follow my drift?
Of course you/they also need to get any code that is trying to load "mobile.php" to use "index.php", if there is any.
Hope that helps.
This isn't really a Ceon URI Mapping issue, but an issue with this other module not using index.php so while I'd appreciate it if you could keep me up to date here, this isn't the place to discuss in details any modifications to the code, a new thread would be better.
All the best...
Conor
ceon
Bookmarks