burt, on 23 September 2010, 09:09, said:
Thank you.
Posted 27 October 2010, 17:34
burt, on 23 September 2010, 09:09, said:
Posted 28 October 2010, 05:01
Keep up on osCommerce changes and updates at Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.
Posted 28 October 2010, 15:32
blr044, on 27 October 2010, 17:34, said:
Edited by blr044, 28 October 2010, 15:36.
Posted 28 October 2010, 18:44
Posted 01 November 2010, 14:19
http://mysite.com/catalog/product_info.php?products_id=1If the address is
http://mysite.com/catalog/product_info.php?cPath=1_11_111&products_id=1facebook show it in this way:
http://mysite.com/catalog/product_info.php?cPath=1_11_111the product ID missing
Edited by spear, 01 November 2010, 14:23.
Posted 01 November 2010, 16:15
// remove duplicate content with canonical tag by Spooks 12/2009
function CanonicalLink( $xhtml = false , $ssl = 'SSL' ) {
global $request_type;
$rem_index = false; // Set to true to additionally remove index.php from the uri
$close_tag = ( false === $xhtml ? ' >' : ' />' ); $spage = '';
$domain = ( $request_type == 'SSL' && $ssl == 'SSL' ? HTTPS_SERVER : HTTP_SERVER ); // gets the base URI
// Find the file basename safely = PHP_SELF is unreliable - SCRIPT_NAME can show path to phpcgi
if ( array_key_exists( 'SCRIPT_NAME', $_SERVER )
&& ( substr( basename( $_SERVER['SCRIPT_NAME'] ), -4, 4 ) == '.php' ) ) {
$basefile = basename( $_SERVER['SCRIPT_NAME'] );
} elseif ( array_key_exists( 'PHP_SELF', $_SERVER )
&& ( substr( basename( $_SERVER['PHP_SELF'] ), -4, 4 ) == '.php' ) ) {
$basefile = basename( $_SERVER['PHP_SELF'] );
} else {
// No base file so we have to return nothing
return false;
}
// Don't produce canonicals for SSL pages that bots shouldn't see
$ignore_array = array( 'account', 'address', 'checkout', 'login', 'password', 'logoff' );
// partial match to ssl filenames
foreach ( $ignore_array as $value ) {
$spage .= '(' . $value . ')|';
}
$spage = rtrim($spage,'|');
if (preg_match("/$spage/", $basefile)) return false;
// REQUEST_URI usually doesn't exist on Windows servers ( sometimes ORIG_PATH_INFO doesn't either )
if ( array_key_exists( 'REQUEST_URI', $_SERVER ) ) {
$request_uri = $_SERVER['REQUEST_URI'];
} elseif( array_key_exists( 'ORIG_PATH_INFO', $_SERVER ) ) {
$request_uri = $_SERVER['ORIG_PATH_INFO'];
} else {
// we need to fail here as we have no REQUEST_URI and return no canonical link html
return false;
}
$remove_array = array( 'currency','language','main_page','page','sort','ref','affiliate_banner_id','max');
// Add to this array any additional params you need to remove in the same format as the existing
$page_remove_array = array(FILENAME_PRODUCT_INFO => array('manufacturers_id', 'cPath'),
FILENAME_DEFAULT => array() );
// remove page specific params, should be in same format as previous, given is manufacturers_id & cPath
// have to be removed in product_info.php only
if (is_array($page_remove_array[$basefile])) $remove_array = array_merge($remove_array, $page_remove_array[$basefile]);
foreach ( $remove_array as $value ) {
$search[] = '/&*' . $value . '[=\/]+[\w%..\+]*\/?/i';
}
$search[] = ('/&*osCsid.*/'); $search[] = ('/\?\z/');
if ($rem_index) $search[] = ('/index.php\/*/');
$request_uri = preg_replace('/\?&/', '?', preg_replace($search, '', $request_uri ));
echo $domain . $request_uri . PHP_EOL; // this one I modified
}
///
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php CanonicalLink( $xhtml = false, 'SSL' ) ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
Posted 04 November 2010, 16:54
Posted 10 November 2010, 02:41
Posted 01 December 2010, 12:34
Posted 04 December 2010, 23:31
smickyb, on 01 December 2010, 12:34, said:
Posted 04 December 2010, 23:51
surfinagain, on 04 December 2010, 23:31, said:
Posted 26 December 2010, 18:06
Posted 29 December 2010, 13:50
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="button_count" show_faces="false" width="450"></fb:like>
http://www.mysite.com/product_info.php?products_id=945?fb_xd_fragment
http://www.mysite.com/product_info.php?products_id=945?fb_xd_fragmentget a blank page
Edited by diy, 29 December 2010, 13:51.
Posted 23 February 2011, 12:01
smickyb, on 01 December 2010, 12:34, said:
Posted 23 February 2011, 14:50
surfinagain, on 04 December 2010, 23:51, said:
Edited by data2700, 23 February 2011, 15:04.
Posted 01 March 2011, 20:28
Posted 11 March 2011, 08:38
Posted 27 March 2011, 03:16
spear, on 01 November 2010, 16:15, said:
// remove duplicate content with canonical tag by Spooks 12/2009
function CanonicalLink( $xhtml = false , $ssl = 'SSL' ) {
global $request_type;
$rem_index = false; // Set to true to additionally remove index.php from the uri
$close_tag = ( false === $xhtml ? ' >' : ' />' ); $spage = '';
$domain = ( $request_type == 'SSL' && $ssl == 'SSL' ? HTTPS_SERVER : HTTP_SERVER ); // gets the base URI
// Find the file basename safely = PHP_SELF is unreliable - SCRIPT_NAME can show path to phpcgi
if ( array_key_exists( 'SCRIPT_NAME', $_SERVER )
&& ( substr( basename( $_SERVER['SCRIPT_NAME'] ), -4, 4 ) == '.php' ) ) {
$basefile = basename( $_SERVER['SCRIPT_NAME'] );
} elseif ( array_key_exists( 'PHP_SELF', $_SERVER )
&& ( substr( basename( $_SERVER['PHP_SELF'] ), -4, 4 ) == '.php' ) ) {
$basefile = basename( $_SERVER['PHP_SELF'] );
} else {
// No base file so we have to return nothing
return false;
}
// Don't produce canonicals for SSL pages that bots shouldn't see
$ignore_array = array( 'account', 'address', 'checkout', 'login', 'password', 'logoff' );
// partial match to ssl filenames
foreach ( $ignore_array as $value ) {
$spage .= '(' . $value . ')|';
}
$spage = rtrim($spage,'|');
if (preg_match("/$spage/", $basefile)) return false;
// REQUEST_URI usually doesn't exist on Windows servers ( sometimes ORIG_PATH_INFO doesn't either )
if ( array_key_exists( 'REQUEST_URI', $_SERVER ) ) {
$request_uri = $_SERVER['REQUEST_URI'];
} elseif( array_key_exists( 'ORIG_PATH_INFO', $_SERVER ) ) {
$request_uri = $_SERVER['ORIG_PATH_INFO'];
} else {
// we need to fail here as we have no REQUEST_URI and return no canonical link html
return false;
}
$remove_array = array( 'currency','language','main_page','page','sort','ref','affiliate_banner_id','max');
// Add to this array any additional params you need to remove in the same format as the existing
$page_remove_array = array(FILENAME_PRODUCT_INFO => array('manufacturers_id', 'cPath'),
FILENAME_DEFAULT => array() );
// remove page specific params, should be in same format as previous, given is manufacturers_id & cPath
// have to be removed in product_info.php only
if (is_array($page_remove_array[$basefile])) $remove_array = array_merge($remove_array, $page_remove_array[$basefile]);
foreach ( $remove_array as $value ) {
$search[] = '/&*' . $value . '[=\/]+[\w%..\+]*\/?/i';
}
$search[] = ('/&*osCsid.*/'); $search[] = ('/\?\z/');
if ($rem_index) $search[] = ('/index.php\/*/');
$request_uri = preg_replace('/\?&/', '?', preg_replace($search, '', $request_uri ));
echo $domain . $request_uri . PHP_EOL; // this one I modified
}
///
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php CanonicalLink( $xhtml = false, 'SSL' ) ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
Edited by selpaw, 27 March 2011, 03:24.
Posted 02 April 2011, 16:53
data2700, on 23 February 2011, 14:50, said:
selpaw, on 27 March 2011, 03:16, said:
Posted 03 April 2011, 18:18