Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] iOSC - mobile version of OSC on your iPhone


bumbarash

Recommended Posts

Rainer, Installed this today and everything seems to be workng well except for information.php.

 

Information pages in the infobox on the Classic side are redirecting to the Mobile side with links like:

http://www.domain.com/how-to-instructions-mi-2.html

 

I placed a link to an information page on the mobile side like this (is this correct way?)

echo tep_mobile_selection(tep_mobile_link(FILENAME_MOBILE_INFORMATION, 'info_id=2'), array(TEXT_INFOPAGE_INSTRUCTIONS)).'<div class="fleche"><img src="' . DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES . 'arrow_select.png" /></div>';

 

and the result are broken links, looking like:

http://www.domain.com/how-to-instructions2.html

 

Here is the site if you wish to check it out. Have I done something incorrectly? or is it a bug?

 

If I set SEO_ENABLED back to false, the informatiom pages on the mobile side work again, but the information links on the classic side are still broken. This would point to the seo_class file?

 

Thanks for any suggestions.

 

Hello David,

 

yes you are right it's a bug.

 

Sorry I did this very fast and have no information pages contribution installed on my test shop.

 

1. In includes/classes/seo_class.php

 

Find line 673:

 

									 'info_id' => '-mi-'

 

and change to:

 

									 'info_id_mobile' => '-mi-'

 

There is also missing the mobile redirect to the information pages in application_top.php:

 

2. In includes/application_top.php

 

replace the complete "MOBILE iOSC REDIRECT_SCRIPT"

 

with this:

 

 //BEGIN : MOBILE iOSC REDIRECT_SCRIPT    
   if (MOBILE_SITE=='True'){
      	 $url_basename = basename($PHP_SELF);
      	 if ($url_basename == 'index.php')  {
              	 if (SEO_ENABLED == 'true'){
                      	 if (strpos($_SERVER['REQUEST_URI'], '-c-') == TRUE) {
                              	 $info_box_replace = array('?infoBox=0', '?infoBox=1', '?infoBox=2', '?infoBox=3', '?infoBox=4', '?infoBox=5', '?infoBox=6', '?infoBox=7', '?infoBox=8', '?infoBox=9');
                              	 $url = str_replace($info_box_replace, '', ($_SERVER['REQUEST_URI']));
                              	 $url_category_ids = str_replace('-', '', strrchr (basename($_SERVER['REQUEST_URI']), '-c-'));
                              	 $url_category_id = str_replace('_', '', strrchr (basename($_SERVER['REQUEST_URI']), '_'));
                              	 if (!empty($url_category_id)) {
                                      	 $url = str_replace($url_category_ids, '', $url);
                           	 }
                              	 $mobile_site = str_replace('-c-', '-mc-', $url) . $url_category_id;
                      	 } elseif (strpos($_SERVER['REQUEST_URI'], '-m-') == TRUE) {
                              	 $info_box_replace = array('?infoBox=0', '?infoBox=1', '?infoBox=2', '?infoBox=3', '?infoBox=4', '?infoBox=5', '?infoBox=6', '?infoBox=7', '?infoBox=8', '?infoBox=9');
                              	 $url = str_replace($info_box_replace, '', ($_SERVER['REQUEST_URI']));
                              	 $url_category_ids = str_replace('-', '', strrchr (basename($_SERVER['REQUEST_URI']) , '-m-'));
                              	 $url_category_id = str_replace('_', '', strrchr (basename($_SERVER['REQUEST_URI']) , '_'));
                              	 if (!empty($url_category_id)) {
                                         	 $url = str_replace($url_category_ids, '', $url);
                              	 }
                              	 $mobile_site = str_replace('-m-', '-mm-', $url) . $url_category_id;
                      	 } else {
                              	 $mobile_url = $_SERVER['REQUEST_URI'];
                              	 $url_pagename = basename($PHP_SELF);
                              	 $mobile_site =  str_replace($url_pagename, 'mobile_' . $url_pagename, $mobile_url);
                      	 }
              	 } else {
                      	 if (strpos($_SERVER['REQUEST_URI'], 'cPath=') == FALSE) {
                              	 $mobile_site = 'mobile_index.php';  
                      	 } else {
                              	 $info_box_replace = array('infoBox=0&', 'infoBox=1&', 'infoBox=2&', 'infoBox=3&', 'infoBox=4&', 'infoBox=5&', 'infoBox=6&', 'infoBox=7&', 'infoBox=8&', 'infoBox=9&');
                              	 $url = str_replace($info_box_replace, '', $_SERVER['REQUEST_URI']);
                              	 $url_category_ids = str_replace('cPath=', '', strrchr ($_SERVER['REQUEST_URI'] , 'cPath='));
                              	 $url_category_id = (strpos($url_category_ids,'_') > 0) ? str_replace('_', '', strrchr ($_SERVER['REQUEST_URI'] , '_')) : str_replace('cPath=', '', strrchr ($_SERVER['REQUEST_URI'] , 'cPath='));
                              	 $url = str_replace($url_category_ids, '', $url);
                             	 $mobile_site = str_replace('index.php', 'mobile_catalogue.php', $url) . $url_category_id;
                      	 }
              	 }
              	 if ($mobile_site == DIR_WS_HTTP_CATALOG){
                      	 $mobile_site .= 'mobile_index.php';
              	 }                            
      	 }    

   if ($url_basename == 'product_info.php') {
       if (SEO_ENABLED == 'true'){
                       $mobile_site = str_replace('-p-', '-mp-', $_SERVER['REQUEST_URI']);
       }    
   }    

   if ($url_basename == 'product_reviews.php') {
       if (SEO_ENABLED == 'true'){
                       $mobile_site = str_replace('-pr-', '-mpr-', $_SERVER['REQUEST_URI']);
       }    
   }    

   if ($url_basename == 'information.php') {
       if (SEO_ENABLED == 'true'){
                       $mobile_site = str_replace('-i-', '-mi-', $_SERVER['REQUEST_URI']);
       }    

   }    
   if ($url_basename == 'featured_products.php') {
                       $mobile_site = str_replace('featured_products.php', 'mobile_index.php', $_SERVER['REQUEST_URI']);
       }    

   if ($url_basename == 'recently_viewed.php') {
                       $mobile_site = str_replace('recently_viewed.php', 'mobile_index.php', $_SERVER['REQUEST_URI']);
       }    

       if(isset($mobile_site)) {
           $mobile_url = $mobile_site;
       } else {
           $mobile_url = $_SERVER['REQUEST_URI'];
           $url_pagename = basename($PHP_SELF);
           $mobile_url = str_replace($url_pagename, 'mobile_' . $url_pagename, $mobile_url);
       }

   define(DIR_MOBILE_CLASSES , 'mobile/includes/classes/');
   require(DIR_MOBILE_CLASSES . 'mobile_redirect.php');
   $mobileRedirect = new mobileRedirect;
   }
