Results 1 to 5 of 5

Thread: Don't Show blank image box

  1. #1
    Join Date
    Jun 2008
    Posts
    65

    Default Don't Show blank image box

    Is there a way to not display a blank image holder box [x] if no image is uploaded?

    Also is there a way to not show the http:// until a web site is added?

    thanks!

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

    Default

    <%if $image|file_exists%><img src="<%$image%>" /><%/if%> solves your first question.

    The second question I don't understand. Where is the http:// showing that you want to remove?

  3. #3
    Join Date
    Jun 2008
    Posts
    65

    Default

    Hi Bruce, thanks for the quick reply.

    we are adding a lot of listings to our directory, we are adding businesses manually. the idea is that when they see their listings, they will want to upgrade to add their web address (URL).

    So when there is no URL for the listing, or the company doesn't have a web site, it displays a hyperlink: http:// (that goes nowhere)

    thanks again,
    B

  4. #4
    Join Date
    Jun 2008
    Posts
    65

    Default

    That is, it displays it in their listing's detail section....

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

    Default

    I gotcha, Deluxe can do this on it's own, but 5.x cannot. You will need to edit link.class.php and remove the http://

Similar Threads

  1. Replies: 1
    Last Post: 01-22-2007, 08:18 PM
  2. Blank Pages?
    By berto in forum v5.x
    Replies: 2
    Last Post: 10-01-2006, 04:16 PM
  3. str_replace to show image help
    By persut in forum v5.x
    Replies: 2
    Last Post: 01-14-2006, 07:10 PM
  4. Replies: 10
    Last Post: 12-17-2005, 10:47 AM
  5. Getting uploaded image to show
    By DTX in forum Tutorials, Hints & Tips
    Replies: 2
    Last Post: 05-28-2003, 07:19 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
  •