Results 1 to 10 of 10

Thread: Uploaded Image Not Shown On Results?

  1. #1
    Join Date
    Jul 2008
    Posts
    9

    Default Uploaded Image Not Shown On Results?

    Hi

    I have added the option to upload an image when submitting a new link. (using indexU free trial version)

    This works fine, and I can see the image if I review the listing from the admin panel - but if you view listing on the website; no image is shown - including when you look at result detail.

    Is there some thing else I need to edit to make the image appear.

    The test image is well below any max settings etc and file type set to OK....

    Please advise if pos.

    Thanks for your continued help and support )

    Dan

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    you need to add the name of the field to the listing.

    If your custom field is name screenshot then add the following to detail_link.html

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

  3. #3
    Join Date
    Jun 2009
    Posts
    28

    Default

    Hi,

    I added this line to detail_link.html:
    <img src="<%$mainimage%>" />

    Still don't see any picture, and it is visible in admin area.

  4. #4
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    Have you checked your source once the page has rendered to see where the image path is pointing to, if at all?
    ____________________________
    http://www.articleconveyer.com
    Give Your Articles Exposure



  5. #5
    Join Date
    Jun 2009
    Posts
    28

    Default

    Thank you echo@,

    I'm going to make some more tests and I'll post here if I still have some problems.

  6. #6
    Join Date
    Jun 2009
    Posts
    28

    Default

    Hi.

    I have created three custom fields so I can add images to the listings.
    They are main_image, extra_image1, extra_image2.

    The problem is that when I just have one image uploaded, the other two appear as an non-existent image and the browser acts like it's an error.
    How can I avoid this from happening?

    I'm using a ColorBox system, which is working fine except from this problem.

    Thank you.
    Attached Images Attached Images

  7. #7
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    Mate this is like a year later?!!

    do you have a example URL?
    ____________________________
    http://www.articleconveyer.com
    Give Your Articles Exposure



  8. #8
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Your going to need an <if> <then> statement. Basically telling it, IF extra_image1 and extra_image2 exists THEN show the image, ELSE dont display anything.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  9. #9
    Join Date
    Jun 2009
    Posts
    28

    Default

    Quote Originally Posted by FSGDAG View Post
    Your going to need an <if> <then> statement. Basically telling it, IF extra_image1 and extra_image2 exists THEN show the image, ELSE dont display anything.
    That's pretty much it. Thank you.

    The problem is the code. Anyone can help?

    This is what I have:

    PHP Code:
     <a href="../../<%$mainimage%>" rel="example1"><img border="0" width="100" align="top" src="../../<%$mainimage%>" /></a>
    <
    a href="../../<%$extraimage01%>" rel="example1"><img border="0" width="100" align="top" src="../../<%$extraimage01%>" /></a>
    <
    a href="../../<%$extraimage02%>" rel="example1"><img border="0" width="100" align="top" src="../../<%$extraimage02%>" /></a
    Thanks

  10. #10
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    You could try something like this:

    PHP Code:
    <% if $mainimage !=' ' %>
            <
    a href="../../<%$mainimage%>" rel="example1"><img border="0" width="100" align="top" src="../../<%$mainimage%>" /></a>
    <%else%>
           
    Image Not Available
    <%/if%> 
    Repeat for other two images

    I'm not positive if thats going to work for you, but it should give you a good starting point
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. how to show uploaded images
    By christ65 in forum v5.x
    Replies: 3
    Last Post: 06-25-2007, 04:49 PM
  2. Just paid and uploaded
    By 12noon in forum Pre-Sales Questions
    Replies: 5
    Last Post: 09-14-2004, 03:19 AM
  3. Replies: 1
    Last Post: 06-14-2004, 08:50 AM
  4. Getting uploaded image to show
    By DTX in forum Tutorials, Hints & Tips
    Replies: 2
    Last Post: 05-28-2003, 07:19 AM
  5. about uploaded images...
    By iokasti in forum v5.x
    Replies: 2
    Last Post: 01-20-2003, 05:54 AM

Posting Permissions

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