The osCommerce infoBox arrows are far too small to effectively communicate a linkable area. Instead, I’d think many would just like to make the infoBox title linkable. To accomplish this do the following:
=> open file /includes/classes/boxes.php
=> find the 2 $right_corner if statements (around line 112 and 118)
=> comment these 2 if statements out
=> then add the following lines:
$right_corner = tep_image(DIR_WS_IMAGES . ‘infobox/corner_right.gif’)
$headingTitle = ‘’;
$headingTitle = $contents[0][’text’];if ($right_arrow == true) {
$headingTitle = ‘‘ . $headingTitle . ‘‘;}
=> in the info_box_contents array
=> find: ‘text’ => $contents[0][’text’]),
=> replace with: ‘text’ => $headingTitle),
That should be all there is to change the osCommerce infoBox headings to links the title instead of using the arrow.
* Note: I’d already modified this file to always print the right corner box. In any other case, keep the second right_arrow “if” statement and remove only the append of $right_arrow.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Mar | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
RSS feed for comments on this post · TrackBack URI
Leave a reply