//END : MOBILE iOSC REDIRECT_SCRIPT

 

Thanks and sorry for the inconvenient.

Please confirm and I'll update the support package.

 

Regards

Rainer

Edited by raiwa
Link to comment
Share on other sites

All is working great for the 2.2d SEO URLs!!

 

I've re-sorted your /mobile/header.php like this

 

<?php if(isset($HTTP_GET_VARS['ajax']) == false) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="viewport"
content="width=width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />
<meta name="apple-mobile-web-app-capable"
 content="yes" />
<meta name="apple-mobile-web-app-status-bar-style"
 content="default" />
<style type="text/css" media="screen">
@[member='import'] "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";
</style>
<title><?php echo TITLE; ?></title>
</head>
<div id="errorMsg">
<?php
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>
</div>
<body> <!-- Why is this here? not validating -->

 

and now the <head> is validating. Also removed the noFollow noIndex stuff as its not wanted or needed there once your mobile site is working.

 

Can you explain why <body></body> are not validating properly? look at the page source in firefox.

Also in the source, there is a trainling </div> that does not seem to be paired with an opening <div> that I cant sort.

 

Thanks!

Edited by Roaddoctor

-Dave

Link to comment
Share on other sites

All is working great for the 2.2d SEO URLs!!

 

I've re-sorted your /mobile/header.php like this

 

<?php if(isset($HTTP_GET_VARS['ajax']) == false) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="viewport"
content="width=width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />
<meta name="apple-mobile-web-app-capable"
 content="yes" />
<meta name="apple-mobile-web-app-status-bar-style"
 content="default" />
<style type="text/css" media="screen">
@[member='import'] "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";
</style>
<title><?php echo TITLE; ?></title>
</head>
<div id="errorMsg">
<?php
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>
</div>
<body> <!-- Why is this here? not validating -->

 

and now the <head> is validating. Also removed the noFollow noIndex stuff as its not wanted or needed there once your mobile site is working.

 

Can you explain why <body></body> are not validating properly? look at the page source in firefox.

