Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php pages


kudviss

Recommended Posts

Posted

Hi , I have added a new page based on information box. it worked fine , but when i wanted to add to includes/languanges/my language/my_new _page.php the logos and links of my refererrals, there have been always a bug. However when i tried to add their links to another page (/catalogue/my_new_page) in some place among the lines, it worked fine.

I also tried to add a simple text in includes/languanges/my language/my_new _page.php and it was fine, just the referrals links were not supported.

I wonder why these links are supported in some php files and other not.

Could anyone please tell me what's wrong with it.

Posted

Bud your question can't be answered because your thoughts are broken please explain better and I will help the best I can.

 

Hi , I have added a new page based on information box. it worked fine , but when i wanted to add to includes/languanges/my language/my_new _page.php the logos and links of my refererrals, there have been always a bug. However when i tried to add their links to another page (/catalogue/my_new_page) in some place among the lines, it worked fine.

I also tried to add a simple text in includes/languanges/my language/my_new _page.php and it was fine, just the referrals links were not supported.

I wonder why these links are supported in some php files and other not.

Could anyone please tell me what's wrong with it.

Posted
Bud your question can't be answered because your thoughts are broken please explain better and I will help the best I can.

 

Oh Thank you for your kind reply. I want to submit my website to search directories, and they ask me to put their logos in my website too (reciprocal). For that, i would like to put all the logos in a specific page. So, I added a new information box named Links following the steps described in this site http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49.

 

The new page is added now. It s empty. When I tried to fill it with those links it does not support them, there were bugs.

As an example these link codes:

 

<?php

$url = "http://www.refseo.com/mot.php?" .

"id=6278" . "&" . "url=" . urlencode($_SERVER['REQUEST_URI']) . "&" . "urlh=" . urlencode($_SERVER['HTTP_HOST']);

$rseo = @fsockopen("www.refseo.com", 80, $errno, $errstr, 3);

if($rseo)

{

@readfile($url);

fclose($rseo);

}

?>

 

other links:

 

<A HREF='http://www.annuaire.chiffonnette.ch' TARGET='_blank'> <IMG

SRC='http://www.chiffonnette.ch/annuaire/img/ChiffoAnime3.gif' border='0' ALT='Annuaire

Chiffonnette - Incontournable'></A>

<a href="http://www.referencement-annuaire.net"><img src="http://www.referencement-annuaire.net/annuaire/images/banniere88x31.jpg" alt=" lien en dur referencement annuaire" width="88" height="31" border="0"></a>

 

 

 

These logos can be seen in my html editor browser, but when i copy them to catalogue/includes/languages/english/links.php, i can see only bugs such as unexpected T string, and unexpected ? online 24 etc . you can see my links.php here below:

 

 

<?php

