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

JFarrow replied to JFarrow's discussion Tip: How to Embed Flipboard Into Ning N3/N2
"np GC!"
2 minutes ago
JFarrow replied to JFarrow's discussion Tip: How to Embed Flipboard Into Ning N3/N2
"My pleasure FT...kinda opens a few doors huh.."
2 minutes ago
George H. Compton IV replied to George H. Compton IV's discussion ( TIP N3 & N2 ) Chatwing fixed chatbox v4.2
"Thank you Dave :-) here's another button. You guys can try out. It's pretty cool. A little round do…"
4 minutes ago
George H. Compton IV replied to George H. Compton IV's discussion ( TIP N3 & N2 ) Chatwing fixed chatbox v4.2
"Thank you John :-) you have a wonderful evening"
8 minutes ago
George H. Compton IV replied to JFarrow's discussion Tip: How to Embed Flipboard Into Ning N3/N2
"This is cool thank you for sharing  JFarrow :-)"
9 minutes ago
Nelson Freytes replied to Nelson Freytes's discussion Using Ning 3 as a news publishing network
"Hi JFarrow,
Could you send me some sample sites? We'd be starting in early 2015, but I'd like to sh…"
1 hour ago
Fire-Tech replied to JFarrow's discussion Tip: How to Embed Flipboard Into Ning N3/N2
"+1. I have thought about this a few times. Will have to dig in. Thanks for sharing man."
1 hour ago
JFarrow replied to Nelson Freytes's discussion Using Ning 3 as a news publishing network
"Yes, Ning3 is a wonderful solution for this.  Combining the power of Ning with various 3rd party ap…"
2 hours ago
dave replied to George H. Compton IV's discussion ( TIP N3 & N2 ) Chatwing fixed chatbox v4.2
"This is terrific work George and looks fantastic, It's another great adaptation to the Ning 3 and 2…"
3 hours ago
Nan Cassidy, Chief Liberation, James A Hull and 4 more joined Ning Creators Network
3 hours ago
William Le Metayer is now a member of Ning Networks en español
3 hours ago
Zachary Moonshine replied to George H. Compton IV's discussion ( TIP N3 & N2 ) Chatwing fixed chatbox v4.2
"man this looks so great and works soo much better , spot.im had a good idea but they are still work…"
4 hours ago
JFarrow replied to JFarrow's discussion Tip: How to Embed Flipboard Into Ning N3/N2
"flipboard is pretty amazing for what it is and the ease of building magazines.. i hope you guys fin…"
5 hours ago
John Bizley replied to George H. Compton IV's discussion ( TIP N3 & N2 ) Chatwing fixed chatbox v4.2
"Nice work as always George, been following this post as you have been working on it and it looks gr…"
6 hours ago
Kos replied to JFarrow's discussion Tip: How to Embed Flipboard Into Ning N3/N2
"We were just looking at Flipboard last week.  Awesome.  Thank you!"
6 hours ago
George H. Compton IV replied to George H. Compton IV's discussion ( TIP N3 & N2 ) Chatwing fixed chatbox v4.2
"Hello Zachary, The code in this discussion has just been updated V4.2 and I also have the button yo…"
6 hours ago
George H. Compton IV replied to George H. Compton IV's discussion ( TIP N3 & N2 ) Chatwing fixed chatbox v4.2
":-) Thank you The Builder :)"
6 hours ago
JFarrow replied to JFarrow's discussion Tip: How to Embed Flipboard Into Ning N3/N2
"Thank you John... was a real treat to get it working"
7 hours ago
Kerrie replied to Kerrie's discussion Help I can’t access my network or blogs
"lol..blame it on solar flares! I just received this...
Hi Kerrie,
Thanks for getting in touch with…"
7 hours ago
John Bizley replied to JFarrow's discussion Tip: How to Embed Flipboard Into Ning N3/N2
"Thats a sweet share JF, nice work my friend. :-)"
7 hours ago
More…