Also in the source, there is a trainling </div> that does not seem to be paired with an opening <div> that I cant sort.

 

Thanks!

 

Hello David,

 

First to say that this header code is still a "heritage" of the old version 4 of iosc.

When I rewrote the contribution the priority was to get it functional and resolve the redirects etc.

There is for shure still a lot of incorrect code around.

 

When I saw the nofollow/noindex I thought it would be there just to avoid duplicate content.

I read your question to Jack and his answer in the SEO Header Tags Forum and will change this in the next update.

Thanks for the clearance.

 

For the <body> tag it has it's correpondent closing tag </body> in the footer. So I have no idea why it doesn't validate, maybe it is not necessary for the mobile site.

For the </div> tag I just checked and found that it is balanced, same number of opening tags then closing tags.

Please check again.

 

Thanks again and best regards

Rainer

Link to comment
Share on other sites

All is working great for the 2.2d SEO URLs!!

 

I've re-sorted your /mobile/header.php like this

 

<?php if(isset($HTTP_GET_VARS['ajax']) == false) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="viewport"
content="width=width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />
<meta name="apple-mobile-web-app-capable"
 content="yes" />
<meta name="apple-mobile-web-app-status-bar-style"
 content="default" />
<style type="text/css" media="screen">
@[member='import'] "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";
</style>
<title><?php echo TITLE; ?></title>
</head>
<div id="errorMsg">
<?php
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>
</div>
<body> <!-- Why is this here? not validating -->

 

and now the <head> is validating. Also removed the noFollow noIndex stuff as its not wanted or needed there once your mobile site is working.

 

Can you explain why <body></body> are not validating properly? look at the page source in firefox.

Also in the source, there is a trainling </div> that does not seem to be paired with an opening <div> that I cant sort.

 

Thanks!

 

Hello again,

 

Just checked your header and found that the style import doesn't work on my site (oscommerce-2.2rc2a based).

I have to use this:

 

<style type="text/css" media="screen">
@[member='import'] "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";
</style>

 

other modifications seem to improve validation at W3C mobileOK Checker.

 

regards

Rainer

Link to comment
Share on other sites

I just realised that the code editor changes this line:

 

 

@@import "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";

 

to:

 

@@import "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";</style>

 

 

 

So your header seems to be correct

I post it here again without quotes:

 

