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?


Tags: javaScript, member, name

Views: 153

Reply to This

Replies to This Discussion


If a member is signed in to a network, their name appears in a javascript variable that Ning sets up for us:


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!


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:

"location":"NC, USA",
"fullName":"TJ @ jQueryHelp",

I x'ed out my age :-)
Most of that is self explanatory, photoUrl is your profile pic.

Have a great day!

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 !

You can see the real name of a member when you are over his link with your pointer, it appears in the preview bar of your browser (in my case firefox) and it remains the same even if the member change his name

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 ?


What's Up With Ning 3.0?

Click here to share your thoughts on what features we should develop next! - Survey will close Friday, 4/25

Projects that the Ning 3.0 Team is currently working on: 

Articles - a new way of organizing longer content pieces. Released 4/16.

Activity Feed Updates - options for more content in the activity feed.

Forum Notifications - ability for members to opt into receiving notifications of new discussions in forums. Released 4/9. 

APIs - The ability to create new members and content programatically.

For more information on what's next, visit the Product Roadmap

Latest Activity

NC for Hire
SweetPotato replied to SweetPotato's discussion 'Tip: Insert Adverts in Content after the First Paragraph'
"Glad it worked. SP"
28 minutes ago
francesco pillinini replied to francesco pillinini's discussion '3rd Party Integration > Facebook'
"Elshara Thank you very for replying to my message still can't see what im looking for on…"
38 minutes ago
Kevin Kelly replied to Chris Purington's discussion 'Paid Memberships & Recurring Payments in Ning 3.0'
"That would be a great feature to add.  There's bound to be lots of small membership…"
2 hours ago
soaringeagle replied to Phil McCluskey's discussion 'Introducing Email Notifications for Blogs and Forums'
"sure message me"
4 hours ago
Just Asking replied to SweetPotato's discussion 'Tip: Insert Adverts in Content after the First Paragraph'
"I just added this.  Works BEAUTIFULLY! Thanks so much for the tip!"
5 hours ago
Just Asking replied to Just Asking's discussion 'Need help defeating image crawler...'
"I will do that for the last couple.  The member is somehow still finding ones I hide on…"
6 hours ago
Just Asking replied to Just Asking's discussion 'Anybody know of virtual world or virtual pet widgets with custom private channels?'
"I actually have a couple different ones like that installed already I'm *supposed to* be…"
6 hours ago
Kos replied to Enrrico Torres's discussion 'how to reduce the http request'
8 hours ago

© 2014   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service