/*

$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Links');

define('HEADING_TITLE', 'Links');

 

 

define('TEXT_INFORMATION', '

 

<?php

$url = "http://www.refseo.com/mot.php?" .

"id=6278" . "&" . "url=" . urlencode($_SERVER['REQUEST_URI']) . "&" . "urlh=" . urlencode($_SERVER['HTTP_HOST']);

$rseo = @fsockopen("www.refseo.com", 80, $errno, $errstr, 3);

if($rseo)

{

@readfile($url);

fclose($rseo);

}

?>

 

<a href="http://www.rencontre.dafun.com"><img src="http://www.rencontre.dafun.com/rencontre.gif" border=0 alt=referencement-coeur-a-prendre-1er-site-de-rencontre-en-europe></a><br><a href="http://www.annuaire-echange-lien.dafun.com" title=annuaire-echange-lien><font face=Comic color="#00FFFF"><font size=2>annuaire</a></font></font>

 

<A HREF='http://www.annuaire.chiffonnette.ch' TARGET='_blank'> <IMG

SRC='http://www.chiffonnette.ch/annuaire/img/ChiffoAnime3.gif' border='0' ALT='Annuaire

Chiffonnette - Incontournable'></A>

 

<a href="http://www.referencement-annuaire.net"><img src="http://www.referencement-annuaire.net/annuaire/images/banniere88x31.jpg" alt=" lien en dur referencement annuaire" width="88" height="31" border="0"></a>

 

 

');

?>

Posted

you need to add \ to all the " and ' right before them otherwise the php file will think it is a command if within a echo statment.

 

So for ex:

 

echo '<a href=\'http://www.domainname.com\'><img src=\'http://www.domainname.com/image.jpg\' boder=0>Whatever</a>';

 

 

I hope this helps!

 

 

 

Oh Thank you for your kind reply. I want to submit my website to search directories, and they ask me to put their logos in my website too (reciprocal). For that, i would like to put all the logos in a specific page. So, I added a new information box named Links following the steps described in this site http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49.

 

The new page is added now. It s empty. When I tried to fill it with those links it does not support them, there were bugs.

As an example these link codes:

 

<?php

$url = "http://www.refseo.com/mot.php?" .

"id=6278" . "&" . "url=" . urlencode($_SERVER['REQUEST_URI']) . "&" . "urlh=" . urlencode($_SERVER['HTTP_HOST']);

$rseo = @fsockopen("www.refseo.com", 80, $errno, $errstr, 3);

if($rseo)

{

@readfile($url);

fclose($rseo);

}

?>

 

other links:

 

<A HREF='http://www.annuaire.chiffonnette.ch' TARGET='_blank'> <IMG

SRC='http://www.chiffonnette.ch/annuaire/img/ChiffoAnime3.gif' border='0' ALT='Annuaire

Chiffonnette - Incontournable'></A>

<a href="http://www.referencement-annuaire.net"><img src="http://www.referencement-annuaire.net/annuaire/images/banniere88x31.jpg" alt=" lien en dur referencement annuaire" width="88" height="31" border="0"></a>

These logos can be seen in my html editor browser, but when i copy them to catalogue/includes/languages/english/links.php, i can see only bugs such as unexpected T string, and unexpected ? online 24 etc . you can see my links.php here below:

<?php

/*

$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Links');

define('HEADING_TITLE', 'Links');

define('TEXT_INFORMATION', '

 

<?php

$url = "http://www.refseo.com/mot.php?" .

"id=6278" . "&" . "url=" . urlencode($_SERVER['REQUEST_URI']) . "&" . "urlh=" . urlencode($_SERVER['HTTP_HOST']);

$rseo = @fsockopen("www.refseo.com", 80, $errno, $errstr, 3);

if($rseo)

{

@readfile($url);

fclose($rseo);

}

?>

 

<a href="http://www.rencontre.dafun.com"><img src="http://www.rencontre.dafun.com/rencontre.gif" border=0 alt=referencement-coeur-a-prendre-1er-site-de-rencontre-en-europe></a><br><a href="http://www.annuaire-echange-lien.dafun.com" title=annuaire-echange-lien><font face=Comic color="#00FFFF"><font size=2>annuaire</a></font></font>

 

<A HREF='http://www.annuaire.chiffonnette.ch' TARGET='_blank'> <IMG

SRC='http://www.chiffonnette.ch/annuaire/img/ChiffoAnime3.gif' border='0' ALT='Annuaire

Chiffonnette - Incontournable'></A>

 

<a href="http://www.referencement-annuaire.net"><img src="http://www.referencement-annuaire.net/annuaire/images/banniere88x31.jpg" alt=" lien en dur referencement annuaire" width="88" height="31" border="0"></a>

');

?>

Posted

this is not a way to do it. Get the default osc and examine the content of the catalog\includes\languages\english\index.php to see how it combines the strings and php.

 

Basically mixing strings with php

define('THE_NAME', 'String-1' . $var1 . 'String2' . $var2);

 

 

And why you're hard-coding links? Use a links manager module is far easier and you can avoid all this mess.

http://www.oscommerce.com/community/contributions,1256

Posted

I already installed that module but i didn't like it because it made my Column_right disappeared when i click on links page.

 

Oh you know i didn't understand your meaning concerning strings , i don't know what is that.

What is THE_NAME. my page is empty, it s like default shipping or privacy page. I wonder why it is so difficult to add those hypertexts to such pages, while we can add them to catalogue/index.php easily and the logos appear on the main page fine.

 

 

Regards,

Archived

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

×
×
  • Create New...