Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Define Main Page Contrib & Session Id's


mark27uk3

Recommended Posts

Hi Guys,

 

I have installed the define main page contrib on my test server and I am trying to add an image to the main page with a link to a category.

 

However everytime I click save it is adding a session id into the code, the image displays but the link does not work.

 

Here is the code I am using

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cpath=21', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . fasciasmain.gif) . '</a>';?>

 

and this is what it looks like after it has been saved

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cpath=21', 'NONSSL') . '?osCAdminID=4241e142aae43fe19b2f29fc568b1c6f">' . tep_image(DIR_WS_IMAGES . fasciasmain.gif) . '</a>';?>

 

How do I stop the session id being inserted into the code.

 

Thanks

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

Emmett,

 

Thanks for your reply.

 

Okay so I hard code the url in but what do you mean by dont change the tep_href_link function?

 

Surely I will have to remove it?

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...