Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

T_CONSTANT_ENCAPSED_STRING


stressed mark

Recommended Posts

Posted

Hi

 

I have followed the direction given on a post to remove the whats new box on the front page ..

 

"Either Comment out this line in public_htm/index.php

 

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

"

 

I have followed these steps and get the following error msg ..

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mogsey/public_html/totallybear/includes/languages/english/index.php on line 33

 

I have counted down to line 33 but i cannot find a problem??

 

 

Any ideas??

 

many thanks mark

Posted
Hi

 

I have followed the direction given on a post to remove the whats new box on the front page ..

 

"Either Comment out this line in public_htm/index.php

 

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

"

 

I have followed these steps and get the following error msg ..

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mogsey/public_html/totallybear/includes/languages/english/index.php on line 33

 

I have counted down to line 33 but i cannot find a problem??

Any ideas??

 

many thanks mark

 

 

edited your language file as well ?

Treasurer MFC

Posted

this:

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

 

like this:

<?php /*

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

*/ ?>

 

and then you dont have to edit your language file

Posted
this:

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

 

like this:

<?php /*

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

*/ ?>

 

and then you dont have to edit your language file

 

 

Hi I tried that and when i saved it i got this error instead ...

 

Parse error: parse error, unexpected '<' in /home/mogsey/public_html/totallybear/includes/languages/english/index.php on line 14

 

so i changed it back and im still getting the original error :blink: :(

 

im getting really confused now !!!! please help

Posted

copy and paste the 10 lines before and after your error

Posted
copy and paste the 10 lines before and after your error

 

 

Hi thankyou for all your help it is appreciated!!!

i got that confused i have reset the entire index.php page !!

 

i think i understand now where i was going wrong ...

 

i was altering the file was

"define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');"

 

You were asking myself to change was

" <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

 

so i think i was in an incorrect index.php file!!!

 

could anyone detail how to remove the new products box or post a link to a page where it describes how to???

 

once again thankyou everyone

 

very confused mark

Posted

I cannot find any trace of the text ...(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS) in my index.php???

 

i have navigated to this index.php by going ...

 

public_html/totallybear//includes/languages/english

 

where do i find the index file that contains DIR_WS_MODULES .

FILENAME_NEW_PRODUCTS)

 

many thanks

 

mark

Archived

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

×
×
  • Create New...