Jump to content

Recommended Posts

I am trying to link to a "No Photo Available" image if no file is uploaded ( rather than having a blank space ). I just can't seem to get it to work.

The code is

[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]} else {
$profile[$key]["image"] = "";
}[!--colorc--][/span][!--/colorc--]

Right now this just shows a blank area with no borders and I would like to link to an image file which I have made.

Thanks in Advance
Link to comment
https://forums.phpfreaks.com/topic/8114-link-to-blank-image/
Share on other sites

[!--quoteo(post=367449:date=Apr 22 2006, 09:18 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 22 2006, 09:18 AM) [snapback]367449[/snapback][/div][div class=\'quotemain\'][!--quotec--]
If you want an image to display tnen placed the path of the image in side the " marks like so:

[code]$profile[$key]["image"] = "path/to/image/here.gif";[/code]
[/quote]


Thanks, I did do that originally, thats why I thought something I was missing. All I get is the path text displaying in the area now.

[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--] /profile/uploads/nophoto.jpg [!--colorc--][/span][!--/colorc--]
Link to comment
https://forums.phpfreaks.com/topic/8114-link-to-blank-image/#findComment-29588
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.