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

TJ @ jQueryHelp replied to Fire-Tech's discussion 3.0 Tip: Saving Your Newsletters & Other Broadcast Messages While Keeping Them White Label
"Very nice tip; thanks FT!"
3 hours ago
TJ @ jQueryHelp replied to Dixie Redmond's discussion Ning 3 - Saving photos?
"Hi Dixie,
Could you provide a link to a photo in one of your groups that I can check out?  I may be…"
6 hours ago
ceri shaw replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Can't beat a bit of philosophy imho :)
I forget who it was that opined that positivism entails pass…"
6 hours ago
CocteauBoy replied to Ning's discussion Update to Product Roadmap and Communication Changes
"STEVE WROTE: "....i find that true positive thinking is accepting the negative and dealing with it…"
9 hours ago
JFarrow is now a member of Creators Dashboard
11 hours ago
JFarrow replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"No problem... i hope you get it sorted out.  Garfield is a whiz at the archiver.."
11 hours ago
steve replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Being into this sort of thing myself, i find that true positive thinking is accepting the negative…"
11 hours ago
Strumelia replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"Thanks Garfield!
I just heard from Ning Support on my ticket an hour ago, and they re going to make…"
13 hours ago
Garfield Creator replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"Sorry to hear Strumelia. If it's still not working I may have a workaround solution for backing the…"
13 hours ago
Strumelia replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Everyone has their own approach, including Ning and Glam.  I tend to take a simpler approach:  if I…"
15 hours ago
CocteauBoy replied to Ning's discussion Update to Product Roadmap and Communication Changes
"I like this suggestion, but there's a fine line between "positive thinking" and delusion. At this p…"
16 hours ago
Ning via Facebook

Why Ambiverts Make Great Community Managers http://ow.ly/AxrAv

Fire-Tech replied to Tyler Durbin's discussion 2.0 Sliders instructions?
"Yup. I have had / made a few in the past. They are always a pain... but their new one is painless.…"
yesterday
Tyler Durbin replied to Tyler Durbin's discussion 2.0 Sliders instructions?
"Thanks Fire, I see they are going to come out with a 2.0 version."
yesterday
Tyler Durbin replied to Tyler Durbin's discussion 2.0 Sliders instructions?
"Thanks Kos, I will look some more. "
yesterday
Tyler Durbin replied to Katie McKay's discussion I love my new slider!
"Definitely let us know!"
yesterday
Strumelia replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"I will try that next time- have to wait another 24 hrs now...   thank you!"
yesterday
JFarrow replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"i believe i set it to allow read/write permissions as it was only set to read"
yesterday
Strumelia replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"JF-  thank you , I will try this next time then!   Can you please tell me what permissions/properti…"
yesterday
JFarrow replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"I recieved that same error the other day.  I then logged out of archiver, reset the permissions/pro…"
yesterday
More…