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

Tuxedo Ramen replied to Saurabh's discussion Has Ning stopped development ??
"ugh! No definite time for stuff that works in 2.0 now! Copy and paste...
Is this all about moving c…"
4 hours ago
Anthony "DarkGemineye" Johnson replied to Anthony "DarkGemineye" Johnson's discussion PlayStation Haven is back. Let me know what you think.
"Thanks a lot Jamie :)"
5 hours ago
Anthony "DarkGemineye" Johnson replied to Anthony "DarkGemineye" Johnson's discussion PlayStation Haven is back. Let me know what you think.
"Thanks, I am still trying to decide the best way to make use of the forum. So far I am not happy wi…"
5 hours ago
Gwynnyth replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Priorities are screwed up, I need site search and chat, I already had comments on my main page so..…"
5 hours ago
John Bizley replied to John Bizley's discussion My New Classifieds using WordPress and iframed into my site
"Hi Scott, yes I do already have one built straight into Ning in a group. I am going to replicate th…"
7 hours ago
Scott Bishop replied to John Bizley's discussion My New Classifieds using WordPress and iframed into my site
"Have you tried building your own classifieds from scratch right on your Ning platform?
Have alook h…"
7 hours ago
Zachary Moonshine replied to JFarrow's discussion How to Get Google to Recognize Sitemap
"I actually emailed ning about this the day i set up my site, first thing i did was go to set up my…"
8 hours ago
steve replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"What gets to me and surely they should know this. they cant go home and leave things broken, we all…"
8 hours ago
Mike Collins replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"My ticket (the second I've filed on activity feed) since migrating...

All known issues should sure…"
9 hours ago
John Bizley replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
"The WordPress Log in is a separate log in because it is not part of the Ning site. I actually prefe…"
9 hours ago
Gerry Regan replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
"John, how do you incorporate the Ning log-in on the WordPress version, or does it require a separat…"
10 hours ago
Zachary Moonshine replied to Gwynnyth's discussion CHAT
"I have cometchat for my members in  a bar at the bottom and it works just like facebook and we love…"
10 hours ago
Edie2k2 left a comment for Pat Howlett
"Thank you for accepting. Wonderful posts!"
11 hours ago
Jeffrey Haskins replied to JFarrow's discussion How to Get Google to Recognize Sitemap
"How has this worked out for everyone?"
13 hours ago
Pat Howlett replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
":]"
14 hours ago
Pat Howlett replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Great recap Anthony - of course I didn't think that any of those folks would engage - I still hold…"
14 hours ago
Pat Howlett left a comment for Edie2k2
"Great to connect with you Edie2k2 - please let me know whenever I might be of help."
14 hours ago
George H. Compton IV replied to George H. Compton IV's discussion (TIP) Ning3.0 thimes v1 full width network
"To widen your network you can use my code from this tip.
"TIP" widen your network too 1202px
I did…"
14 hours ago
George H. Compton IV replied to George H. Compton IV's discussion ( TIP "N3.0,2 ) Add Google translate to your Ning bar on all pages. Update 8/21/14 v8.1
"Update 8/21/14 v8.1 --  I fixed the cell phone users links. The mailbox and friends request is no l…"
14 hours ago
Anam replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"nothing from Monday night to yesterday shows up when it came back. nothing posted today went into i…"
14 hours ago
More…