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 !

  • You can see the real name of a member when you are over his link with your pointer, it appears in the preview bar of your browser (in my case firefox) and it remains the same even if the member change his name

    • 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

Donna Mac replied to PeruCool's discussion Alternatives to Ning social network
"Thanks!"
1 minute ago
Donna Mac replied to PeruCool's discussion Alternatives to Ning social network
"Laura:  I think I answered this in our emails....but in case I didn't.....no you don't.  :)"
1 minute ago
marshall blake replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Sense the activity feed update I have been having trouble viewing profile pages on my network. Has…"
2 minutes ago
Perrie Halpern replied to PeruCool's discussion Alternatives to Ning social network
"Great Job Donna. I am very impressed!"
10 minutes ago
ceri shaw replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Tab container issue resolved for now....fingers crossed it's permanent this time......feed still no…"
13 minutes ago
ceri shaw replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Very steep learning curve but self hosted,  open source and infinitely flexible....here is a page f…"
35 minutes ago
C.Brickhouse replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"I was looking into joomla I really like there layouts and found one perfect for what I am trying to…"
41 minutes ago
C.Brickhouse replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"when I add a video link to the activity feed no preview shows up only the link am I doing something…"
43 minutes ago
ceri shaw replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"I'm going to work on my Joomla site.....this is a waste of time."
49 minutes ago
Laura Occhipinti replied to C.Brickhouse's discussion Be Kind
"It was slow to load for me but that could be my wifi.  I think your header looks great and I LOVE t…"
50 minutes ago
ceri shaw replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"I have had to remove the Activity Feed altogether from the front page of my site because it doesn't…"
51 minutes ago
Laura Occhipinti left a comment for Donna Mac
"Donna - Can you email me your socialengine url at Laura @ NJYP.org  I would LOVE to see it. Thank y…"
56 minutes ago
Laura Occhipinti replied to PeruCool's discussion Alternatives to Ning social network
"I'm going to message you now.  "
57 minutes ago
Laura Occhipinti replied to PeruCool's discussion Alternatives to Ning social network
"Do you still need a server if you use their cloud (sorry, I'm clueless)."
57 minutes ago
Kos replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"I'm getting the same errors as you SE.  I have to laugh at this point otherwise I'll flip out.  #ri…"
1 hour ago
Donna Mac replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"But wait.......if you act now.....you'll receive......(as the commercial goes)"
1 hour ago
ceri shaw replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Gone again...I give up."
1 hour ago
Donna Mac replied to PeruCool's discussion Alternatives to Ning social network
"Message me and I will give you the link.  I don't want to publish it because it is a private networ…"
1 hour ago
Kos replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Now I'm getting a 500 error on my 3.0 network."
1 hour ago
Donna Mac replied to PeruCool's discussion Alternatives to Ning social network
"I have a dedicated server with a small company and I will have to ask them if they want their name…"
1 hour ago
More…