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

Aleman Chandrasekar is now a member of Ning Powered Events
15 hours ago
Gerry Emery and Anna Semendiaieva joined Ning Creators Network
yesterday
Hugh replied to The Ning Team's discussion Network Accessibility Update II
"Thanks Kos. The issues resolved themselves later that day, Functionality returned bit by bit. It wa…"
yesterday
Kos replied to The Ning Team's discussion Network Accessibility Update II
"Hugh just seeing this now.  Wow, you're going through a boatload of issues.  Have you cleared your…"
yesterday
mark gardner and Rafael Marchesi joined Ning Creators Network
yesterday
Rowald replied to Anthony Reardon's discussion What is Ning?
"Great post and good to see you here Anthony!"
yesterday
Hugh replied to The Ning Team's discussion Network Accessibility Update II
"I've been reporting problems with my broadcast messages failing to reach all members for a couple o…"
Wednesday
Hugh replied to The Ning Team's discussion Network Accessibility Update II
"As of this morning, all my backend functionality doesn't work. So far I've discovered that I cant:…"
Wednesday
Giovanni Cappai replied to Giovanni Cappai's discussion Need your Feedback!
"Really appreciate it! do you have any other suggestions to improve my network design? I'd love to h…"
Tuesday
George H. Compton IV replied to Giovanni Cappai's discussion Need your Feedback!
"Sorry I wasn't wearing my glasses yesterday when I post this. Here's the code without the extra scr…"
Tuesday
Cat replied to The Ning Team's discussion Network Accessibility Update II
"I disliked 3.0 also, Happy, and will have to find a new platform, if 2.0 stops being supported."
Tuesday
George H. Compton IV replied to George H. Compton IV's discussion Add Google translate to all pages. Any network not just Ning networks!!!
"Update 11/28/16 -- Google translate v12 - All languages. You no longer have to select a default lan…"
Monday
Mustaien is now a member of Ning Creators Network
Monday
Jen replied to The Ning Team's discussion Network Accessibility Update II
"Yes. It's just a simple HTML Text Box to add something about yourself, like an intro. Ning 2.0 offe…"
Monday
Hippy replied to The Ning Team's discussion Network Accessibility Update II
"all I have to say is if you do quit supporting 2.0 you can quit looking for my payment each moth ,…"
Monday
Giovanni Cappai replied to Giovanni Cappai's discussion Need your Feedback!
"Hi George! thanks for your help and yes, i found your tip so cool that i dove into it immediately :…"
Monday
Brian Antezana replied to The Ning Team's discussion Network Accessibility Update II
"Yikes!"
Monday
Just Asking replied to J.Ayvar's discussion Our Ning Account has been hacked.
"Where is there more information on this? How do you know the scope of it?"
Sunday
J.Ayvar replied to J.Ayvar's discussion Our Ning Account has been hacked.
"We Have a name and e mail . Wi Will report to Fbi <a rel=nofollow href="https://www.ic3.gov/compla&hellip;"
Sunday
Thisisbully replied to The Ning Team's discussion Network Accessibility Update II
"Do you use ning 3 on mobile like an actual cellphone? If so you will feel my pain ,from the tip or…"
Sunday
More…