Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

I'm asking the eminent Ning/JavaScript experts around here: 

I need my script to set a variable to the member's name, as it appears in the header of .xg_user_info.

I think I have reached the limits of my trial-and-error method =/
Does anyone know the correct formulation?

THNX.

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Email me when people reply –

Replies

  • Hello!

    If a member is signed in to a network, their name appears in a javascript variable that Ning sets up for us:

    ning.CurrentProfile.fullName

    I don't know if that answers your question but I hope it helps!  If not, describe further what you are hoping to do and I'll see if I can be more helpful.

    Best wishes!

    "TJ"

    • It totally does!
      That's what I was looking for, thank you sir.

      Any other account properties associated with ning.CurrentProfile?

      • Glad I was able to help!

        Yeah there's some good info on the member who is viewing the site.  Just "View Source" and you'll see the ning variable near the very top of the page.

        For example, for me:

        "CurrentProfile":
        {"id":"1wtvjg4o8ruf3",
        "profileUrl":"http:\/\/creators.ning.com\/profile\/TJJames",
        "location":"NC, USA",
        "age":xx,
        "gender":null,
        "fullName":"TJ @ jQueryHelp",
        "photoUrl":"http:\/\/api.ning.com\/files\/A4BjGhjgxv3XVEE4mH-d0URMtYjwvWjUoobeXBsYAagWwqD13A5Vonhq0*EGiyqQL3lSpSK5sQZvXM0A37J-hLFz5vPP-dt7\/tigerregal_1024x768.jpg?crop=1%3A1",
        "country":"US"}


        I x'ed out my age :-)
        Most of that is self explanatory, photoUrl is your profile pic.

        Have a great day!
        "TJ"

        • this could be solution to editing a single Members page having trouble with can this be done w/CSS also... have no clue how to write Java !

  • You can see the real name of a member when you are over his link with your pointer, it appears in the preview bar of your browser (in my case firefox) and it remains the same even if the member change his name

    • yes but .xg_widget_profiles_profile_Woody13 does nothing there is an id # in the script how to write it i would like to know...

    • Yes, but I wanted to set a variable in a script with that info and I just didn't know the correct Ning name: ning.CurrentProfile.fullName

      • ok i understand that is Java but how would i write a code to modify a Members page that is not responding to CSS or how would i write it in CSS ? dont know anything about Java, please.

        • I'm not sure I understand what you want to do but some things can be done with CSS only, while others absolutely require javaScript (or jQuery) in concert with the CSS.

          • i need to control one of my Members' page for example .xg_widget_profile_JohnDoe  #xn_bar{ z-index: 999; }

            if i can find his Ning code name it has to be in Java right ? There is no CSS for this ?

This reply was deleted.

Search the Creators Network

Latest Activity

Fire-Tech replied to Mateo O'Reilly's discussion Resizing profile picture.
"Works great guys. Well worth the $"
3 hours ago
John Bizley replied to John Bizley's discussion How to get your Network Logo AND Your Network Name Both Showing Up ( Updated )
"Anam the logo size for the one next to the network name is controlled by the slider next to it in…"
7 hours ago
Profile IconRobin K Mullins, Thomas Peet, Katrina Kibben and 7 more joined Ning Creators Network
7 hours ago
Matt replied to Tim's discussion Paid Groups Not Updating
"Looks like I've found a solution, simply revalidate your paypal email…"
7 hours ago
John Bizley replied to Yolanda van Heese's discussion Capitals in headers of content items
"You can alter a lot of the text options within your Design Studio, it's worth exploring these…"
11 hours ago
Simon Farnworth replied to Kos's discussion Forum tabs have DISAPPEARED!
"Yikes! Doesn't sound ideal at all. However I'm sure they will sort out for you, as I say…"
12 hours ago
Kos replied to Kos's discussion Forum tabs have DISAPPEARED!
"Simon thank you for thinking of me.  Well, it's been handed off to an Engineer now (day…"
12 hours ago
Simon Farnworth replied to Kos's discussion Forum tabs have DISAPPEARED!
"Kos, I should have asked yesterday - how goes it with your forum issue?"
13 hours ago
Kos replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"Never fear, Mode may just do it for you at some point. *LOL*  (juuust kidding folks)"
14 hours ago
Jords replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"Yes! My third party commenting options are getting side-stepped in 3.0 feed, not-cool! Hopefully…"
14 hours ago
Jords replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"Option for NCs to ad arbitrary HTML every xxx update (ads basically). Haven't heard this one…"
14 hours ago
Jords replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"+1"
14 hours ago
Anam replied to Anam's discussion Ning 3 Commenting on Group does not move it up to fore of group Hub
"I have groups set to ''Latest Activity'' and i feel that is all the available…"
14 hours ago
ceri shaw replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"In addition to everything mentioned here I would like to see more group content featured in the…"
15 hours ago
Kos replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"imho they need to do something to stop or slow the hemmorhaging........."
15 hours ago
Jords replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"Secretly, however, given the length of time since the last release, I'm hoping they blow my…"
15 hours ago
Zachary Moonshine replied to B Blogger's discussion Ning Chat Alternative: chatWING
"its funny i just set up cometchat and it is the exact opposite, its fully set up for ning members…"
17 hours ago
Jords replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"Cheap date, I know. Lol! Hey, its a great request which will increase activity once developed. :)"
17 hours ago
Kos replied to Yolanda van Heese's discussion Capitals in headers of content items
"Yolanda I assume you mean the actual modules rather than page title.  You can target the…"
17 hours ago
Donna Mac replied to Ning's discussion Update to Product Roadmap and Communication Changes
"I also can tell you that Social Engine PHP has everything 2.0 has and more.  The difference…"
18 hours ago