Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryImages disappear when User is not a registered user.Images disappear when User is not a registered user.
Previous
 
Next
New Post
1/19/2010 5:33 PM
 

The images in the repository simply show a partial path (no image) when there is no user logged in.

This is what the user sees when where an image was before when he logs off:

 /DesktopModules/Repository/MakeThumbnail.aspx?tabid=142&id=9

 
New Post
1/20/2010 12:44 PM
 

Actually this is happening to anyone that is not a host. The images just don't appear. Really strange....

 
New Post
1/21/2010 3:26 PM
 

Steve,

First off, I want to thank you and the team of people who worked on the Repository Module. This module is really a pretty amazing module.

As for the picture issue:

In the Repository.ascx code behind file (Repository.ascx.vb)

If you have the image set up as a clickable link to down load the file and you are seeing an image while logged in as administrator or host and the image disappears when you logout. It's because you have the the settings for "DOWNLOAD ROLES" for the module are set up incorrectly. Make sure you select the roles of individuals that are able to download. If you select All Users, the image will appear properly.

There's a boolean variable b_CanDownload that was causing it to run down another part of the if loop.

 

 
New Post
1/21/2010 5:13 PM
 

(bangs head on desk) .... THANK YOU!  I will fix that and release an updated development build shortly

 
New Post
1/22/2010 12:36 PM
 

Steve,

 

Digging a little deeper, I believe there may be an issue with the way the code is handling the [IMAGE] tag, and why I’ve been confused.

 

I believe the original code was designed to return the PATH of the image. In lstObjects.ItemDatabound event handler shows that a LiteralControl is being added to the Controls Array

                                                                objPlaceHolder.Controls.Add(New LiteralControl(oRepositoryBusinessController.FormatImageURL(objRepository.ItemId)))

 

It can be confirmed by looking at one of the template.html files.

 

            <a href="[IMAGE]" target="_blank">

                        img src="[THUMBNAIL]" border="0" alt="Thumbnail" />

            </a>

 

However, since I want the image to be an image button that when clicked starts a download, I see in the lstObjects.ItemDatabound event handler that an ImageButton control is being added to the Controls Array

 

Dim ibtn As New ImageButton

objPlaceHolder.Controls.Add(ibtn)

 

In which case for my template.html file I simply want to place an

[IMAGE] tag for where I want the image to be located.

 

            <span>[IMAGE] </span>

 

Thus, if the user is not in the Download group, all that was injected with the LiteralControl, and the reason why I was only seeing the “path” to the image and not the image itself.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryImages disappear when User is not a registered user.Images disappear when User is not a registered user.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out