Editing Join Widget to save Email Notification Settings

Editing Join Widget to save Email Notification Settings

This question is not answered

Hi,

I am trying to set user's email notifications settings in the Join page. I have added a field for DisplayName and captured this on Joining however I am trying to set EnableCommentNotifications to false. I have done this explicitly in the Widget code, however I have found that after saving the new user the value is still set to true.

Do I need to add a Dynamic configuration XML property to expose these settings options to the widget such as the UserProfileSettings?

Thanks

All Replies
  • Here is the sys error when I try to set it explicitly to false

    User Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.

    Server: VT-D676928

    Path: /themes/generic/user/createuser.aspx?ReturnUrl=%2Fsample_group%2Fdefault.aspx as HTTP POST

    Referrer: http://localhost/user/createuser.aspx?ReturnUrl=/sample_group/default.aspx

    Message: An error occurred while rendering the scripted widget 'User - Login And Create - Telstra' (e3535ab3b47f4ba4995172416ce07009).

    System.ArgumentException: Could not convert dictionary value for entry EnableCommentNotifications with value false to Int32. If the value is supposed to be a string, it must be enclosed with '' (single quotes)

    at NVelocity.Runtime.Parser.Node.ASTStringLiteral.ProcessDictEntry(HybridDictionary map, StringBuilder keyBuilder, StringBuilder value, Boolean isTextContent, IInternalContextAdapter context)

    at NVelocity.Runtime.Parser.Node.ASTStringLiteral.RecursiveBuildDictionary(Char[] contents, Int32 fromIndex, IInternalContextAdapter context, Int32& lastIndex)

    at NVelocity.Runtime.Parser.Node.ASTStringLiteral.Value(IInternalContextAdapter context)

    at NVelocity.Runtime.Parser.Node.ASTSetDirective.Render(IInternalContextAdapter context, TextWriter writer)

    at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer)

    at NVelocity.Runtime.Parser.Node.ASTElseIfStatement.Render(IInternalContextAdapter context, TextWriter writer)

    at NVelocity.Runtime.Parser.Node.ASTIfStatement.Render(IInternalContextAdapter context, TextWriter writer)

    at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer)

    at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)

    at NVelocity.Runtime.Parser.Node.ASTIfStatement.Render(IInternalContextAdapter context, TextWriter writer)

    at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)

    at NVelocity.Template.Merge(IContext context, TextWriter writer)

    at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService...‡”()

  • Hi Gerard,

    I took a peek at your issue and I'm trying to come up with something you can use.  I will report back when I have something for you.

    Thanks!

  • Hi Gerard,

    I answered a similar question of yours here : telligent.com/.../1072170.aspx

    Does that answer this question, too?

    Thanks!