Images not showing

rated by 0 users
This post has 4 Replies | 3 Followers

Top 500 Contributor
Posts 48
Points 760
Megan Littke-Smith 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.

Top 10 Contributor
Posts 3,559
Points 53,735
TelligentSupportTeam

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?

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 0
Not Ranked
Posts 1
Points 20
hapgoo replied on Thu, Jun 26 2008 12:10 AM

Its a big problem

  • | Post Points: 20
Top 500 Contributor
Posts 48
Points 760

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>

  • | Post Points: 20
Top 10 Contributor
Posts 3,559
Points 53,735
TelligentSupportTeam

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

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | 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