Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unknown piece of coding on my site ?


monster061

Recommended Posts

Posted

You can check it out on my site HERE and on the english and many other pages there is something that looks like this: 

 

It does not appear on the Macedonian and Serbian version.

 

I checked everything in order not to bother again but unfortunately I did not find the solution.

 

Smart people on this forum please yet again help me where can I find and remove this ugly code.

The creator of www.futomart.com

Posted

it is just a few bad characters in index.php. Search near the bottom of the file and you will find it.

Posted

You have added some meta tags in the wron place they belong in the existing <head></head> section after doctype.

These two will probably cause your problems

 

<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=US-ASCII">
<META HTTP-EQUIV="Expires" CONTENT="???, ??? 2 2015 00:00:01 GMT">

 

 

 

<HEAD>
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=US-ASCII">
<META HTTP-EQUIV="Expires" CONTENT="???, ??? 2 2015 00:00:01 GMT">
<TITLE>Futomart On-Line Store</TITLE>
<meta name="robots" content="index,follow" />
<META NAME="author" content="[email protected]">
<META NAME="keywords" CONTENT="FlyJumper, Powerizer, Jumping Stilts, Macedonia, SkyRunner, Pro-Jump, Best, Cheap">
<META NAME="description" CONTENT="On-Line Store Selling FlyJumper Jumping Stilts">
<meta NAME="COPYRIGHT" CONTENT="All Rights Reserved">
<META NAME="ROBOTS" CONTENT="ALL">

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
<title>Futomart On-Line Store Selling FlyJumpers / Powerizers</title>
<meta name="keywords" content="" />
<meta name="description" content="" />

<base href="http://www.futomart.com/">
<link rel="stylesheet" type="text/css" href="stylesheet.css">

<!-- stardevelop.com Live Help International Copyright - All Rights Reserved //-->
<!-- BEGIN Live Help Code - NOT PERMITTED TO MODIFY IMAGE MAP/CODE/LINKS //-->
<script language="JavaScript" type="text/JavaScript" src="/livehelp/include/javascript.php"></script>
<!-- END Live Help HTML Code - NOT PERMITTED TO MODIFY IMAGE MAP/CODE/LINKS //-->


<link rel="shortcut icon" href="favicon.ico">
</head>

Posted

I cannot find this piece of coding anywhere in my website....

 

Only this shows up in my index.php

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Futomart On-Line Store Selling FlyJumpers / Powerizers</title>

<meta name="keywords" content="" />

<meta name="description" content="" />

 

<base href="http://www.futomart.com/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

 

<!-- stardevelop.com Live Help International Copyright - All Rights Reserved //-->

<!-- BEGIN Live Help Code - NOT PERMITTED TO MODIFY IMAGE MAP/CODE/LINKS //-->

<script language="JavaScript" type="text/JavaScript" src="/livehelp/include/javascript.php"></script>

<!-- END Live Help HTML Code - NOT PERMITTED TO MODIFY IMAGE MAP/CODE/LINKS //-->

 

 

<link rel="shortcut icon" href="favicon.ico">

</head>

The creator of www.futomart.com

Posted

Yes, "" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.

 

Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM.

 

