Results 1 to 11 of 11

Thread: user image upload and display

  1. #1
    Join Date
    Apr 2009
    Posts
    27

    Default user image upload and display

    Hi,
    I recently added a new 'upload image field' to the add/modify listing page setup and the field is now live but the image does not display in the listing.
    Do I need some code in the main.css file to tell it how to display the image or do I need some more code somewhere else?
    I am using indexU Deluxe 1.31.

    Cheers in advance!

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

    Default

    In /themes/<your_theme>/detail_link.html you must put the field name that you want displayed.

    Example: Your custom field is named 'logo'. You would put <%$logo%> where you wanted the image to display.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

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

    Default

    simply putting <%$logo%> won't work.

    You need to tell the browser that it's an image so you would use <img src="<%$logo%>" />

    You might even need to add the path up the upload directory as well.

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

    Default

    You forgot $ sign.
    Code:
    <img src="<%$logo%>" />

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

    Default

    Yup I did, I'll fix my post thanks.

  6. #6
    Join Date
    Apr 2009
    Posts
    27

    Default

    Thanks - I'll give that a go - thought I was missing something!

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

    Default

    Quote Originally Posted by Bruceper View Post
    simply putting <%$logo%> won't work.
    I guess I'm getting lazy with my typing! I should have written the entire thing out
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  8. #8
    Join Date
    Jun 2007
    Location
    Quebec
    Posts
    242

    Default

    I need to call the fields manually in add_form.html. I removed <%$custom_field_form%> but i dunno how to call my fields manually.
    Can some one show me whats the code that is used.


    Many Thanks.

  9. #9
    Join Date
    Jun 2007
    Location
    Quebec
    Posts
    242

    Default

    OK i was able to see i need to use this ... it works fine for text but not any other type of inputs.

    <div>
    <label><%t%>Image<%/t%></label>
    <span><input type="image" name="image" value="<%$image%>" /></span>
    </div>

  10. #10
    Join Date
    Jun 2007
    Location
    Quebec
    Posts
    242

    Default

    Input type "file" works....

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

    Default

    input type file is correct. You need to add that to add_form.html and upgrade.html

    But to display the image you need to add <img src="<%$fieldname%>" /> to detail_link.html

Similar Threads

  1. Image upload in 5.0
    By vittle in forum v5.x
    Replies: 1
    Last Post: 12-04-2005, 07:31 PM
  2. User upload image when adding link
    By brickholius in forum v3.2
    Replies: 10
    Last Post: 09-18-2005, 03:53 AM
  3. Upload image
    By binto in forum v5.x
    Replies: 10
    Last Post: 05-10-2002, 07:50 PM
  4. Image Upload?
    By Hart_House in forum v5.x
    Replies: 10
    Last Post: 02-20-2002, 07:04 AM
  5. Image upload
    By xxl in forum v5.x
    Replies: 0
    Last Post: 01-27-2002, 07:06 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
  •