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

Kyryl_Ning_Support replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"Hi Kevin,
Former network creator has to fill the form http://hc.ning.com/contact/transferownership/…"
37 minutes ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"Hi Anam,
We do apologise for the inconveniences.
The report has been created and passed to our tech…"
37 minutes ago
Anam replied to Bizz ( John )'s discussion What's Happened To The Activity Feeds ? None are showing on any sites including creators
"Yes mine has been gone for 2 days and i have just filed ticket. I don't understand why there could…"
37 minutes ago
Suki Winthrop replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"Why does the Latest Activity feedhere on Creators now only show Ning's own Facebook posts ?!?
Pleaz…"
37 minutes ago
Suki Winthrop replied to Bizz ( John )'s discussion What's Happened To The Activity Feeds ? None are showing on any sites including creators
"they say everything  old gets new again- lol   Krazy!"
37 minutes ago
Lucca King is now a member of Ning Creators Network
37 minutes ago
Mike Collins replied to Bizz ( John )'s discussion What's Happened To The Activity Feeds ? None are showing on any sites including creators
"No response here either which isn't great considering they have been quite active and responding to…"
37 minutes ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Why Are The Events Not Listing The Same Way As UpComing In My Events Or Categories ?
"Hi John,
It's not the question of the сomplexity of the task. As usual in such cases, the priority…"
2 hours ago
Kyryl_Ning_Support replied to Douwe Dronkert's discussion Can I just upgrade to Facebook Graph API v2.3 or higher?
"Hi there,
Yes, I didn't know that sorry. 
Unfortunately, there is no way to see who have signed up…"
2 hours ago
Chelsey Wilson is now a member of Ning Creators Network
2 hours ago
Alliance replied to Alliance's discussion Wordpress to NING plugin is needed
"sometimes that is not good enough if you want it in the Blog section."
20 hours ago
Kos replied to Bryce Rubio's discussion A Message from Our CEO
"I was thinking a/b this last night.  Disappointed to say the least. *sigh*"
20 hours ago
Anthony Reardon replied to Bryce Rubio's discussion A Message from Our CEO
"Mike, I'm with you on all these points - do what you say, say what you mean - essentially. I'm just…"
20 hours ago
Mike Collins replied to Bryce Rubio's discussion A Message from Our CEO
"OK so there are about 7 days left in March which is the end of Q1 2017 - I quote from the original…"
20 hours ago
Douwe Dronkert replied to Douwe Dronkert's discussion Can I just upgrade to Facebook Graph API v2.3 or higher?
"Hi Kyryl,
Thanks for your reply. I was not able to upgrade, so I created a new Facebook Graph API.…"
21 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Why Are The Events Not Listing The Same Way As UpComing In My Events Or Categories ?
"Any updates on this ? Coming up to the end of March now and nearly two months since this issue was…"
21 hours ago
Fabricio Giugni replied to Fabricio Giugni's discussion Ning 2.0 or Ning 3.0 ?
"Bridge in Brooklyn sound great..."
22 hours ago
Suki Winthrop replied to Fabricio Giugni's discussion Ning 2.0 or Ning 3.0 ?
"Seems familiar.
Nothing much happenig in months,
little communication, still soo  outdated and lack…"
yesterday
Tom Whelan replied to David Carr's discussion Being a Ning Network could ruin the deal
"I agree George,
When it comes to actual livelihood and business professionalism, I need stability a…"
yesterday
Phil replied to Anna Ning Support's discussion Announcing Events for Ning 3.0
"I like to disable RSVPs because members rarely bother to RSVP. It gives a bad impression when you s…"
yesterday
More…