Menu

Link on item picture

Anonymous
2002-12-18
2002-12-19
  • Anonymous

    Anonymous - 2002-12-18

    Is i possibal to make a link on item foto to se detail on item ? what do i do ?

     
    • Andreas Kansok

      Andreas Kansok - 2002-12-18

      Visit your show_item*.

      Somewhere is a link builded, which is used with [detail]. Move the link-contruct-lines before picture is placed and use this link around the picture. It's easy ;-)

      (Hard to tell in English; when you don't understand, I'll write line-numbers here).

       
    • Anonymous

      Anonymous - 2002-12-18

      I onderstand what you wrote but... i dont se where i can cut the link out ??? so maybe if you please vill write the line number and where i can cut.

      (My result was 2 txt link with [detail] ??? :-)

       
    • Andreas Kansok

      Andreas Kansok - 2002-12-19

      Here it comes (from original show_item_0*)

      Insert into line 16:
      if ($item_row[17]!="")
      {
      $link_str = " <a href=\"detail.php?sess=$sess&art_id=$item_row[0]";
         if ($caller=="search") { $link_str .= "&caller=$caller&startlimit=$startlimit&lookfor=$lookfor";}
         else { $link_str .= "&abt=$abt&itemgr=$itemgr";}
      $link_end = "</a>";
      }

      Add to line 19:
      if ... { echo "$link_str<img src=...>$link_end"; }

      Replace line 35-38 with
      echo "$link_str<font color...[ ... ] $link_end";

       

Log in to post a comment.