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

Vander NG replied to Ning's discussion Update to Product Roadmap and Communication Changes
"I have been using Ning for 6 years, and yes, I love Ning from my day one, especially the support fr…"
10 hours ago
Kos replied to FedMedic's discussion Sliders anyone?
"POWR is cool, even the free. Diff sizes, diff. fonts, diff. displays and location...........etc."
16 hours ago
Fire-Tech replied to FedMedic's discussion Sliders anyone?
"Yeah, I know all too well my friend :)"
18 hours ago
FedMedic replied to FedMedic's discussion Sliders anyone?
"I just got back on here to read the suggestions. I'll let you know when I try Fire-Tech's suggestio…"
18 hours ago
FedMedic replied to FedMedic's discussion Sliders anyone?
"Hi Fire-Tech, I removed the code. Sorry it took me so long to get back here. Being in the fire busi…"
18 hours ago
Luke Jones replied to Luke Jones's discussion My member's can't use the Emoji's when their using their phones
"Ah right,will check then,thanks Kos :)"
19 hours ago
Kos replied to Luke Jones's discussion My member's can't use the Emoji's when their using their phones
"I would check w/them, then a/b mobile."
19 hours ago
Luke Jones replied to Luke Jones's discussion My member's can't use the Emoji's when their using their phones
"Thanks Kos :) I have comet chat, but I mean't when people are writing a private message and on comm…"
19 hours ago
Kos replied to Luke Jones's discussion My member's can't use the Emoji's when their using their phones
"I use "Cometchat" and while members have to manually type it in, they work.  idk a/b Chatabox.  Sor…"
19 hours ago
Rowald replied to Luke Jones's discussion Ning have finally got back to me!!! Lets throw a party :P
"We can not judge something is good from one perspective."
yesterday
Writer Chick {Diane} replied to Luke Jones's discussion Ning have finally got back to me!!! Lets throw a party :P
"I still like 3 better than anything I've seen out there. Maybe it's not right for some of you, but…"
yesterday
Kos replied to Luke Jones's discussion Ning have finally got back to me!!! Lets throw a party :P
"LOL!"
yesterday
Fire-Tech replied to Luke Jones's discussion Ning have finally got back to me!!! Lets throw a party :P
"New Developer Mode will like rock too...Like, aha :p
... had to...(old timer feeling old)..."
yesterday
Sam O'Prey, Pedro de H.Abuhassan, Execed and 1 more joined Ning Creators Network
yesterday
Mary Jane Peterson replied to Luke Jones's discussion Ning have finally got back to me!!! Lets throw a party :P
"I wish they do some thing  "
yesterday
Mary Jane Peterson replied to Mary Jane Peterson's discussion Power by ning
"thank you 

ning is so unfair on their customers "
yesterday
Strumelia replied to Luke Jones's discussion Ning have finally got back to me!!! Lets throw a party :P
"I don't feel you can call something great based on what it 'might' be, some day...or not.  It certa…"
yesterday
Strumelia replied to Mary Jane Peterson's discussion Power by ning
"Or... buy somebody's 2.0 network and make it into what you want. You can still freely remove the Po…"
yesterday
Kos replied to Luke Jones's discussion Ning have finally got back to me!!! Lets throw a party :P
"They're completely different from who they were.  3.0 is still a great platform though; IF Ning com…"
yesterday
Rowald replied to Mary Jane Peterson's discussion Power by ning
"There is a way but it's against Ning's new (ridiculous) TOS."
yesterday
More…