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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...EMAIL_USER_REGISTRATION_ADMINISTRATOR_BODY.TextEMAIL_USER_REGISTRATION_ADMINISTRATOR_BODY.Text
Previous
 
Next
New Post
4/1/2007 8:53 AM
 

That would be enough if you stay with DNN 4.4.0, because it works fine.

Now in DNN 4.4.1 it's not working anymore, because there is a TokenReplace.vb file introduced under DotNetNuke.Library/Components/Localization/

We need to find Private Shared Function GetProperty(ByVal objProfile As UserProfile, ByVal strPropertyName As String, ByVal strFormat As String, ByVal formatProvider As IFormatProvider) As String

and add some cases like this:

                    Case "CustomValue"
                        Return (objProfile.CustomValue)


Took me all night long trying to figure out why in the world it is returning the values in DNN 4.4.0 and NOT returning in DNN 4.4.1, and after stumbling upon this file my question is "how many files are still ahead that I have to find, so this thing would work?"

It would be nice to have some kind of documentation to reference any additions/changes to the source, otherwise it's like going through the woods in dark to find something that you don't know is there...

So what else am I supposed to find in order to get it working?!?

Waldis

 
New Post
4/1/2007 9:27 AM
 

Now I don't even think this file has anything to do with retrieving those values... And it's still not returning them...

 
New Post
4/2/2007 2:20 AM
 

After some hours of sleep I saw it clear: it has ToLower() and that was what I missed. so the code should be:

Select Case strPropertyName.ToLower()
                    Case "customvalue"   'it has to be in lower case letters
                        Return (objProfile.AgencyName)   'this was declared in UserProfile.vb

.....

And that worked like a charm.

I hope my painful expirience will help out someone.

Please, let me know if it did, that always serves as incouragement to pursue even more... :)

Waldis

P.S. After compiling the source all you need to replace is DotNetNuke.dll file and you are good to go (when updating, make sure your DNN versions match, otherwise who knows what's gonna happen...)

 
New Post
4/20/2007 8:17 AM
 

Waldis, thanks a lot for your investigation!!!

I've just applied your solution and that fit pretty well!

THANK YOU!

 
New Post
4/27/2007 4:31 PM
 

I have also been puzzled by this!  I've looked just about everywhere and then I found your post!  Thank you so much for your persistance!!  IT WORKED!!!

Robby

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...EMAIL_USER_REGISTRATION_ADMINISTRATOR_BODY.TextEMAIL_USER_REGISTRATION_ADMINISTRATOR_BODY.Text


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