Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Underscores, new pages and syntax T_string errors


Sal

Recommended Posts

Posted

I have added some new pages to my shop, everything worked ok, until I decided to add some more. I have added 3 more and when I tried to add them to my information box my links to the pages had underscores showing.

 

Soooo, I searched on here and found a topic and resolution:

 

in includes/filename.php

 

You need to:

 

define ('FILENAME_EXPORTORDERS' , 'yourlink.php');

 

and in the includes/launguges/yourlauguage.php

 

define ('BOX_TOOLS_EXPORTORDERS' , 'Export Orders');

 

problem fixed.

 

 

QUOTE(mightyvalk @ Mar 12 2007, 03:36 AM)

When I go into edit some of my headers or boxes to add additionla links or what ever...the underscore from my code is actually showing up on the site. Weird problem. I am used to html but this is a little different. I am sure it is something simple but I am missing it.

 

For Example:

 

This one works

'<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>'

 

This one doesn't

'<a href="' . tep_href_link(FILENAME_EXPORTORDERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_EXPORTORDERS . '</a><br>'

 

out put is

BOX_TOOLS_EXPORTORDERS in my box and

FILENAME_EXPORTORDERS is at the end in my address bar instead of EXPORTORDERS.php

 

I have done this (obviously changing box_tool to box_information!) and I am now getting the dreaded syntax error -t-string expected. The code I am adding is this:

 

define('BOX_INFORMATION_ABOUT_LUNALIGHT , 'About Lunalight');

define('BOX_INFORMATION_LINKS' , 'Links');

define('BOX_INFORMATION_ABOUT_OUR_PRODUCTS' , 'About Our Products');

 

Any ideas as to what is wrong with it? Have I just missed something silly? lol :-"

 

Any help gratefully received before I go completely bonkers!

Posted

Been searching the forum for the past hour and have only found one other post about it and it says to do the same as the above post, which I have done and am still getting the same error. Don't understand where I am going wrong!

Posted

I was right it was something silly! I think after looking at something over and over again you just miss things!

 

Thank you Jack, much appreciated! :* :thumbsup:

Archived

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

×
×
  • Create New...