Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image link is not going to the right page


Snoboreders

Recommended Posts

I have an image that is in the left hand column of my webpage, and because it is in the header.php file, it is always there. Well, I don't want it to go to categories, but instead go to our myspace page. If you scroll to the bottom of the code, you will see where I inserted myspace.

 

For some reason, when I scroll over it when I view my index page, this appears "http://www.artifexshirts.com/www.myspace.com/artifexshirts"

 

How can I get around the artifexshirts.com? I want to link the rest of my images to pages outside my website, so this would be a big help.

 

Thanks for the help.

 

 

  //------------------------
 if ($cPath) {
$new_path = '';
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
  unset($parent_id);
  unset($first_id);
  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
  if (tep_db_num_rows($categories_query)) {
	$new_path .= $value;
	while ($row = tep_db_fetch_array($categories_query)) {
	  $tree[$row['categories_id']] = array('name' => $row['categories_name'],
										   'parent' => $row['parent_id'],
										   'level' => $key+1,
										   'path' => $new_path . '_' . $row['categories_id'],
										   'next_id' => false);

	  if (isset($parent_id)) {
		$tree[$parent_id]['next_id'] = $row['categories_id'];
	  }

	  $parent_id = $row['categories_id'];

	  if (!isset($first_id)) {
		$first_id = $row['categories_id'];
	  }

	  $last_id = $row['categories_id'];
	}
	$tree[$last_id]['next_id'] = $tree[$value]['next_id'];
	$tree[$value]['next_id'] = $first_id;
	$new_path .= '_';
  } else {
	break;
  }
}
 }
 $categories_string .=  '';
 tep_show_category_template($first_element); 
 $categories_string .=  '';

 echo $categories_string;
?>

				   <tr><td height=12></td></tr>					   
				  </table>
			 </td></tr>
			 <tr><td colspan=2 height=3></td></tr>
			 <tr><td colspan=2><a href="www.myspace.com/artifexshirts"><img src=images/m19.jpg width=145 height=207 border=0></a></td></tr>
			</table>
		   </td>
		   <td width=3></td>
		   <td width=564 valign=top>

Link to comment
Share on other sites

not sure, perhaps there is a force in the file somewhere telling it to stay on your domain, try changing it to this:

 

<a href="http://www.myspace.com/artifexshirts"><img src=images/m19.jpg width=145 height=207 border=0></a>

 

May fix it, being a template makes it hard sometimes

 

HTH

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Link to comment
Share on other sites

not sure, perhaps there is a force in the file somewhere telling it to stay on your domain, try changing it to this:

 

<a href="http://www.myspace.com/artifexshirts"><img src=images/m19.jpg width=145 height=207 border=0></a>

 

May fix it, being a template makes it hard sometimes

 

HTH

 

Thanks for the reply...but the code isn't actually broken.

 

I guess I'll have to do some more trial and error to see if I can figure it out.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...