Results 1 to 5 of 5

Thread: image - where do i put the bit of script?

  1. #1
    Join Date
    Jul 2009
    Posts
    94

    Default image - where do i put the bit of script?

    "With custom field, you can have a new data field with image type. In add and modify link form the field will be added automatically.

    To show the uploaded image in the listing page and detail page, you need to add the following code in template file: rows.html for listing and detail_link.html for detail page.

    <img src="<%$theimage%>" />""

    added a banner to link 13 on Pomeranian Directory - Pomeranian Breeders, Find Pomeranian Puppies, Pomeranians but it does not show.
    I need alittle more help with where exactly to add the piece of code in row and detail_link

    thanks in advance

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Did you uploaded banner to that link (link ID: 13)?

    URL:
    Code:
    http://www.pomeranians.org/detail.php?id=13
    You can put the code any where in rows.html for listing and detail_link.html
    Code:
    <img src="<%$theimage%>" />
    Don't forget the change <%$theimage%> to the custom field name you have created

  3. #3
    Join Date
    Jul 2009
    Posts
    94

    Default

    o.k. the image is now showing for detail but not for listing. Also on the detail I have a red cross at the bottom.

    Dochlaggie Pomeranians Australia. Best in Show Champion Pomeranians.

  4. #4
    Join Date
    Jul 2009
    Posts
    94

    Default

    sorry it now does show in the listing and detail, but i have the red cross at the bottom of detail. I also want to change the image to be in centre?

  5. #5
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    You place the image in incorrect location, it should be inside <td>

    Your code:
    Code:
            <tr class="odd">
          <td>Title</td>
    
          <td>Dochlaggie Pomeranians Australia. Best in Show Champion Pomeranians.</td>
        </tr>
         
        <img src="upload_files/image_13.gif" />
        <tr>
          <td>Url</td>
          <td><a href="http://www.pomeranian.net/pom/" name="link_13">http://www.pomeranian.net/pom/</a></td>
        </tr>
    If you want to put inside the <table> tag, it should be:
    Code:
    <tr>
      <td colspan="2">
        <%$theimage%>
      </td>
    </tr>

Similar Threads

  1. Script Dragon - Script Mod Directory
    By mpdaddy in forum Sites in Action
    Replies: 1
    Last Post: 03-06-2008, 10:56 PM
  2. Amazing script !
    By linksor.com in forum Customer Reviews
    Replies: 0
    Last Post: 12-12-2007, 11:39 AM
  3. Script need
    By foxum in forum Help Wanted/Job Request
    Replies: 4
    Last Post: 06-08-2007, 07:40 AM
  4. upload image problem >script not open
    By karel in forum v5.x
    Replies: 0
    Last Post: 08-08-2004, 01:59 PM
  5. ad banner script
    By toneranger in forum Pre-Sales Questions
    Replies: 2
    Last Post: 03-02-2003, 09:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •