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 ForumsGalleryGalleryUnofficial Update to Gallery ModuleUnofficial Update to Gallery Module
Previous
 
Next
New Post
10/24/2006 3:28 PM
 

For those interested in a stable(ler?) version of the gallery module now and can't wait for the next release, I have taken the published Gallery module 3.0.12 converted it to .NET 2.0 and fixed a number of the outstanding issues.  Since it has been converted to .NET 2.0, it will ONLY run on DNN 4.x. (I used the latest version, currently 4.3.5)

If you are interested you can download it from my website at
 
 www.Jegers.com     under Projects/DotNetNuke

I have also included a readme file that lists the issues that have been fixed.  If anyone else has patches and would like included, please email me and I will apply.

James6@Jegers.com

 
New Post
10/25/2006 11:16 PM
 

James,

Thanks.  Your patch works great.    Keep up the Good Work!!!

 
New Post
11/2/2006 7:29 PM
 
Thank you so much James!

I'm having 1 minor issue using your fixes.  When I goto the main Gallery page, I get a script error.  Everything seems to load ok and work ok, but I wonder what is causing the error.  This is IE6, Firefox works fine.

You can see it here: http://www.twinlesstwins.org/dnn/PhotoGallery/tabid/55/Default.aspx


 
New Post
11/2/2006 7:59 PM
 
Well seems to be one of the galleries is messed up... I'm trying to figure out how to delete it.  Hehe.

I'm getting a crapload of "Object reference not found errors" which is nothing new :(
 
New Post
11/3/2006 12:41 AM
 

I used to get script errors, but whenever I went to debug them the problem seemed to disappear (isn't that how it always is).   But, since your site still had the problem, I was able to track it down.  After a long hunt, the problem is that your machine is to fast :-)  heh.

I'm guessing that you created the directories for your gallery by hand (not by using the add album option in the gallery), and then went to the gallery module and had it resync or look for those folders.   The code looks for all of the new directories that have been created and assigns an "ID" to each of them stored in its configuration file (_metadata.resources).  The problem is that this ID is created by creating a random number, with the random number seeded off the systems current time--for every request.  And when you ask for a random number seeded by a clock that only changes every 1ms?? you can get the same value more than once.  

Short Term Fix #1:    Remove the images/folders from your gallery (might have to do by hand).  Then recreate the albums one at a time either with the menu option or by creating one directory at a time and then resyncing the gallery.

Short Term Fix #2:  Go into the configuration file (_metadata.resources) and change the folders/directories that have duplicate ID's.  Doesn't matter what you change it to as long as it is unique (just change 1 or 2 digits)

   <?xml version="1.0"?>
   <files>
     <file name="2006.03.19">
       <id>1039157190</id>         <-- This id

Medium Term Fix:  I changed the code to only seed the random number generator once, and then keep asking it for random numbers--which should then be random.  It will be in my next patch release.  Probably within a week or so.

Long Term Fix:  The gallery team is moving all of this info into the database, so in the future it will be the databases job to create a random number. 

As always..  you can get it here:  www.Jegers.com

For those interested... try running the below code.. you will get the same number for most.

for i as integer = 1 to 10
   dim R as new random      <-  By default this seeds with a clock value
   debug.writeline(r.next)
next

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryUnofficial Update to Gallery ModuleUnofficial Update to Gallery Module


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