<?php if(isset($HTTP_GET_VARS['ajax']) == false) { ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type"

content="text/html; charset=<?php echo CHARSET; ?>" />

<meta name="viewport"

content="width=width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />

<meta name="apple-mobile-web-app-capable"

content="yes" />

<meta name="apple-mobile-web-app-status-bar-style"

content="default" />

<style type="text/css" media="screen">

@@import "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";

</style>

<title><?php echo TITLE; ?></title>

</head>

<div id="errorMsg">

<?php

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

</div>

<body>

 

regards

Rainer

 

 

 

 

 

 

 

the header which works for me is this (both versions: oscommerce-2.2rc2a based and oscommerce-2.3.3):

 

<?php if(isset($HTTP_GET_VARS['ajax']) == false) { ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type"

content="text/html; charset=<?php echo CHARSET; ?>" />

<meta name="viewport"

content="width=width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />

<meta name="apple-mobile-web-app-capable"

content="yes" />

<meta name="apple-mobile-web-app-status-bar-style"

content="default" />

<style type="text/css" media="screen">

@@import "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";

</style>

<title><?=TITLE?></title>

<div id="errorMsg">

<?php

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

</div>

</head>

<body>

<!-- header //-->

<div id="header">

 

 

regards

Rainer

Edited by raiwa
Link to comment
Share on other sites

Ok this validates 100% in the header

 

Now need to sort out placement of closing </body> as its still not right

 

<?php if(isset($HTTP_GET_VARS['ajax']) == false) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="viewport"
content="width=width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />
<meta name="apple-mobile-web-app-capable"
 content="yes" />
<meta name="apple-mobile-web-app-status-bar-style"
 content="default" />
<style type="text/css" media="screen">
@[member='import'] "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css";
</style>
<title><?php echo TITLE; ?></title>
</head>
<body> <!-- Yay! this is now validating -->
<div id="errorMsg">
<?php
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>
</div>
<!-- header //-->
<div id="header">

-Dave

Link to comment
Share on other sites

Hello, I'm trying to install iosc for osc 2.3.3. I still get the following error even after disabling my output_buffering and checking al the modified files for empty rules: Deprecated: Function split() is deprecated in .../mobile/includes/classes/mobile_redirect.php on line 43 Warning: Cannot modify header_information - headers already sent by (output started at .../includes/functions/general.php on line 49

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

Hello, I'm trying to install iosc for osc 2.3.3. I still get the following error even after disabling my output_buffering and checking al the modified files for empty rules: Deprecated: Function split() is deprecated in .../mobile/includes/classes/mobile_redirect.php on line 43 Warning: Cannot modify header_information - headers already sent by (output started at .../includes/functions/general.php on line 49

 

Hello,

 

For the first error:

 

In: mobile/includes/classes/mobile_redirect.php

At line 48+50:

change:

split

to:

explode

I'll change this in the next update.

 

 

For the second error:

 

output_buffering should be ENABLED and set to at least 4096 (if no value is set it means unlimited)

 

If this doesn't help check if the style sheet import script in the mobile header is in the correct place.

 

regards

Rainer

Link to comment
Share on other sites

Ok, I've changed this and now I got a 404 error on index.php. When I directly go ta a product page i get: Warning: substr()expects parameter 3 to be long, string give in ...../mobile/includes/modules/products.php on line 36

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

Ok, I've changed this and now I got a 404 error on index.php. When I directly go ta a product page i get: Warning: substr()expects parameter 3 to be long, string give in ...../mobile/includes/modules/products.php on line 36

 

It sounds like you replaced the whole lines in mobile_redirect.php instead of only "split"

 

It should look like this:

    function redirect() {
 global $mobile_site; 
  if(isset($mobile_site)) {
   $path = explode("/" ,$mobile_site);
   $file = $path[sizeof($path)-1];
  } else {
   $path = explode("/" , $_SERVER['SCRIPT_NAME']);
   $filename = $path[sizeof($path)-1];
   $file = $this->mobileDir . $filename;
  }
  $qstring = $_SERVER['QUERY_STRING'];
  $SSL = ($_SERVER['HTTPS']) ? "SSL" : "NONSSL";
  tep_redirect(tep_href_link($file, $qstring, $SSL, false, false));
}

 

If it's not this please post the code of your changes and the url of your shop.

 

rainer

Link to comment
Share on other sites

It sounds like you replaced the whole lines in mobile_redirect.php instead of only "split"

 

It should look like this:

function redirect() {
global $mobile_site;
if(isset($mobile_site)) {
$path = explode("/" ,$mobile_site);
$file = $path[sizeof($path)-1];
} else {
$path = explode("/" , $_SERVER['SCRIPT_NAME']);
$filename = $path[sizeof($path)-1];
$file = $this->mobileDir . $filename;
}
$qstring = $_SERVER['QUERY_STRING'];
$SSL = ($_SERVER['HTTPS']) ? "SSL" : "NONSSL";
tep_redirect(tep_href_link($file, $qstring, $SSL, false, false));
}

 

If it's not this please post the code of your changes and the url of your shop.

 

rainer

function redirect() {
global $mobile_site;
if(isset($mobile_site)) {
$path = explode("/" ,$mobile_site);
$file = $path[sizeof($path)-1];
} else {
$path = explode("/" , $_SERVER['SCRIPT_NAME']);
$filename = $path[sizeof($path)-1];
$file = $this->mobileDir . $filename;
}
$qstring = $_SERVER['QUERY_STRING'];
$SSL = ($_SERVER['HTTPS']) ? "SSL" : "NONSSL";
tep_redirect(tep_href_link($file, $qstring, $SSL, false, false));
}
}

It looks he same, the url of my website is www.davelaarscooters.nl I turned the mobile site function of since its not working now. I also noticed there are no cinfiguration options in my admin see attachment

Edited by Davelaar

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

function redirect() {
global $mobile_site;
if(isset($mobile_site)) {
$path = explode("/" ,$mobile_site);
$file = $path[sizeof($path)-1];
} else {
$path = explode("/" , $_SERVER['SCRIPT_NAME']);
$filename = $path[sizeof($path)-1];
$file = $this->mobileDir . $filename;
}
$qstring = $_SERVER['QUERY_STRING'];
$SSL = ($_SERVER['HTTPS']) ? "SSL" : "NONSSL";
tep_redirect(tep_href_link($file, $qstring, $SSL, false, false));
}
}

It looks he same, the url of my website is www.davelaarscooters.nl I turned the mobile site function of since its not working now. I also noticed there are no cinfiguration options in my admin see attachment

 

O.K. you have SEO URLs installed in your shop.

You need to download and install the mobile support:

