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

Terry Henderson replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"Thanks - but don't worry about me - I can give as good as I get if I felt someone was trying to bul…"
1 hour ago
Terry Henderson replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"I just looked up my old email - on 3/14/14 I got an email saying 3.0 Phase One was ready and my sit…"
1 hour ago
Strumelia replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"I believe you Terry- I have heard now and then of inconsistencies in Ning payment support (or non-s…"
2 hours ago
Solael replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"Something does not sound right. But okay...your story is your story."
2 hours ago
mysticpagan replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"I have been getting notifications in my email regarding this discussion and I just wanted to say it…"
2 hours ago
Terry Henderson replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"No - my account had not lapsed.  It was a month or two before it was due.  But my account had over…"
2 hours ago
soaringeagle replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"then why is it it only happened to you and everyone else has had no trouble renewing thier 2.0
mayb…"
2 hours ago
Donna Mac replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"This drama is ridiculous.  RI DIC U LOUS.  All this in-fighting amongst each other.  Thanks Ning."
2 hours ago
Strumelia replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"Terry, had you let your payment/renewal lapse or expire unpaid for a few weeks or more before you a…"
2 hours ago
Strumelia replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"Allison/Crystal made it quite clear that Ning had dropped all migration deadlines for the time bein…"
3 hours ago
Terry Henderson replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"I was on this thread before and started getting the new email - I tried my login and it worked - wh…"
3 hours ago
Terry Henderson replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"All I know is they contacted me and told my I HAD to upgrade to renew - I told them I didn't want t…"
3 hours ago
Solael replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"I am not supporting anyone here on this, however there are two sides to every story. No one will di…"
3 hours ago
Scott Bishop replied to Allison Leahy's discussion What are you most excited about?
"I'm most exited about George H. Compton IV responsive design for N2. Works much better than N3 and…"
3 hours ago
soaringeagle replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"and to clarify you have a year to a year and 1/2 after stage 3 migration tools aree in place so far…"
3 hours ago
soaringeagle replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"impossible you absolujtely missunderstood i have both 2.0 and 3.,0 i reneweed both they cannot and…"
3 hours ago
Strumelia replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"Steve, they were saying that thing about the one year deadline...about a year ago.  But then when t…"
3 hours ago
steve replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"wow, thats rough terry, they should have at least given you the option to continue on N2.
Thats jus…"
4 hours ago
Donna Mac replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"That is HORRIBLE!  I switched to "monthly" last June because I did not want to get blindsided.  Oth…"
4 hours ago
steve replied to Allison Leahy's discussion Changes to Ning 3.0 Based on Your Feedback
"I wish i could remember where i saw this, and i dont know if it still holds true but i read a ning…"
4 hours ago
More…