Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

is it necessary to tep_href?


Guest

Recommended Posts

Posted

similarly to the tep_href_link function to preserve the session id, is it necessary to do a similar thing to images? if so, how?

Posted

No, it is not required. However if you use the tep_image function, it will set things up you might miss by just using html. For example, it adds the alt text tag, which is required for images or an error is created. The title tag is also added using the alt tag text, if present. This is usefule for the search engines. As long as you entered those things in an html img statement, then it makes no difference which you use.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
similarly to the tep_href_link function to preserve the session id, is it necessary to do a similar thing to images? if so, how?

 

Use of the tep_image is a good way to avoid the secure non secure messages a user might receive. It just makes life a little easier.

 

Also if you take a look at the function itself its fairly easy to understand how it works and how to fill in the details you need when you call on it. I have even made a second tep_image for more customized needs, like tep_image_myspecialneeds.

Read, read, read, test, read, read, test, read, implement.

Always back up your site and database before changes.

Always back up on a regular basis.

Posted
Use of the tep_image is a good way to avoid the secure non secure messages a user might receive
Non secure messages are casued by links, not images, so using the function for that purpose won't make any difference.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

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

×
×
  • Create New...