|
|
|
|
"A little update:
This contribution is session based.
It tries to determine the clients screen resolution via javascript and then redirects to PHP.
so:
in application_top.php:
I use this code:
// Resolution redirect
//echo $b_ip;
if (!$spider_flag) { // spiders are irrelevant
if (!tep_session_is_registered('res')) {
if (isset($HTTP_GET_VARS['res'])) {
$res = $HTTP_GET_VARS['res'];
tep_session_register(res);
} else {
echo '';
echo "n";
echo '';
echo "n";
}
}
}
no support for 640, I am sorry. But you can add any resolution you want.
in any page thereafter you can check the following scenario:
if ($_SESSION['res'] == '800') {
do whatever you need for 800 resolution.
} elseif ($_SESSION['res'] == '1024') {
}
etcetera..." |
|
|
|
 |
| For more information, visit the official osCommerce contribution webpage. |
 |
|
|