Products

Solutions

Resources

Partners

Community

About

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 ForumsStoreStoreThumbnail issuesThumbnail issues
Previous
 
Next
New Post
2/1/2006 5:32 PM
 

I was able to correct the problem. I'm not sure if this is the best way of building the string but here is what worked for me.  It seems like this string after its built is stored in a database.  So this fix will not fix existing items you have listed.  It will only affect new listings.

In the ProductEdit.ascx.cs at Line 255 change:
   imagePath = (string)PortalSettings.HostSettings["HostURL"] + PortalSettings.HomeDirectory;
      to
   imagePath = "http://" + (string)PortalSettings.PortalAlias.HTTPAlias + PortalSettings.HomeDirectory;


So the Completed Function should look like:

private string GetImageUrl()
{
string imagePath = image1.Url;

// Is this an internal image?
if (image1.UrlType == "F")
{
DropDownList cboFolders = (DropDownList)image1.FindControl("cboFolders");
DropDownList cboFiles = (DropDownList)image1.FindControl("cboFiles");

imagePath = "http://" + (string)PortalSettings.PortalAlias.HTTPAlias + PortalSettings.HomeDirectory;
imagePath += cboFolders.SelectedValue + cboFiles.SelectedItem.Text;
}

return imagePath;
}

 
New Post
2/2/2006 3:40 AM
 

For data portability you should always use relative paths ( so no domain name in the URL created ). However there is a complication with relative paths which comes up at run-time depending on whether you are running as a Site or a Virtual Directory. To deal with this, we have a Core framework feature which developers can rely on:

Common.Globals.ApplicationPath + "/" + cboFolders.SelectedValue + cboFiles.SelectedItem.Text;

 


My comments are my own and are offered WITHOUT PREJUDICE

Shaun Walker
http://www.siliqon.com
 
New Post
2/2/2006 9:29 AM
 
Sweet. Thanks, guys.
 
New Post
2/2/2006 4:37 PM
 

I'm curious what the recommended fix for this is?  I am starting to experiment with this module (as a dotNetNuke newbie) and none of the thumbnails are working ... not sure why.

Is there a "fix"?

 

 
New Post
2/2/2006 4:49 PM
 

Sorry ... I figured it out, and found another issue.

I found that after referencing the image file on my own domain, and hand editing the URL to fix the domain name, it still didn't work.  For some reason it didn't seem to like the fact that I was using a .PNG file.  I uploaded a .GIF version of the image, and now it's working.

Thanks for the great work ... this looks like a great start!

P.S. One last request for images ... it would be nice to be able to lauch a pop-up of the full-size image, or have the option to do so.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreThumbnail issuesThumbnail issues


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