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
3/28/2007 6:07 AM
 

How can I include the values from custom profile fields in the notification email for the newly registered user? This is as far as I got:

Date: [Date:Current]
First Name: [Profile:FirstName]
Last Name: [Profile:LastName]
Email: [Membership:Email]
Address: [Profile:Street]
City: [Profile:City]
State: [Profile:Region]
Zip: [Profile:PostalCode]
Country: [Profile:Country]
Telephone: [Profile:Telephone]
Fax: [Profile:Fax]
Cell: [Profile:Cell]
Website: [Profile:Website]

Everything else in format [Profile:VALUE] emails the exact same string [Profile:VALUE]. I looked at the DNN documentation, but everything is dated year 2005, and custom profile fields were introduced in v4.3, I believe.

Is there a way to access custom profile values from the \App_GlobalResources\GlobalResources.resx file to include them into the registration notification email, or I have to write something custom for that purpose?

Thank you,

Waldis

 
New Post
3/28/2007 10:13 PM
 

Is there no solution to this problem? Please, could someone who has any insight into this reply so I wouldn't have to wonder whether I should try to add some custom functions to the source of DNN or there is an easy way of achieving this requirement of mine.

Thanks,

Waldis

 
New Post
3/30/2007 7:39 PM
 

This is an easy fix.  Go to the the site, and login as the host.  From there, go to your language settings.  Then find your language editor.  On this page, find the box with EMAIL_USER_ADMINISTRATOR_BODY.Text.  This box allows you to custom edit how the email will read.  When finished, scroll to the bottom of the page and click update.  Also, don't forget to test by registering to ensure that the email reads the way you want it to.

 
New Post
3/31/2007 3:18 PM
 

In the first post I included what I put in the EMAIL_USER_ADMINISTRATOR_BODY.Text box, but my question is HOW do I access my custom profile values, e.g., Custom Value: [Profile:CustomValue] (if I write it this way, the email message contains exact string that I wrote, not the value containing in the CustomValue field)

Thanks,

Waldis

 
New Post
4/1/2007 1:41 AM
 

I have figured out the problem (half way) and here is the file and the code to modify, the only thing that's left is to figure out which .dll is the .vb file compiling into so I could upload the right one to the live site...

The file (in the source version) is DotNetNuke.Library/Components/Users/Profile/UserProfile.vb

The code to add for each new custom field (in this case it is CustomValue):

#Region "Private Constants"

        Private Const cCustomValue As String = "CustomValue" 'CustomValue is the name for the custom field
       
#End Region


#Region "Public Properties"

        ''' -----------------------------------------------------------------------------
        ''' <summary>
        ''' Gets and sets the CustomValue
        ''' </summary>
        ''' <history>
        '''     [waldis] 03/31/2007 Added
        ''' </history>
        ''' -----------------------------------------------------------------------------
        Public Property CustomValue() As String
            Get
                Return GetPropertyValue(cCustomValue)
            End Get
            Set(ByVal Value As String)
                SetProfileProperty(cCustomValue, Value)
                If Not ObjectHydrated Then
                    ObjectHydrated = True
                End If
            End Set
        End Property
       
#End Region

I hope someone would be able to give me a clue about dll...

Thanks,

Waldis

 
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