Contribution support 1.0 for iOSC 5.x

 

There is support included for

 

- ULTIMATE Seo Urls 5 - by FWR Media

http://addons.oscommerce.com/info/6768

 

and

 

- Ultimate SEO 2-2.2d-12 - by chemo

http://addons.oscommerce.com/info/2823

 

regards

Rainer

Edited by raiwa
Link to comment
Share on other sites

O.K. you have SEO URLs installed in your shop.

You need to download and install the mobile support:

Contribution support 1.0 for iOSC 5.x

 

There is support included for

 

- ULTIMATE Seo Urls 5 - by FWR Media

http://addons.oscommerce.com/info/6768

 

and

 

- Ultimate SEO 2-2.2d-12 - by chemo

http://addons.oscommerce.com/info/2823

 

regards

Rainer

I'll give it a shot, thanks in advance

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

Ok after installing seo urls it works now, thnks so far. But in the instructions from the installation you are talking about this: in: Admin/Configuration/Mobile Site

***adjust the image size you wish for the product images shown

in mobile_catalogue.php (mobile/includes/modules/product.php), mobile_product_info.php, mobile_also_purchased_products.php here:

Mobile Image Width

Mobile Image Height

***Adjust the max. product name length you wish for mobile catalogue.php here:

define ('MOBILE_PRODUCT_NAME_LENGTH', 55);

***If you wish to show todays date in the mobile-footer, set it here to true:

define ('FOOTER_DATE_ENABLED', false);

define ('FOOTER_SITE_STATS_ENABLED', false);

***If you wish to show the stats of your shop in the mobile-footer, set it here to true:

***Adjust the advanced mobile search options to your need:

Note: If you set all advanced mobile search options to 'false',

the button in 'search.php' which links to the advanced search page

will not be shown, and the redirect link from the advanced search page

of the 'classic' site will redirect to 'mobile_search.php' instead of 'mobile_advanced_search.php'.

Note: Ajax is not working in this iosc version, leave the setting in "false" I don't have any configuration options in admin/configuration/mobile site just true or false for mobile site on or off. I have this message with all of my products: Warning: substr()expects parameter 3 to be long, string give in ...../mobile/includes/modules/products.php on line 36. In my mobile_catalogue there is no define ('MOBILE_PRODUCT_NAME_LENGTH', 55); anywhere

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

Ok after installing seo urls it works now, thnks so far. But in the instructions from the installation you are talking about this: in: Admin/Configuration/Mobile Site

***adjust the image size you wish for the product images shown

in mobile_catalogue.php (mobile/includes/modules/product.php), mobile_product_info.php, mobile_also_purchased_products.php here:

Mobile Image Width

Mobile Image Height

***Adjust the max. product name length you wish for mobile catalogue.php here:

define ('MOBILE_PRODUCT_NAME_LENGTH', 55);

***If you wish to show todays date in the mobile-footer, set it here to true:

define ('FOOTER_DATE_ENABLED', false);

define ('FOOTER_SITE_STATS_ENABLED', false);

***If you wish to show the stats of your shop in the mobile-footer, set it here to true:

***Adjust the advanced mobile search options to your need:

Note: If you set all advanced mobile search options to 'false',

the button in 'search.php' which links to the advanced search page

will not be shown, and the redirect link from the advanced search page

of the 'classic' site will redirect to 'mobile_search.php' instead of 'mobile_advanced_search.php'.

Note: Ajax is not working in this iosc version, leave the setting in "false" I don't have any configuration options in admin/configuration/mobile site just true or false for mobile site on or off. I have this message with all of my products: Warning: substr()expects parameter 3 to be long, string give in ...../mobile/includes/modules/products.php on line 36. In my mobile_catalogue there is no define ('MOBILE_PRODUCT_NAME_LENGTH', 55); anywhere

 

Did you run the complete sql script in installation step 1?:

1.- run this sql script in your database:

