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 !

  • This reply was deleted.
    • 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

Roxanne Furlong replied to The Ning Team's discussion Acquisition Update
"P.S. I have 6 subscribers as of Sunday who have paid but have no access. What do I say to them?"
1 hour ago
Roxanne Furlong replied to The Ning Team's discussion Acquisition Update
"I have paid members who I am not able to contact or update because I have no idea if my site is goi…"
1 hour ago
Roxanne Furlong replied to The Ning Team's discussion Acquisition Update
"saw your link, great idea for a site!"
1 hour ago
Roxanne Furlong replied to The Ning Team's discussion Acquisition Update
"What I think is weird is that nothing seems to be the same. Some sites are up, some are down; when…"
1 hour ago
Jamie Baker replied to The Ning Team's discussion Acquisition Update
"Been following this here over the last week or so. Damn I feel for you guys. Fingers crossed for to…"
2 hours ago
complience replied to The Ning Team's discussion Acquisition Update
"My site has been misfunctioning since last night, my reports of it to support were dismissed.
It ap…"
2 hours ago
Cat replied to The Ning Team's discussion Acquisition Update
"I've been with Ning for 8 years, meaning I was here before it was a paid format.  I was lucky enoug…"
4 hours ago
Traddie replied to The Ning Team's discussion Acquisition Update
"People need to be patient I think. A new owner is coming in and they will need to make their intent…"
4 hours ago
Chazz replied to The Ning Team's discussion Acquisition Update
"I wondered.. For me it was somewhere between 2007 and 2008.  Like you, many of us have seen much of…"
10 hours ago
Valerie replied to The Ning Team's discussion Acquisition Update
"Concerned to say the least. The price increase also is too much. Please come up with some fair solu…"
10 hours ago
Anam replied to The Ning Team's discussion Acquisition Update
"For now, I feel the same as you Steve. My site works lovely at the minute, after months of glitches…"
11 hours ago
Alexander Wilon replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"Same here. I have two NING networks and the second one has been working fine. It seems to me that o…"
12 hours ago
Steve C replied to The Ning Team's discussion Acquisition Update
"2009"
12 hours ago
Chazz replied to The Ning Team's discussion Acquisition Update
"Out of curiosity.. How long have you been a Network Creator or been a member on Ning Sites?"
12 hours ago
Steve C replied to The Ning Team's discussion Acquisition Update
"I like your attitude!"
12 hours ago
Steve C replied to The Ning Team's discussion Acquisition Update
"I'm as frustrated as everyone else here. But it could be....
That the company who outbid Cyndx to b…"
12 hours ago
Daniel Dias replied to The Ning Team's discussion Acquisition Update
"Desde 2009 mantive 2 sites na Ning... Mas a duplicação de preços me obrigou a fechar um deles este…"
13 hours ago
Chazz replied to The Ning Team's discussion Acquisition Update
"I feel incredibly fluffed off. I feel like I have yet again been palmed off to some one else beneat…"
13 hours ago
Roxanne Furlong replied to The Ning Team's discussion Acquisition Update
"This gets scarier by the day."
13 hours ago
Roxanne Furlong replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"My site was fine yesterday, now it's a white screen with a list irf links. Why do the problems keep…"
13 hours ago
More…