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 ...Profile Properties to Email TokensProfile Properties to Email Tokens
Previous
 
Next
New Post
2/7/2007 12:33 PM
 
Alright, I'm scratching my head over this one:

I've created a new Profile Property (text) called "Company", to get the Company Name of registering users (required to register).  I require a profile be completed before registration can be completed.

Now when an email is generated (to the Admin, or User, or whoever), I want to display that company name.  Here is my text in the Language Editor:

Thanks for registering [User:FullName]!  We welcome [Profile:Company] aboard!

When the email arrives, the Company token is blank, so it reads "We welcome aboard!".  I would have assumed the token would work pretty easily, but obviously not.  Other "default" profile properties (such as Street, Unit, PostalCode, etc..) work fine - just not my custom properties.

Do I need to define the token somewhere before it is available for use?  Is this even possible?  Thanks
 
New Post
2/7/2007 1:02 PM
 
User Attributes supports custom properties in addition to the default ones. You can use token-based or xml/xsl based email templates. www.ucanuse.com

Qualtiy DotNetNuke modules and custom development; we've been serving the DNN community for over 2 years and have hundreds of satisfied customers. Let us serve you today.
 
New Post
2/7/2007 2:21 PM
 
So there's no way to get this functionality without purchasing another module?
 
New Post
2/7/2007 10:18 PM
 

Although Localization.GetSystemMessage was rewritten recently (version 4.4.0 probably) to use the new Localization.TokenReplace class, it appears that token replacement for custom profile properties is still not properly handled as these are not exposed through public properties of the UserProfile class but rather through the Profile.ProfileProperties collection. I recently had to write my own e-mail token replacement routines so could advise how these can be accessed if you were developing your own module. I also remember reading a DNN blog or forum post within the last couple of months that mentioned that a new e-mail token replacement method would be coming soon - can't find it now and not sure if this was referring to the new TokenReplace class or a feature of an upcoming version.

If you are not writing your own module code, a third party module such as that from UCanUse's User Attributes may be the best/only way to go for now.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/2/2007 2:40 AM
 

dnntrial wrote
So there's no way to get this functionality without purchasing another module?

Take a look at http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/108/threadid/119242/scope/posts/Default.aspx

Waldis

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Profile Properties to Email TokensProfile Properties to Email Tokens


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