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

Garfield Archivist replied to Traddie's discussion Can't Sign in or out of my Network, or add blogs
"This is happening to several others today (May Day) over at the following discussion click here"
29 minutes ago
Garfield Archivist replied to steve davies's discussion Can't sign out of my site etc
"FYI, there is another discussion started today by Traddie on the same issue. Click here
You can try…"
37 minutes ago
Kos replied to steve davies's discussion Can't sign out of my site etc
"I hope you've all filed tickets so they see it's an issue when they open tomorrow.  Sadly they're o…"
2 hours ago
Steve C replied to steve davies's discussion Can't sign out of my site etc
"I am having the same problems. Been since Saturday afternoon (I'm in Calif.).
People can't post or…"
2 hours ago
Writer Chick {Diane} replied to steve davies's discussion Can't sign out of my site etc
"I'm having trouble with my site today, too.  When I reply to discussions and click the button to ad…"
3 hours ago
Chris Comish replied to steve davies's discussion Can't sign out of my site etc
"Happening to my 2.0 site now. I did everything suggested. Yes this is definitely an issue on Ning's…"
4 hours ago
Chris Comish replied to Just Asking's discussion Systems Down Again???
"same for me"
4 hours ago
Just Asking replied to Traddie's discussion Can't Sign in or out of my Network, or add blogs
"Sadly, you're one of many. This hit me last week and there's another post here from this week from…"
7 hours ago
John Bizley replied to John Bizley's discussion New View Videos Menu Item Added To Social Channels Pages On Creative Network (UPDATED: Code now added)
"Brian thanks for your reply, I have now added a small tooltip which will show up above the blue arr…"
17 hours ago
John Bizley replied to John Bizley's discussion Latest Photos Module Slideshow ( Not Using Flash ) ** CODE NOW ADDED**
"Just added the code on my site for this and can be found here:
http://creativenetwork.ning.com/foru…"
20 hours ago
John Bizley replied to John Bizley's discussion New View Videos Menu Item Added To Social Channels Pages On Creative Network (UPDATED: Code now added)
"Just added all the code for my social channel pages with the menu code to my site, you can find it…"
20 hours ago
Brian Antezana replied to John Bizley's discussion New View Videos Menu Item Added To Social Channels Pages On Creative Network (UPDATED: Code now added)
"Thanks for the reply. It was just something I was thinking about since, in my experience, if someth…"
22 hours ago
John Bizley replied to John Bizley's discussion New View Videos Menu Item Added To Social Channels Pages On Creative Network (UPDATED: Code now added)
"Hi Brian. I will be adding a tooltip which will pop up so they know what the arrow does but most wi…"
22 hours ago
John Bizley replied to John Bizley's discussion New View Videos Menu Item Added To Social Channels Pages On Creative Network (UPDATED: Code now added)
"Thanks George, will pop the code up a little later on my site."
22 hours ago
Brian Antezana replied to John Bizley's discussion New View Videos Menu Item Added To Social Channels Pages On Creative Network (UPDATED: Code now added)
"Do you think that it would just be better to show the videos by default incase other people do not…"
22 hours ago
George H. Compton IV replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"Thank you Jim. :D
Blessings"
yesterday
George H. Compton IV replied to John Bizley's discussion New View Videos Menu Item Added To Social Channels Pages On Creative Network (UPDATED: Code now added)
"SWEET JHON!!! Thank you"
yesterday
George H. Compton IV replied to ⚡JFarrow⌁'s discussion 2 More Powerful Tools for Your Ning Design Arsenal
"Thank you JFarrow. :) It's always nice to have new options.Here's the best Website I've ever used f…"
yesterday
Kos replied to ⚡JFarrow⌁'s discussion 2 More Powerful Tools for Your Ning Design Arsenal
"Where was I in 2012?  I missed these too.  Sheesh!  Thank you for sharing them JF. "
yesterday
Paul Corona replied to steve davies's discussion Can't sign out of my site etc
"NING help/support is about as useless as can be anymore"
yesterday
More…