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

JFarrow replied to Willerie Razote's discussion Profile Questions--Can you have different versions for each member category?
"Not sure i understand your question.  could you elaborate?"
11 minutes ago
steve replied to Ning's discussion Update to Product Roadmap and Communication Changes
"if you need your ning site for now Donna then i would hold off until a couple of days before. Ive j…"
24 minutes ago
Strumelia replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Ah yes, now I remember!   Good move, I did it right around then as well as I recall."
58 minutes ago
Donna Mac replied to Ning's discussion Update to Product Roadmap and Communication Changes
"I switched to monthly a year ago preparing to abandon ship  :)  "
1 hour ago
Strumelia replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Just remember Ning has a policy ofn ot refunding ANYTHING once they renew a yearly subscripstion. …"
1 hour ago
Asil replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
""Woman in hat is now Glam Public Relations Manager." <--- That made me laugh so hard I started to c…"
1 hour ago
Donna Mac replied to Ning's discussion Update to Product Roadmap and Communication Changes
"That makes me feel better....I was on that page where it said "cancel network" and I just could NOT…"
1 hour ago
Strumelia replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"Most are now working at Starbucks and Olive Garden. The one old guy in the back was actually the ja…"
1 hour ago
Asil replied to Ning's discussion Update to Product Roadmap and Communication Changes
"@ Donna.  I honestly don't think it was malicious.  I think the support person simply didn't read t…"
1 hour ago
Donna Mac replied to Ning's discussion Update to Product Roadmap and Communication Changes
"MY God what a horrible thing....fearing what the big NING will do.  My subscription date is the 22n…"
1 hour ago
Donna Mac replied to Ning's discussion Update to Product Roadmap and Communication Changes
"That is exactly what I would expect of NING.  So I shall wait until I am ready to cancel.  Thank yo…"
1 hour ago
Strumelia replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Agree with Asil.
Call the Ning Billing dept by phone and doublecheck the exact date of when your an…"
1 hour ago
Asil replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"I suspect many have left and many are working on stuff that has nothing to do with the NING platfor…"
1 hour ago
Asil replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"Thanks, Ken.  I signed up for the NING-to-Jamroom mailer. Looking forward to learning more."
1 hour ago
Asil replied to Ning's discussion Update to Product Roadmap and Communication Changes
"@ Donna.  I tried to do an advanced cancellation of one of my NING sites with them last year; it wa…"
1 hour ago
Donna Mac replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Can someone tell me if I cancel my community site now with a date of Dec. 31, 2014...will NING hono…"
1 hour ago
Simon Farnworth replied to Jamie Baker's discussion Compress Your CSS, quickly & easily :)
"Great tip, thanks!"
7 hours ago
Kira Slye replied to Ning's discussion Update to Product Roadmap and Communication Changes
"So there has not been an update in almost 6 MONTHS! Very disappointing, like many creators I really…"
10 hours ago
Tim Atkinson replied to Kos's discussion OK Ning Wizards - I Need Your Help
"Well done, SP - that looks fantastic. Didn't realise what the page was missing - but that just look…"
yesterday
Pam Givens replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"Thank you so much Ken.  I'll take a look at these optons."
yesterday
More…