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

Philip Voice replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"I want it on the chatbar. I want the main room to pop up right next to the who's online box."
11 minutes ago
Bertalan Ecaterina left a comment for Bertalan Ecaterina
"Segitséget kérem  kataning.ning.com   webhelyen  mp3   5 Mb alatt sem engedi betölteni az anyagot,…"
33 minutes ago
Kos replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"I have tons of things on diff. websites where images are "linked" to pages or diff. things.  It sav…"
48 minutes ago
Strumelia replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"Isn't the new update for Cometchat all about just that?- inserting CC onto its own page rather than…"
1 hour ago
Strumelia replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"Nope, there's a line of Ning creators ahead of me in queue, currently migrating to Jamroom...I have…"
1 hour ago
Anam replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"That is an interesting idea Kos..I never thought of doing that. Maybe I will set to nervously tinke…"
1 hour ago
SweetPotato replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"Not left yet? :-)"
1 hour ago
Strumelia replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"People here need help with various issues and features that Ning is no longer providing or helping…"
1 hour ago
Bernadette Arthur replied to Niche Networkers's discussion Community Contact Page
"ok.  thanks!  I think I'm just going to leave it as it is...I've spent too much time on this.  Than…"
1 hour ago
Kos replied to Niche Networkers's discussion Community Contact Page
"ok idk how you constructed it but if you click on the image - you get the contact form itself.  You…"
1 hour ago
Strumelia replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"Thanks Luke.
Because I bought Cometchat for my self-hosted Jamroom site, it's the CC version where…"
1 hour ago
Bernadette Arthur replied to Niche Networkers's discussion Community Contact Page
"The button does not link to the form I created...I try to put the form in a side module, but it cut…"
1 hour ago
Bernadette Arthur replied to Niche Networkers's discussion Community Contact Page
1 hour ago
Bernadette Arthur replied to Niche Networkers's discussion Community Contact Page
"ok I did that.  I'll show you what it looks like...one sec...lemme change it back
and I'll post the…"
1 hour ago
Kos replied to Niche Networkers's discussion Community Contact Page
"Make a page.  The tab can be normal or check the "subtab" option.  Up to you which way it displays.…"
1 hour ago
Kos replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"Philliip I do apologize.  I just get tired of other sites discussing (almost spamming) here but you…"
1 hour ago
Bernadette Arthur replied to Niche Networkers's discussion Community Contact Page
"I am having difficulty with getting my Jot Form button on my Contact Us page without it looking wha…"
2 hours ago
Philip Voice replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"They don't have a forum (at least I've not found it)"
2 hours ago
SweetPotato replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"yeah but it's nice to get some customer support here on Ning even if it's not from Ning :-)"
2 hours ago
Kos replied to Luke Jones's discussion I would recommend Comet chat to anyone :)
"Ummmmm Don't they have a forum there to ask?"
3 hours ago
More…