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

Zachary Moonshine replied to Zachary Moonshine's discussion Floating widget help ?
"hmm ok i think i have this figured out i copied the code and input my src code ,  i see the chatwin…"
6 minutes ago
Zachary Moonshine replied to Zachary Moonshine's discussion Floating widget help ?
"ok now i feel silly ...i dont think i have a ning bar ? i have ning 3.0 http://metaldevastationradi…"
33 minutes ago
Fire-Tech replied to Nancy Marsh's discussion Suggestions for Broadcast Message Archive
"Here's a discussion on what I do."
1 hour ago
Kos replied to Nancy Marsh's discussion Suggestions for Broadcast Message Archive
"I made a "category" in the Forums for "Site News" so that each newsletter is stored within the cate…"
4 hours ago
Nancy Marsh replied to Nancy Marsh's discussion Suggestions for Broadcast Message Archive
"Sorry, I posted prematurely.
I was starting to say that the site is private.
Thanks"
5 hours ago
Zachary Moonshine replied to Zachary Moonshine's discussion Floating widget help ?
"wow George you rule dude ! thank you man ! to hell with spot.im i am gonna do this "
6 hours ago
Garfield Creator replied to Zachary Moonshine's discussion Floating widget help ?
"Just want to say I have a lot of respect for someone who is willing to spend "a couple of hours" on…"
11 hours ago
George H. Compton IV replied to Zachary Moonshine's discussion Floating widget help ?
"I spent a couple hours updating the code. :-) It's now fully responsive and I also added a chatwing…"
23 hours ago
Zachary Moonshine replied to Zachary Moonshine's discussion Floating widget help ?
"WOW that looks killer , i had started using spot.im too but most of my users already are used to th…"
yesterday
George H. Compton IV replied to Zachary Moonshine's discussion Floating widget help ?
"Here's all the code you need to have it working perfectly. See image below. It's awesome. Chatwing…"
yesterday
Ceddy J replied to soaringeagle's discussion hmm interesting careers at ning/mode
"That's how I feel man. This is a great analysis. Ning takes a long time with updates, but never thi…"
yesterday
Kos replied to James Hollins's discussion Ning site is full of pop ups
"Mine are back up.  Were you able to resolve your pop up issue?"
yesterday
Zachary Moonshine replied to Zachary Moonshine's discussion Floating widget help ?
"<div id="chatwing-embedded-1d973543-c11b-48d4-9e52-544915bd6a0f"></div>
  
THIS IS THE CODE FOR MY…"
yesterday
George H. Compton IV replied to Kos's discussion Holidays Just Around The Corner
"You're welcome Kos, you have a wonderful holiday season as well. :-)"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion ( 11 themes N3 & N2 ) Customizable CSS winter/holiday themes
"Thank you Jim. :-) I like the one that's on CRF 3.0 the best. :-)"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion ( 11 themes N3 & N2 ) Customizable CSS winter/holiday themes
"Thank you Marshall."
yesterday
George H. Compton IV replied to Zachary Moonshine's discussion Floating widget help ?
"Hello Zachary, this code should do the trick. Of course I don't know what you're trying to fix to t…"
yesterday
Kos replied to Zachary Moonshine's discussion Floating widget help ?
"I found this old discussion you may be able to adapt by changing the placement on the page.  Headed…"
yesterday
Kos replied to James Hollins's discussion Ning site is full of pop ups
"You're sounds like malware.  I'd defintely run a scan and try diff. browsers.
I'm unable to access…"
yesterday
Zachary Moonshine replied to Abdullah ktk's discussion floating image post
"is there any way to make my chatwing float or popup on my entire site using something like this ?"
Friday
More…