INSERT INTO `configuration_group` (`configuration_group_id`, `configuration_group_title`, `configuration_group_description`, `sort_order`, `visible`) VALUES ('6128', 'Mobile Site', 'Configuration values for mobile site', '160', '1');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Enable Mobile Site?', 'MOBILE_SITE', 'True', 'Do you want to enable the mobile version of the site?', '6128', '1', NULL, '', NULL, 'tep_cfg_select_option(array(''True'', ''False''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Image Width', 'MOBILE_IMAGE_WIDTH', '80', 'The pixel width of mobile images', '6128', '2', NULL, '', NULL, NULL);
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Image Height', 'MOBILE_IMAGE_HEIGHT', '80', 'The pixel height of mobile images', '6128', '3', NULL, '', NULL, NULL);
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Product Name Length', 'MOBILE_PRODUCT_NAME_LENGTH', '55', 'The max length of product names shown in product listing', '6128', '4', NULL, '', NULL, NULL);
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Debug Mode', 'MOBILE_DEBUG', 'false', 'Mobile debug mode: leave false for live shops', '6128', '5', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Enable Ajax', 'AJAX_ENABLED', 'false', 'Ajax enabled', '6128', '6', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Compatibility Mode', 'COMPATIBILITY_MODE', 'false', 'Enable compatibility mode for testing purpose, leave false for live shops', '6128', '7', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Footer Date', 'FOOTER_DATE_ENABLED', 'true', 'Show the date in the mobile footer.', '6128', '8', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Footer Statistics', 'FOOTER_SITE_STATS_ENABLED', 'true', 'Show the statistics in the mobile footer.', '6128', '9', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Manufacturers in Advanced Mobile Search', 'SHOW_MANUFACTURERS_SEARCH_MENU', 'true', 'Show the manufacturers drop down menu in the advanced mobile search page.', '6128', '10', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Categories in Advanced Mobile Search', 'SHOW_CATEGORIES_SEARCH_MENU', 'true', 'Show the categories drop down menu in the advanced mobile search page.', '6128', '11', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Price range in Advanced Mobile Search', 'SHOW_SEARCH_BY_PRICE_RANGE', 'true', 'Show the price range option in the advanced mobile search page.', '6128', '12', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Date range in Advanced Mobile Search', 'SHOW_SEARCH_BY_DATE_RANGE', 'true', 'Show the date range option in the advanced mobile search page.', '6128', '13', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');

 

this adds a Configuration Group for the mobile site to Admin: Configuration.

Edited by raiwa
Link to comment
Share on other sites

Did you run the complete sql script in installation step 1?:

1.- run this sql script in your database:

INSERT INTO `configuration_group` (`configuration_group_id`, `configuration_group_title`, `configuration_group_description`, `sort_order`, `visible`) VALUES ('6128', 'Mobile Site', 'Configuration values for mobile site', '160', '1');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Enable Mobile Site?', 'MOBILE_SITE', 'True', 'Do you want to enable the mobile version of the site?', '6128', '1', NULL, '', NULL, 'tep_cfg_select_option(array(''True'', ''False''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Image Width', 'MOBILE_IMAGE_WIDTH', '80', 'The pixel width of mobile images', '6128', '2', NULL, '', NULL, NULL);
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Image Height', 'MOBILE_IMAGE_HEIGHT', '80', 'The pixel height of mobile images', '6128', '3', NULL, '', NULL, NULL);
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Product Name Length', 'MOBILE_PRODUCT_NAME_LENGTH', '55', 'The max length of product names shown in product listing', '6128', '4', NULL, '', NULL, NULL);
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Debug Mode', 'MOBILE_DEBUG', 'false', 'Mobile debug mode: leave false for live shops', '6128', '5', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Enable Ajax', 'AJAX_ENABLED', 'false', 'Ajax enabled', '6128', '6', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Compatibility Mode', 'COMPATIBILITY_MODE', 'false', 'Enable compatibility mode for testing purpose, leave false for live shops', '6128', '7', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Footer Date', 'FOOTER_DATE_ENABLED', 'true', 'Show the date in the mobile footer.', '6128', '8', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Footer Statistics', 'FOOTER_SITE_STATS_ENABLED', 'true', 'Show the statistics in the mobile footer.', '6128', '9', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Manufacturers in Advanced Mobile Search', 'SHOW_MANUFACTURERS_SEARCH_MENU', 'true', 'Show the manufacturers drop down menu in the advanced mobile search page.', '6128', '10', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Categories in Advanced Mobile Search', 'SHOW_CATEGORIES_SEARCH_MENU', 'true', 'Show the categories drop down menu in the advanced mobile search page.', '6128', '11', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Price range in Advanced Mobile Search', 'SHOW_SEARCH_BY_PRICE_RANGE', 'true', 'Show the price range option in the advanced mobile search page.', '6128', '12', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Date range in Advanced Mobile Search', 'SHOW_SEARCH_BY_DATE_RANGE', 'true', 'Show the date range option in the advanced mobile search page.', '6128', '13', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');

 

this adds a Configuration Group for the mobile site to Admin: Configuration.

Well I've put back the old database now and run the query again, just because I thougt I saw an error. Wel I run the query again and there was indeed an error:

SQL-query:

INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )

VALUES (

NULL
,
'Mobile Image Width'
,
'MOBILE_IMAGE_WIDTH'
,
'80'
,
'The pixel width of mobile images'
,
'6128'
,
'2'
,
NULL
,
''
,
NULL
,
NULL

);

 

 

MySQL retourneerde: b_help.png

#1048 - Column 'set_function' cannot be null

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

Well I've put back the old database now and run the query again, just because I thougt I saw an error. Wel I run the query again and there was indeed an error:

SQL-query:

INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )

