Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

WHAT DO THESE CODES DO??

I'm going through my advanced appearance code and I'm unsure what these codes do/control. Any help is appreciated!

First one: (it obviously puts a border around some module, but which one??)

div.xg_module {
border: 1px solid #d0d0d0;
}

Second one:

div.account #xg_head {padding:0 !important;}

Third one:

select.quickpost {display:none!important;}

Fourth one: (obviously making font somewhere BLACK, but where? )

/* Optional Font Color, Font Size, and Font Weight */color:#000000;
font-size:11px;
font-weight:bold;
}

Thanks in advance for any insight you can give me!

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Email me when people reply –

Replies

  • First one: puts a Gray border around all your modules like your latest activity, blogs, forum and such. It will not work for all modules unless you add the word important to the end of it like this

    div.xg_module {
    border: 1px solid #d0d0d0!important;
    }

    Second one: The way it's written it does nothing

    Third one: hides the quickpost button  where and what that button is I don't know

    Fourth one: Does nothing.. Half of the code is missing

  • Okay, since I'm moving to DS, I won't need the First One.  Check!

    On the fourth one, this is the code right above it. There's nothing below it.  Does it do anything now? LOL 

    #xg.account .xg_module_body {
    background:url(http://api.ning.com/files/3Dzc1qZMiTMHZj6dSisxo87mnJ47VUaCOSEmKmUpo...*KekzjYRWGblaP9tZ28GmlvNAtCx18iN-IL1S6Z-fC0t/logon5.jpg) top center;
    background-repeat:no-repeat;
    /* Optional Font Color, Font Size, and Font Weight */color:#000000;
    font-size:11px;
    font-weight:bold;
    }

    Thanks so much George. Those other ones apparently aren't vital to my appearance, because I don't seem to miss them on my test network. 

    • they don't appear to go together.

      To comment on the second code Monica is semi-correct if you add a comma after div.account it will affect both The account module and the head of your network you will also need to add (px) after the zero to complete the code. but like I said the way it's written it does nothing. If you want zero padding on your head and your Sign-up & Sign in replace that code with this one

      div.account, #xg_head {padding:0px !important;}

  • Hey Dianne, 

    The first one, div.xg_module, applies customizations to the modules on your network. For example, the CSS string you give for this will add a 1-pixel gray border around each module on the network. 

    The second one, #xg_head, affects the header section of your network, where you add your network logo and header background image. The CSS string above with "padding: 0 !important" ensures that there be zero padding around your header section. The div.account part of that affects the network's sign up and sign in pages. Padding adds cushion around the content so this essentially will push stuff down a bit on the screen. There should be a comma between the two properties, otherwise it doesn't seem to do anything. 

    The third one, select.quickpost, affects the Latest Activity feed on your network if you're using the Classic Appearance Editor.  

    The fourth one doesn't have any location specified for it, so I think that is just intended to apply everywhere, but as a back-up only, in case the other specification doesn't apply. I took a peek at your network and see that you have this specified for the #xg.account .xg_module_body area of your network, in case an image added doesn't show up.

    I don't see that class anywhere on the network, so it might be a defunct class. I do see, though, that the #xg_module_account.xg_module class affects the personal member account module that appears on every page of your network, which maybe is what you were going for. 

    Hope this helps! You might also want to see the breakdown of classes of a Ning Network at http://go.ning.com/studio/docs/overview/html_structure.html#.

    -Monica

    • Thanks guys!  My conclusion is that these pieces of code can be safely dumped when I make the transition to Design Studio. LOL  Most don't seem to be doing anything drastically important that I will miss.

      With code number one (the module border), I have that ability built into DS, so that one's definitely gone.

      I appreciate the thorough explanations, though.  It gave me a little more understanding, although I'm still a universe away from truly "getting" it.

      :D

This reply was deleted.

Search the Creators Network

Latest Activity

Steve Hargadon replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"For all those with 500 errors (which includes about half of my own networks right now) - my previou…"
1 hour ago
Suki Winthrop replied to Just Asking's discussion Big Brother Much?
"What comments are you referring to?"
1 hour ago
Chazz replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"Donna. I am on the group Ex Creators now, and they are helping me search for a platform that will f…"
2 hours ago
Donna Mac replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"Oh I understand why some browsers might work better for some, etc.,  but it just seems easier to me…"
2 hours ago
Suzie Nielsen replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
" This is the way I understand it.... I have one member using TOR, and the rest are on Chrome...some…"
2 hours ago
Frank replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"Certainly not an all-purpose measure, I agree. If your site is down no browser will reach it. But f…"
3 hours ago
Donna Mac replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"A smaller not well known browser is not the answer.  If it is down, it is down and not the problem…"
4 hours ago
Frank replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"As a stopgap measure for folks who are unable to reach their Ning site, our members have reported s…"
4 hours ago
GASMAN replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
""500; Unepected Errors" plague my main site but not my auxilary sites. Why is that? Are you targeti…"
5 hours ago
admin replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"Hi,
As your first priority please stabilise the existing estate.
I wanted to see how much I have be…"
6 hours ago
Roxanne Furlong replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"My site was working this morning like a champ, now all I get is the 500 error message. Where the he…"
6 hours ago
Ruud Janssen is now a member of NING NETWORKS EUROPE
10 hours ago
Boris Agranovich replied to Boris Agranovich's discussion Change nofollow links to dofollow links
"Thanks The Builder,

Should I put it in the customs code of my site?
If this so, than all outbound…"
17 hours ago
Chazz replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"Thank you Fire-Tech! I don't understand why I didn't Pick it up like I did everything else. This sh…"
yesterday
Fire-Tech replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"Find PHP classes you like here. Add to wishlist. Wait for them to go on sale for $10 if you don't w…"
yesterday
Suki Winthrop replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"Roxanne not sure what exactly you r asking to george, but- if you have a ning 2 site you can use th…"
yesterday
Donna Mac replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"I totally love Spruz...however....the only thing that I am bugged about is there is no way to send…"
yesterday
Chazz replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"I would like to be able to learn PHP.. I can't afford to take classes to learn it. What would be a…"
yesterday
Chazz replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"I have been exploring Spruz, Fingers now crossed, I haven't had any spammers yet. When I explored D…"
yesterday
Chazz replied to The Ning Team's discussion Exciting News About Ning + Cyndx LLC
"I have actually had responses. Thankfully. Usually it took several days for the site to become acce…"
yesterday
More…