Images not showing

rated by 0 users
Answered (Verified) This post has 1 verified answer | 4 Replies | 3 Followers

TechLINKS
Top 500 Contributor
46 Posts
Points 720
By: TechLINKS
Posted: Wed, Jun 25 2008 5:24 PM

I have added a background image on one of my pages, which displays fine when I am within the server environment. Externally, the image does not show. I've tried adding all sorts of permissions to the virtual directory and to the web folder; and to folder holding the media to be displayed. I'm not sure what else I can do.

 

 

Answered (Verified) Verified Answers

TechLINKS
Top 500 Contributor
46 Posts
Points 720
Answered (Verified) By: TechLINKS
Posted: Thu, Jun 26 2008 1:16 PM In reply to

I have figured it out --- instead of using css / html to get an image to display (background-image:url(http://localhost/filestorage/searchback.gif);) --- upload the image through the media gallery. Notice the URL of the image: LOCALHOST --- that is why it is not viewable for external users.

To get an image to display using the MediaGallery use:

<CSControl:PlaceHolder>
                                        <CSMedia:MediaGalleryPostList ID="MediaGalleryPostList1" runat="server">
                                        <QueryOverrides ID="QueryOverrides1" runat="server" PostID="46" />
                                            <ItemTemplate>
                                             <CSMedia:MediaGalleryPostViewer ID="MediaGalleryPostViewer1" runat="server" ViewType="Preview" Width="220" Height="175" /><br />
                                            </ItemTemplate>
                                        </CSMedia:MediaGalleryPostList>

 

 
Answered (Verified)
  • Post Points: 20 |

All Replies

afscrome
Top 10 Contributor
2,726 Posts
Points 40,125
TelligentSupportTeam
By: afscrome
Posted: Wed, Jun 25 2008 6:33 PM In reply to

Firstly, how have you uploaded the image to your server - is it stored the CS Filestore or is it a normal file in your webspace.  Secondly, if you browse directly to the picture, does the picture itself show?

 
  • Post Points: 0 |
hapgoo
Not Ranked
1 Posts
Points 20
By: hapgoo
Posted: Thu, Jun 26 2008 12:10 AM In reply to

Its a big problem

 
  • Post Points: 20 |
TechLINKS
Top 500 Contributor
46 Posts
Points 720
Answered (Verified) By: TechLINKS
Posted: Thu, Jun 26 2008 1:16 PM In reply to

I have figured it out --- instead of using css / html to get an image to display (background-image:url(http://localhost/filestorage/searchback.gif);) --- upload the image through the media gallery. Notice the URL of the image: LOCALHOST --- that is why it is not viewable for external users.

To get an image to display using the MediaGallery use:

<CSControl:PlaceHolder>
                                        <CSMedia:MediaGalleryPostList ID="MediaGalleryPostList1" runat="server">
                                        <QueryOverrides ID="QueryOverrides1" runat="server" PostID="46" />
                                            <ItemTemplate>
                                             <CSMedia:MediaGalleryPostViewer ID="MediaGalleryPostViewer1" runat="server" ViewType="Preview" Width="220" Height="175" /><br />
                                            </ItemTemplate>
                                        </CSMedia:MediaGalleryPostList>

 

 
Answered (Verified)
  • Post Points: 20 |
afscrome
Top 10 Contributor
2,726 Posts
Points 40,125
TelligentSupportTeam
By: afscrome
Posted: Thu, Jun 26 2008 4:32 PM In reply to

CSS wise, you could always use

background-image:url(/filestorage/searchback.gif)

The browser will intepret the first slash to be the root of your website - e.g. localhost, www.mydomain.com

 
  • Post Points: 5 |
Page 1 of 1 (5 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com