Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add a title to the left hand links on info section


socom

Recommended Posts

Ok ive done it on the outside links

 

Example of that im after the below works

'<a href="http://forums.airsofters.co.uk/forumdisplay.php?f=154" title="Socom Tactical airsoft forums">Forums
</a><

 

 

How would i change the below to incorperate the title tag

 

'<a href="' . tep_href_link('buying-airsoft-gun.php') . '">' . htmlspecialchars('Buying an airsoft Gun') . '</a><br />' .

 

 

Also is it possible to to so the catorgarys automaticly have a title (same name as catorgary)

 

 

Thanks

Laurence

Link to comment
Share on other sites

'<a href="' . tep_href_link('buying-airsoft-gun.php') . '" title="Buying an airsoft Gun">' . htmlspecialchars('Buying an airsoft Gun') . '</a><br />'

To make the category links have title attributes:

 

/catalog/includes/boxes/categories.php

 

Find:

 

	$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

Change to:

 

	$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" title=" ' . $tree[$counter]['name'] . '">';

Backup the file before editing.

 

You break it - You fix it...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Doent work Just seems to Add

">

before each Cat When i changed

 

 

$categories_string .= ' href="'.tep_href_link(FILENAME_DEFAULT, $cPath_new);
Link to comment
Share on other sites

Works for me.

 

Code right off my files...

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...