Last post Apr 08, 2005 03:07 PM by Nocturnal
Apr 08, 2005 09:12 AM|toddhd|LINK
I'm just starting to setup my new website,
http://www.SeaburyDesign.com, and I needed a way to allow users to download files, and to provide some rudimentary tracking of those downloads. I hadn't really seen any download modules yet, and there was some argument over the conversion of the classic
"Good Dogs" module, so I just opened up VS.NET and "rolled my own". This is the result of my first attempt.
Here are the features of the "Downloads" module:
I will be providing the source code for this module very soon. I just want to "clean it up a bit" before zipping and posting it. Should be up in a few days at most.
Anyway, just go to http://www.SeaburyDesign.com and click on the 'Downloads' page after registering. While you are there, check out the FotoVisionDNN *Rought Draft* module as well, which I will announce in a seperate
Apr 08, 2005 10:15 AM|DougV|LINK
Apr 08, 2005 10:27 AM|legends92|LINK
I'm running DNN 3.0.13 and I'm receiving an error when I try to download a *.htm file. The error reads:
An error has occurred.
Error: Downloads is currently unavailable.
Also the image right above the word "Filename" is blank. When I click on the properties of the image, it points to
http://localhost/PortalNameimages/spacer.gif. There is no "/" between PortalName and images
Apr 08, 2005 10:59 AM|toddhd|LINK
Thanks for letting me know about the problems. I'm not sure yet what is causing the problem with the images/spacer.gif. I was having some weird problems with the return value of Request.ApplicationPath - on my local box, it did not return a trailing slash,
while on my SeaburyDesign.com site, it does return a trailing slash. So, the path to the images is returned via this function.
Public Function GetURL(ByVal value As String) As String Dim AppPath As String = Request.ApplicationPath If Not AppPath.EndsWith("/") Then AppPath &= "/" If value = "" Then Return AppPath & "images/spacer.gif" Return AppPath & "Portals/0/" & valueEnd Function
As you can see, it *should* be adding a trailing slash if one doesn't exist. Maybe I need to add a Trim() to that as well? I'll release the source code very soon, so we can all poke around with this and modify it.
Apr 08, 2005 11:40 AM|toddhd|LINK
Apr 08, 2005 02:05 PM|Nocturnal|LINK
Apr 08, 2005 02:54 PM|toddhd|LINK
You are welcome for the modules- but the site skin I can't take credit for at all. It was the winning skin in the skinning competition that was held on the DNN site. The skin was originally meant for DNN 2.x, I just tweaked it slightly for DNN3.
I loved it too [:)] I guess if the original author gives me permission, I could release it...
Apr 08, 2005 02:56 PM|toddhd|LINK
To all: Please be aware that the original download module released this morning was missing the code to log the downloads. This was an inadvertent mistake on my part. The Downloads module, and the source code, have been fixed and reuploaded. You may wish
to redownload the module if you grabbed it this morning.
The download count only shows up when you log in as an admin, or have editor status on the module.
Apr 08, 2005 03:07 PM|Nocturnal|LINK