You need a decent text editor .. try ConTEXT.(google it it's free)

 

Looking at the source I think it is in the footer.

 

<!-- footer //-->


Posted
I am using Dreamweaver and I cannot find it inside the footer...

 

Dreamweaver uggh .. never used it but see so many problems caused by it!

 

I've not used this either but I understand from fellow developers that jedit can help here with BOM removal.

Posted

BOM is only appearing on the English version of my page, other languages are OK, how is this possible ?

 

Its not on every page as well

The creator of www.futomart.com

Posted
BOM is only appearing on the English version of my page, other languages are OK, how is this possible ?

 

Its not on every page as well

 

Suggests a language file then doesn't it.

 

languages/english.php

 

or files in languages/english/ - directory

Posted

And .. I'm not going to support this as this forum is to support core osCommerce code.

 

Standard osCommerce code would read ..

 

 

<!-- body_eof //-->

<!-- footer //-->
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">

 

Yours reads ..

 

<!-- body_eof //-->

<!-- footer //-->


	 </td></tr>

	</table>
	<table cellspacing=0 cellpadding=0>

Posted

My footer is totaly oscommerce. I only have translations. Have a look

 

 

 

<?php

/*

$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

 

require(DIR_WS_INCLUDES . 'counter.php');

?>

 

 

</td></tr>

</table>

<table cellspacing=0 cellpadding=0>

 

 

<br>

 

 

<tr><td height=1 colspan=1></td></tr>

<tr><td height=1 width=700 bgcolor=#9B9B9B colspan=2></td></tr>

<tr><td height=1 colspan=1></td></tr>

<tr><td width=200>

 

 

 

 

</td><td width=1000000 align=left>

 

<div align="center">

<p>

 

<?

//$main = "src=imgages/m01.gif" MK = case - 4 SR = case - 5;

 

switch ($languages_id){

case 1: $currencyo = "- In order to find out more about our payments, shipping and return options before purchasing ";

$currencyoа = "(click here).";

 

break;

 

case 4: $currencyo = "- За да дознаете повеќе за начините на плаќање, испорачување и за враќање на производ пред да купувате ";

$currencyoа = "(кликнете тука).";

 

 

break;

 

case 5: $currencyo = "- In order to find out more about our payments, shipping and return options before purchasing ";

$currencyoа = "(click here).";

 

 

break;

 

 

}

?>

 

 

 

<?= $currencyo;?><a href="shipping.php"><?= $currencyoа;?></a> </p>

 

 

 

 

 

 

<p>

 

<?

//$main = "src=imgages/m01.gif" MK = case - 4 SR = case - 5;

 

switch ($languages_id){

case 1: $currencyos = "- Terms and Conditions at Futomart.com -";

 

 

break;

 

case 4: $currencyos = "- Услови и Одредби на Futomart.com -";

 

 

 

break;

 

case 5: $currencyos = "- Terms and Conditions at Futomart.com - ";

 

 

 

break;

 

 

}

?>

 

 

<a href="privacy.php"><?= $currencyos;?></a> </p>

<?

//$main = "src=imgages/m01.gif" MK = case - 4 SR = case - 5;

 

switch ($languages_id){

case 1: $currencyosа = "Pay at Futomart through:";

 

 

break;

 

case 4: $currencyosа = "Плаќајте на Futomart преку:";

 

 

 

break;

 

case 5: $currencyosа = "Pay at Futomart through:";

 

 

 

break;

 

 

}

?>

 

<p><strong><?= $currencyosа;?></strong> <br>

<!-- Begin Moneybookers logo code -->

<a href="http://www.moneybookers.com/" target="_blank"><img style="border-width: 1px; border-color: #8B8583;" src="http://www.moneybookers.com/images/logos/checkout_logos/checkout_120x40px.gif" border=0></a>

<!-- End of Moneybookers logo code -->

<a href="www.westernunion.com"></a><br>

<br>

 

<?

//$main = "src=imgages/m01.gif" MK = case - 4 SR = case - 5;

 

switch ($languages_id){

case 1: $currencyosаr = "All Rights Reserved. ";

$currencyosаa = "Powered by ";

 

 

break;

 

case 4: $currencyosаr = "Сите Права се Задржани. ";

$currencyosаa = "Помогнато од ";

 

 

 

break;

 

case 5: $currencyosаr = "All Rights Reserved. ";

$currencyosаa = "Powered by ";

 

 

 

break;

 

 

}

?>

 

<font color=#9B9B9B><?= $currencyosаr;?>© 2008 Futomart.com</font>  <?= $currencyosаa;?><a href="http://www.oscommerce.com">Oscommerce</a></p>

</div></td></tr>

<tr><td height=20 colspan=2></td></tr>

</table>

</td></tr>

</table>

 

 

 

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<br>

<?php

}

 

?>

The creator of www.futomart.com

Posted

Yep as I said .. non standard

 

require(DIR_WS_INCLUDES . 'counter.php');
?>
</td></tr>
</table>
<table cellspacing=0 cellpadding=0>

 

Should be ..

 

  require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">

 

Even going back to MS2.2

 

Not another template monster template please??

Posted

So there's no solution brother ?

 

I did 1,000,000 millions of things with this template, modifying, adding, changing applying, and now a problem as big as a nail will stay there forever ? :) NO WAY !!!!

The creator of www.futomart.com

Posted
So there's no solution brother ?

 

I did 1,000,000 millions of things with this template, modifying, adding, changing applying, and now a problem as big as a nail will stay there forever ? :) NO WAY !!!!

 

Ofc there's a solution .. do it yourself if you can .. if not .. pay for someone to do it.

Posted

I opened this topic in order to find out if someone has encountered a similar problem and is willing to share the experience of solving this problem with me. Paying for someone to do it is the easiest part.

 

-Please only send me a personal message requesting help if you are willing to pay for it.-

 

Are you offering your service ?

The creator of www.futomart.com

Posted
I opened this topic in order to find out if someone has encountered a similar problem and is willing to share the experience of solving this problem with me. Paying for someone to do it is the easiest part.

 

-Please only send me a personal message requesting help if you are willing to pay for it.-

 

Are you offering your service ?

 

Nope

Posted
I opened this topic in order to find out if someone has encountered a similar problem and is willing to share the experience of solving this problem with me. Paying for someone to do it is the easiest part.

 

-Please only send me a personal message requesting help if you are willing to pay for it.-

 

Are you offering your service ?

The posts above regarding the BOM correctly state your issue. I would suggest searching through all of your code for the special chacters that are showing up. They will most likely be either at the very top or very bottom of the affected file.

 

This happened to some of my clients who were using Microsoft Expression Web HTML editor. The program did not know what to do with the PHP code so it inserted the BOM characters. Pretty stupid I know but there it is.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...