Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Schmidt 76 posts 207 karma points
    Oct 24, 2013 @ 12:15
    Anders Schmidt
    0

    comment with members info

    I am working with the 4.11.x with uBlogsy 2.1.1.2 and would like to auto fill the txtName and txtEmail with member info. 

    Is there a setting for it?

    I am using the asp.net controls.

    THANKS

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Oct 24, 2013 @ 12:36
    Anthony Dang
    100

    There's no setting for that.

    What you could do is write that data to hidden fields in the page using your own code... then use jquery to auto-fill the form fields from your hidden fields.

     

  • Anders Schmidt 76 posts 207 karma points
    Oct 24, 2013 @ 13:12
    Anders Schmidt
    1

    Thanks for quick anwser. I have made a clumsy ninja trick:

     <script>
        <%@ Import Namespace="System.Web.Security"  %>
        <% MembershipUser user = Membership.GetUser(HttpContext.Current.User.Identity.Name);%>
        <% if (user != null){string _emailAddress = user.Email; string currentUsername = "test"; txtName.Text = user.UserName; txtEmail.Text = _emailAddress;} %>
     </script>
  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Oct 24, 2013 @ 13:18
    Anthony Dang
    0

    Nice!

     

Please Sign in or register to post replies

Write your reply to:

Draft