RE: Can a product link to an external site (ie: cafepress.com)?

MaxiDVD <[email protected]> 10 Sep 2003 19:39:25 -0000
Newsgroups gmane.comp.web.oscommerce.contributions
Message-ID <616c277ff2d62d8b6a1a9d03d52f3821@osCommerce-Forums>
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=227551#227551
----------------------------------------------------------------

This works,

I didnt realize you where puting this into a /language file. (all language files are enclosed in php tags from top to bottom..)

So-

define('TEXT_INFORMATION'   '<-- INFO IN HERE any Single Quotes like this --> ' <-- need to be back slashed --> \ <--  like this --> \' <-- else it breaks the php, see here is the final one -->' );

[code]<?php
/*
  $Id: releases.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2002 osCommerce

  Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'RELEASES');

define('TEXT_INFORMATION', '<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#993300" width="100%" id="AutoNumber1" height="100%" bgcolor="#000000">
  <tr>
    <td width="100%" height="1" bgcolor="#993300" class="infoBoxHeading">&nbsp;&nbsp;
    Releases</td>
  </tr>
  <tr>
    <td width="100%" height="100%" class="infoboxcontents" align="center"><br>
    <p><a name="present"><b><font face="Courier" size="4">!! AVAILABLE NOW !!</font></b></a></p>
    <a name="present">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="80%" height="180" bordercolor="#333333" bgcolor="#000000">
      <tr>
        <td height="164" width="35%" align="center">
        <img border="0" src="http://www.murdertheworld.net/images/small.jpg" width="150" height="150"></td>
        <td height="135" width="65%" align="left" valign="top"><b>
        <font color="#CC0000" face="Verdana" size="2">MTW002</font></b><font face="Verdana" size="2"><br>
        </font><font size="2" color="#999999" face="Verdana"><i>Foetopsy&nbsp; 7&quot;
        EP &quot;Bizarre Gynecology&quot;</i> </font>
        <p><font size="2" color="#333333" face="Verdana">Picking up from where the
        MCD left...&nbsp; sicker.... faster.....</font></p>
        <p></p>
        <p><font face="Verdana" size="2"><font color="#333333">Full release details


        <a href="#" onclick="javascript: window.open(\'http://forums.oscommerce.com/viewtopic.php?t=38047\', \'\',\'width=500,height=140,left=10,top=10,scrollbars=no\');return false;">Pop open window link would be here</a>


        </font></font><br>
        </p>
        </b></td>
      </tr>
    </table>
    <p></td>
  </tr>
</table><br>');
?>[/code]

do you use a Text Editor or a PHP Editor? a decent PHP editor has different colours for text, php, html, javascript - make life easy the work-out if theres a drama,, like all the info inbetween the single quotes in a define, should be one colour (php colour) if I put a random single quote anywhere in the middle of the define, the information following after the double quote changes to a different colour meaning the php has a break in it somewhere and needs to fixed.. php is very unforgiving.

Winsyntax (PHP/Text/Code Editor) is great and very simple, and FULLY FREE from http://www.download.com

Cheers

Cheers MaxiDVD