Hello,
I'm trying to use a token replacement for some profile properties and am having trouble with a privacy issue. Everything works fine when the users have their privacy set to "Public", but, if its anything else, the token replacement doesn't put in the value.
That made sense at first, but, I tried specifying the accessing user as the current user and that's still not working - even for profile fields that are marked as "Members/Registered users only" - which should work...
Does anybody know what's going on here - am I missing something? Here's the code:
Dim
tr
As
New
DotNetNuke.Services.Tokens.TokenReplace(DotNetNuke.Services.Tokens.Scope.DefaultSettings)
tr.User = displayUser
tr.AccessingUser = accessingUser
Return
tr.ReplaceEnvironmentTokens(EntryFormat)