Copied to clipboard

Flag this post as spam?

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


  • Andrew 142 posts 98 karma points
    Apr 06, 2009 @ 12:48
    Andrew
    0

    Get Member Name

    Hi all

    Quick question - returns the login name. How do I return the "Name" of a member - i.e the text that is displayed in the member listing under a, b, c,d etc.

    In most cases loginName would work, except my loginName is a collection of numbers, and returning this makes my users sound like prisoners...Dear 56465654!!

    i have searched but cannot seem to find it!
    Thanks in advance
    Andrew

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Apr 06, 2009 @ 12:58
    Dirk De Grave
    0

    Hi,

    Have you tried @nodeName yet?

    Regards,
    /Dirk

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Apr 06, 2009 @ 13:18
    Douglas Robar
    0

    You can see all the values that are returned by the GetCurrentMember() function by using the following:

    [code][/code]

    You'll need to view the html source from the browser since it won't know how to render the xml returned. But you'll see all the available output you have to choose from in your xpath to get the text you're looking for.

    The 'copy-of' is a GREAT help when you're not sure what your options are.

    cheers,
    doug.

  • Andrew 142 posts 98 karma points
    Apr 06, 2009 @ 13:50
    Andrew
    0

    Thank you both: nodeName was what I was after. I had read about copy-of and tried it, but did not know you had to view source to see it. Anyway, got what I wanted, and now my users can stop feeling like prisoners - thanks to doug and dirk!

Please Sign in or register to post replies

Write your reply to:

Draft