VALUES (

NULL
,
'Mobile Image Width'
,
'MOBILE_IMAGE_WIDTH'
,
'80'
,
'The pixel width of mobile images'
,
'6128'
,
'2'
,
NULL
,
''
,
NULL
,
NULL

);

 

 

 

MySQL retourneerde: b_help.png

#1048 - Column 'set_function' cannot be null

 

It seems you have a different (newer) sql version which doesn't accept "null" value for "set function".

 

Try this:

 

INSERT INTO `configuration_group` (`configuration_group_id`, `configuration_group_title`, `configuration_group_description`, `sort_order`, `visible`) VALUES ('6128', 'Mobile Site', 'Configuration values for mobile site', '160', '1');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Enable Mobile Site?', 'MOBILE_SITE', 'True', 'Do you want to enable the mobile version of the site?', '6128', '1', NULL, '', NULL, 'tep_cfg_select_option(array(''True'', ''False''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Image Width', 'MOBILE_IMAGE_WIDTH', '80', 'The pixel width of mobile images', '6128', '2', NULL, '', '', '');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Image Height', 'MOBILE_IMAGE_HEIGHT', '80', 'The pixel height of mobile images', '6128', '3', NULL, '', '', '');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Product Name Length', 'MOBILE_PRODUCT_NAME_LENGTH', '55', 'The max length of product names shown in product listing', '6128', '4', NULL, '', '', '');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Debug Mode', 'MOBILE_DEBUG', 'false', 'Mobile debug mode: leave false for live shops', '6128', '5', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Enable Ajax', 'AJAX_ENABLED', 'false', 'Ajax enabled', '6128', '6', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Compatibility Mode', 'COMPATIBILITY_MODE', 'false', 'Enable compatibility mode for testing purpose, leave false for live shops', '6128', '7', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Footer Date', 'FOOTER_DATE_ENABLED', 'true', 'Show the date in the mobile footer.', '6128', '8', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Mobile Footer Statistics', 'FOOTER_SITE_STATS_ENABLED', 'true', 'Show the statistics in the mobile footer.', '6128', '9', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Manufacturers in Advanced Mobile Search', 'SHOW_MANUFACTURERS_SEARCH_MENU', 'true', 'Show the manufacturers drop down menu in the advanced mobile search page.', '6128', '10', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Categories in Advanced Mobile Search', 'SHOW_CATEGORIES_SEARCH_MENU', 'true', 'Show the categories drop down menu in the advanced mobile search page.', '6128', '11', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Price range in Advanced Mobile Search', 'SHOW_SEARCH_BY_PRICE_RANGE', 'true', 'Show the price range option in the advanced mobile search page.', '6128', '12', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (NULL, 'Date range in Advanced Mobile Search', 'SHOW_SEARCH_BY_DATE_RANGE', 'true', 'Show the date range option in the advanced mobile search page.', '6128', '13', NULL, '', NULL, 'tep_cfg_select_option(array(''true'', ''false''), ');

Link to comment
Share on other sites

Aha, well now it also changes the looks a bit. Sorry to bother you this much, I now how to read and change line, but don't understand the most of what I read in php. Now I'm going to edit the design and check for functionality. I hope I don't have to come back here for this thing... By the way, Is there a layout scheme for IOSC, what says wich value to change or just sort it out? Are there any templates available?

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

Still one question left, on the mobile version there is the box with currencies and languages. Is there a way to disable this without removing the link for the complete version?

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

Aha, well now it also changes the looks a bit. Sorry to bother you this much, I now how to read and change line, but don't understand the most of what I read in php. Now I'm going to edit the design and check for functionality. I hope I don't have to come back here for this thing... By the way, Is there a layout scheme for IOSC, what says wich value to change or just sort it out? Are there any templates available?

 

You have to sort out in mobile/includes/iphone.css

 

One example:

 

to change the columns in product listing

search this:

 

#prodCell {
width:30%;
min-height:225px;
border:1px solid #ccb0db;
border-radius:5px;/*css3*/
   -moz-border-radius:5px;/*gecko (ex:Firefox)*/
   -webkit-border-radius:5px;/*webkit (ex:safari)*/
padding:2px;
display:block;
float:left;
margin:2px;
}

 

adjust: width:30%;

 

to: width:46%; for 2 columns

 

and width:96%; for 1 column

 

 

like this you have to modify themobile design, colors, font size etc.

 

regards

Rainer

Link to comment
Share on other sites

Still one question left, on the mobile version there is the box with currencies and languages. Is there a way to disable this without removing the link for the complete version?

 

in: mobile/includes/footer.php

 

find:

 

<td class="headerNavigation" width="20%" align="right"><div class="headerNavigation">
<a href="<?php echo tep_mobile_link(FILENAME_LANGUAGES);?>"><?php echo tep_image(DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES."language.png") . "<br>" . BOX_HEADING_LANGUAGES; ?></a></div></td>
<td class="headerNavigation" width="20%" align="right"><div class="headerNavigation">
<a href="<?php echo tep_mobile_link(FILENAME_CURRENCIES);?>"><?php echo tep_image(DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES."currencies.png") . "<br>" . BOX_HEADING_CURRENCIES; ?></a></div></td>

 

and remove this lines or comment them out.

 

I see that you need help for a lot of stuff. I'm sorry, but i'm very just by time to help you with all.

 

If you need professional help feel free to contact me for a quote. :)

 

regards

Rainer

Edited by raiwa
Link to comment
Share on other sites

Sorry for al the questions. I understand your very busy. Thanks for the patience and have a nice day. I think I can sort it out now.

I don't understand the most of what I'm reading but I do know how to read and copy/paste

Link to comment
Share on other sites

Raiwa, Good morning from Texas.

Here's my stupid question of the day (limit 1)

 

Would you know why links in the information pages are giving me grief?

 

I have this exiting which works like normal

 

Visit the <a href="/faq.php" title="Frequently Asked Questions"><font color="#0000FF">[F.A.Q.]</font></a>

 

and changing to this

 

Visit the <a title="Frequently Asked Questions" href="' . ((mobile_session() == true) ? FILENAME_MOBILE_FAQ : FILENAME_FAQ . '?redirectCancelled=true') . '"> <font color="#0000FF">[F.A.Q.]</font> </a>

 

But the result of the 2nd link is:

 

http://www.mydomain.com/'%20.%20((mobile_session()%20==%20true)%20? FILENAME_MOBILE_FAQ : FILENAME_FAQ . '?redirectCancelled=true') . '

 

and a broken link of course. -confused-

 

Is it something to do with stripslashes? Thanks for any advice.

-Dave

Link to comment
Share on other sites

Raiwa, Good morning from Texas.

Here's my stupid question of the day (limit 1)

 

Would you know why links in the information pages are giving me grief?

 

I have this exiting which works like normal

 

Visit the <a href="/faq.php" title="Frequently Asked Questions"><font color="#0000FF">[F.A.Q.]</font></a>

 

and changing to this

 

Visit the <a title="Frequently Asked Questions" href="' . ((mobile_session() == true) ? FILENAME_MOBILE_FAQ : FILENAME_FAQ . '?redirectCancelled=true') . '"> <font color="#0000FF">[F.A.Q.]</font> </a>

 

But the result of the 2nd link is:

 

http://www.mydomain.com/'%20.%20((mobile_session()%20==%20true)%20? FILENAME_MOBILE_FAQ : FILENAME_FAQ . '?redirectCancelled=true') . '

 

and a broken link of course. -confused-

 

Is it something to do with stripslashes? Thanks for any advice.

 

 

The function "mobile_session" is a php function and need to be inside <?php.....?> tags.

Suposing you use information pages unlimited, as I remember this is not possible to achieve from the information pages input field in admin.

So you should place this directly on the Information page which leads you to use in this cases a "normal" information page.

This is the reason I uninstalled the information pages contribution and backed to use the "normal" information pages.

The code should look then like this:

 

<?php echo 'Visit the <a title="Frequently Asked Questions" href="' . ((mobile_session() == true) ? FILENAME_MOBILE_FAQ : FILENAME_FAQ . '?redirectCancelled=true') . '"><font color="#0000FF">[F.A.Q.]</font> </a>' ;?>

 

regards Rainer

Edited by raiwa
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...