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

Mary Jane Peterson replied to Mary Jane Peterson's discussion I had an email to day some thing about Ning Improvements spam
"Kos 
Thank you  Kos "
12 minutes ago
Luke Jones replied to Luke Jones's discussion buying Ning out
":) O could you sign the petition please JFarrow ? :) 
its in my last discussion I think, if you can…"
1 hour ago
JFarrow replied to Luke Jones's discussion buying Ning out
"all good Luke"
1 hour ago
Luke Jones replied to Luke Jones's discussion buying Ning out
"aha, Maybe we'll win the lottery you never know :P Sorry for the late reply JFarrow, when you repli…"
2 hours ago
Kos replied to Mary Jane Peterson's discussion I had an email to day some thing about Ning Improvements spam
"Can you say spam?  Yes, it's a sales pitch."
5 hours ago
JFarrow replied to Antonio Ancelmo Matos Santos's discussion A year of neglect!
"Thank you... that tells me just what i need to know... i appreciate it"
16 hours ago
Strumelia replied to Antonio Ancelmo Matos Santos's discussion A year of neglect!
"JF, no I don't mind.  My situation was a little different because I started experimenting with buil…"
16 hours ago
JFarrow replied to Luke Jones's discussion buying Ning out
"26,000 creators with only around 30 who are happy and satisfied with their support presently..
good…"
18 hours ago
JFarrow replied to Anas Ghanim's discussion Need A Mobile App For My Network
"i second that Scott"
18 hours ago
JFarrow replied to Antonio Ancelmo Matos Santos's discussion A year of neglect!
"If you don't mind me asking what did the whole transition to Jamroom cost?"
18 hours ago
Luke Jones replied to Fred Peters's discussion I can't run a social community like this!
"If everybody could sign this petition please? :) With hope that it actually gets somewhere :) http:…"
20 hours ago
Luke Jones replied to Antonio Ancelmo Matos Santos's discussion A year of neglect!
"Strumelia please sign the petition ? :) I Know there's a good chance it probably wont make a differ…"
20 hours ago
Luke Jones replied to Luke Jones's discussion A social platform ?
"Um.... :P No? :P ,I dont know why, but I fancy having a go at creating my own, I know it sounds stu…"
20 hours ago
Strumelia replied to Luke Jones's discussion A social platform ?
"Take a guess what my answer might be?   :)"
20 hours ago
Strumelia replied to Antonio Ancelmo Matos Santos's discussion A year of neglect!
"Some continue waiting and hoping for Ning to actually give them an archive tool...but they said the…"
22 hours ago
Luke Jones replied to Antonio Ancelmo Matos Santos's discussion A year of neglect!
"Yep :/ sign my petition dude :) you never know it could work :) http://www.ipetitions.com/petition/…"
yesterday
soporte is now a member of Ning China
yesterday
Luke Jones replied to Luke Jones's discussion buying Ning out
":p ye but if we all got together :p"
yesterday
SweetPotato replied to Luke Jones's discussion buying Ning out
"Glam bought Ning for over $100m. They have a subscription model that probably yields over $2.5m per…"
yesterday
SweetPotato replied to Fred Peters's discussion I can't run a social community like this!
"PM me :-)"
yesterday
More…