> Forums > Active Social > Community Support > Vanity Name in User Profile?
Last Post 12 Dec 2011 07:18 PM by Jeff Blanks. 8 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Patrick
Registered Users
Patrick
Post Count:87

--
09 Dec 2011 09:01 AM
    • Active Social Version: 2.0.0
    • DotNetNuke Version: 5.6.2
    I hate to ask a stupid question, but this was left blank in the user documentation.

    If a user asks me, "What is the vanity name in my profile settings and what should I put there?"

    What should I tell them?

    Thank you all!

    - Patrick
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    09 Dec 2011 09:07 AM
    The vanity name is only used if you have enabled vanity URLs. But in that case it is the word in the URL that links to the users profile. For example: http://fakedoman.com/users/Patrick/ where Patrick is your vanity name and that url goes directly to your profile page.
    Patrick
    Registered Users
    Patrick
    Post Count:87

    --
    09 Dec 2011 09:47 AM
    Thanks Ben.

    What happens when more than one person chooses the same Vanity Name? Does it flag them and say it's not available?

    Also, does this affect the tokens used for links within AS?

    IE: <!--a href="[AS:PROFILE:USERURL]" title="Hi, [DNN:PROFILE:FirstName]! Click here to view your profile."-->
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    09 Dec 2011 09:59 AM
    That is controlled by the settings in the control panel. Automatic & protected is the preferred setting because it makes sure that no duplicates can exist. Please see this post: http://www.activemodules.com/active...l-options/

    No, that token will always show FirstName.
    Patrick
    Registered Users
    Patrick
    Post Count:87

    --
    09 Dec 2011 10:17 AM
    Thanks Ben.

    I have it set to automatic and protected, but it still allows a user to type in a vanity name. Does it just not apply?


    Thanks again.

    - Patrick
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:387

    --
    09 Dec 2011 07:39 PM

    What happens when more than one person chooses the same Vanity Name? Does it flag them and say it's not available?

    Out of experience, when using"Automatic and Open" if the same vanity name is used it will increment, Ex:

    user
    user2

    But I think usernames will only increment one time in previous testing.

    This was an issue I brought up in the past.
    http://www.activemodules.com/active...real-name/
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:387

    --
    09 Dec 2011 07:53 PM
    I have it set to automatic and protected, but it still allows a user to type in a vanity name. Does it just not apply?


    So long as you have a custom theme made, copy "MySettings.ascx" to your theme directory > templates > profile

    Locate: Add: Enabled="false"
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Patrick
    Registered Users
    Patrick
    Post Count:87

    --
    12 Dec 2011 03:34 PM
    Thank you for your fast reply Jeff.

    I have a custom theme for profile, and I've added "MySettings.ascx" to my profile templates. 
    I cannot find the "Add: Enabled" that you mentioned. 

    If vanity URL's is enabled and set to automatic, can I just comment this code out.. the entire text box on the MySettings template?

    I guess I haven't grasped the vanity name for profiles and how it works.

    Thank you again.

    - Patrick
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:387

    --
    12 Dec 2011 07:18 PM
    The forums ate my code and because the is the community support forum, all posts are moderated, so I didn't get a change to see what I posted.

    Locate (additional spaces added so it will post):

    asp: TextBox ID = "txtVanityName" and add in the value Enabled="false"

    The control will still show up in the template but will display a red cross image when hovered over.

    If you would rather not show the field at all, add in to the < td > class="Hidden" this will completely hide the field by using the .Hidden class found in the .default.css file provided by DNN.

    If you comment out, the page will error on updates. Needs to be done with either of the two examples I provided above.

    What about Vanity Names that you haven't grasped?

    It's really up to how you want your community set up...........
    - Real Names
    - Displaynames

    Feel free to shoot me a pm if needed. Be glad to help. email icon under my profile pic.
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    You are not authorized to post a reply.
    > Forums > Active Social > Community Support > Vanity Name in User Profile?
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy