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 ForumsGalleryGalleryBugs reportBugs report
Previous
 
Next
New Post
12/22/2005 8:30 AM
 

Hi to all.
I would only report two small bug in 3.0.11 , don't know if alredy revised.

1) in GalleryPreConfig.vb  - Line 51 :

ctlModule.UpdateModuleSetting(ModuleId, "Skin", "DotNetNuke")

instead of

ctlModule.UpdateModuleSetting(ModuleId, "Theme", "DotNetNuke")

in Components/Configuration/Config.vb - Line 897 - :

mTheme = GetValue(settings("Skin"), mTheme)

istead of

mTheme = GetValue(settings("Theme"), mTheme).

2) In controls/ControlUpload.ascx  at EOF

double needless TBODY / TABLE tags closure

I hope this will be helpfull.

Great Work !

Another one...

In Components/Utilities/XML.vb  - line 272 and  296

Return CDate(iterator.Current.Value())

Problem with date cast / globalization cultrue

i have found this code for fix problem but i don't know if it is the best...

Imports System.Globalization

Return DateTime.ParseExact(iterator.Current.Value(), "dd/MM/yyyy", System.Globalization.CultureInfo.CurrentCulture)

Sorry for my poor english.


 
New Post
12/22/2005 12:01 PM
 

Thanks, I will take a look into all of these soon.

Really, I appreciate this instead of the normal way bugs are identified to me with this module.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
12/22/2005 2:02 PM
 

Tanks for appreciation

In regard to the last reported bug , i think it's a problem of cultureinfo setting, while the application read and write
_metadata.resources file.

I have included the following lines in : Sub SaveMetaData, Function ApprovedDate and Function CreatedDate and  all seems work well.

Dim _portalSettings As PortalSettings = PortalController.GetCurrentPortalSettings

Dim ci As CultureInfo

If _portalSettings.DefaultLanguage = "" Then

ci = New CultureInfo(Convert.ToString(Services.Localization.Localization.SystemLocale))

Else

ci = New CultureInfo(_portalSettings.DefaultLanguage)

End If

Thread.CurrentThread.CurrentCulture = ci

at the begin of sub SaveMetaData and before the following modified line in Function ApprovedDate and Function CreatedDate .

Return DateTime.ParseExact(iterator.Current.Value(), "dd/MM/yyyy", ci.CurrentCulture)

Make me know ur solution if u want.. I'm just curious

 
New Post
12/22/2005 4:24 PM
 

I think you may have a problem with your solution. If the system locale in Services.Localization.Localization.SystemLocale is en-US and therefore the date is saved as MM/dd/yyyy, then when you do the ParseExact it will fail since any date such as 12/25/2005 will not match the format string dd/MM/yyyy.

You may want to look at this thread -http://www.dotnetnuke.com/Community/ForumsProjects/tabid/795/forumid/9/threadid/10740/scope/posts/Default.aspx - where I have suggested saving to a Locale independant format yyyy-MM-yyThh:mm:ss.

Thoughts.....?


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
12/22/2005 5:28 PM
 

You are right, perhaps, in this case, once I have set

Thread.CurrentThread.CurrentCulture  = New CultureInfo(_portalSettings.DefaultLanguage)

 

this should work correctly

Return CDate(iterator.Current.Value())

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryBugs reportBugs report


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