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

John Bizley replied to ismail shah's discussion Removal of Large Spaces between Posts
"The above should work but try it this way and see if that helps, if not give me a link to your blog…"
39 minutes ago
Simon Farnworth replied to ismail shah's discussion Removal of Large Spaces between Posts
"Thanks, John! It doesn't seem to be working though :("
1 hour ago
John Bizley replied to ismail shah's discussion Removal of Large Spaces between Posts
"Simon if it's the spacing between each post you can use this, just adjust the amount for what you n…"
1 hour ago
Simon Farnworth replied to ismail shah's discussion Removal of Large Spaces between Posts
"I was using the code which John kindly provided for this but deleted it when 'spring cleaning' my c…"
1 hour ago
Andrzej Góralczyk replied to Andrzej Góralczyk's discussion Background image in the header gone
"Seems that .png format is not supported."
1 hour ago
Ron replied to Ron's discussion Ning Apps: Classifieds Preview
"Awesome! We are also planning to provide seamless integration at least interface wise, with these f…"
1 hour ago
Ron replied to Ron's discussion Ning Apps: Photo Tagging Feature (WIP)
"Hey Luke We're trying our best to reach Early Access and then Beta asap, so it's just an estimate b…"
2 hours ago
Ron replied to Jan Homan's discussion How to create a video as a header?
"Hey Jan,
Welcome to Creators Network :-) Yes, it is possible to put a video instead of a logo. Have…"
2 hours ago
Ron replied to Mandy's discussion Add Text Box- Photo Upload Page
"Hi Mandy, glad to help out :-) Yes, I know what you mean and it would really be nice to customize y…"
4 hours ago
Ron replied to Ron's discussion Free Emoji for Ning Apps Early Access Subscribers
"Hey Luke, Yes this will be available for both 2.0 and 3.0.
Stay tuned for my next update here with…"
5 hours ago
Ron replied to Ron's discussion Free Emoji for Ning Apps Early Access Subscribers
"Hey Mary Jane, thank you for your interest. We're still sorting out a few minor details and will po…"
5 hours ago
John Bizley replied to John Bizley's discussion Does anyone like this idea of having comments on the side of photos rather than below ? ( Code now added )
"Hi Jelena
Which part are you trying to change the colour for ? If it's the background which is a ta…"
5 hours ago
Fire-Tech replied to Ron's discussion Ning Apps: Classifieds Preview
"+1"
12 hours ago
Jelena replied to John Bizley's discussion Does anyone like this idea of having comments on the side of photos rather than below ? ( Code now added )
"Hello John im trying your code how can i change the color? and the size i try without results :)"
15 hours ago
Luke Jones replied to John Bizley's discussion Does anyone like this idea of having comments on the side of photos rather than below ? ( Code now added )
"Their working now John :) :) thank you :) :) "
18 hours ago
John Bizley replied to John Bizley's discussion Does anyone like this idea of having comments on the side of photos rather than below ? ( Code now added )
"I just added a comment to the camera pic and they showed up for me. You might need to try a refresh…"
18 hours ago
Luke Jones replied to John Bizley's discussion Does anyone like this idea of having comments on the side of photos rather than below ? ( Code now added )
"Ah right aha, I want those items available aha,I've got html allowed ,but when I click on the smili…"
18 hours ago
John Bizley replied to John Bizley's discussion Does anyone like this idea of having comments on the side of photos rather than below ? ( Code now added )
"When you enable the html you then get the small toolbar along the top like we have here so you can…"
18 hours ago
Luke Jones replied to John Bizley's discussion Does anyone like this idea of having comments on the side of photos rather than below ? ( Code now added )
"Awesome, thanks john :) Um what does that code do ,sorry ? :) "
18 hours ago
John Bizley replied to John Bizley's discussion Does anyone like this idea of having comments on the side of photos rather than below ? ( Code now added )
"Changed the colours and noticed that to make the smilies work you have to enable the allow html in…"
19 hours ago
More…