Hi David,
How to create mobile version?
I intend to create another version for mobile purpose in subdomain ie mobile.abc.com. Now i have changed many of the files to suit the setting (width at 200px). Modify the css, html etc files. All of it works but it is in my main domain. Now i want to move it to the subdomain so the main domain remain for web browsing (example width=800).
Question 1.
Do i have to install another pt in subdomain. If yes, how about the feeds? Do i have to import all the feeds and reregister again? Then it will be 2 databases. How can i use back the same database without the needs to re-register all the feeds. Basically it is only cosmetic changes.
Question 2.
I like to create a link page probably in the header section ie Mobile of the main domain. So when people click to mobile, it will redirect to the mobile.abc.com and vice versa
Hope you can help.
thanks
jack
Hello David,
I copied the files you mentioned to subdomain mobile.abc.com. Cosmetically it is ok. When i do search it shows all the products but when i click for more information it jump back to main page. Same for the main page when click to merchant, category and brand, all the links show m.abc.com/category and not www.abc.com/category.
Is something wrong with the config file setting. The above problem is referred to the mobile version.
Hope you can assist
thanks
jack
Hi,
That sounds like for some reason, you may have a full path in your $config_baseHREF value.
For example, if it contains:
$config_baseHREF = "http://www.abc.com/";
..that would explain why the links go back to the main site. However, if it is just:
$config_baseHREF = "/";
...then then links should remain on m.abc.com as there is nothing in the code that would indicate what the other sub/domain name is.
If that doesn't look like the case, could you email me a link to the mobile version and I'll check it out!
Cheers,
David.
Hello David,
I managed to get it right. Upload the real .htaccess file.
Many thanks
cheers
jack
Hello Jack,
You can "install" a separate instance of the script on mobile.example.com, and simply use the same $config_database... settings as your main site. Then you can ignore (or even delete) the /admin/ and /feeds/ folder from the mobile version as they won't be needed - and it will just see all the same merchants / products as your main site.
Creating a link is straight forward - if they are going to be separate installations, simply add the HTML to link between them at the appropriate place (presumably html/header.php) - something like:
<a href='http://mobile.example.com/'>Mobile Version</a>
Cheers,
David.