Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

underscore arghh!


mightyvalk

Recommended Posts

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

Link to comment
Share on other sites

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.

 

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...