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

Forum

NC for Hire

Overriding Ning's Sprite Image

Has anyone ever been able to successfully override Ning's default sprite image to produce different icons throughout the network?

I've grown tired of the default Ning sprite image...would love to know if anyone else has explored this...

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

Join Ning Creators Network

Email me when people reply –

Replies

  • Should be *relatively* simple, just override the one CSS statement that gives the sprite URL with your own url to your image. The tricky bit is creating your own image where all the sprites are the same size and in the same order as Ning's... Otherwise you have a real headache re-defining each sprite's position within your new image.

    On creators, it's this line in the theme css file http://static.ning.com/creators/instances/css/theme-982_1356245232....

    .xg_sprite, .xg_icon, .rich-comment, .rich-comment em, .delete, .smalldelete, .activity-delete, ul.rating-themed, ul.rating-themed a:hover, ul.rating-themed a:active, ul.rating-themed a:focus, ul.rating-themed .current {
    background-image: url(http://static.ning.com/socialnetworkmain/widgets/index/gfx/icons/xg...);
    _background-image: url(http://static.ning.com/socialnetworkmain/widgets/index/gfx/icons/ie...);
    }

    • NC for Hire

      interesting..im gonna see if I can wrap my mind around this when i get back home..thanks Chris..

      • Check out the sprite image. It's one very tall image with loads of small icons. I think there is a large version too, and maybe an icon version, you'll find them with an inspector browsing your site. The positions are critical, as each sprite is simply the whole image as background, positioned exactly e.g.

        .xg_sprite-comment {
             background-position: left -401px;
        }

        slides it up 401px until the comment icon is in view in the element.

        The colour is defined in the png's name in hex, in this case it's 336699, look for the one in your network that matches your theme and go from that. Probably a good day's work in photoshop to replace them all with the images you want.

        • I'm having a stab at this tonight. I'm only weeping a little bit. About halfway through the first file. I'm a little naive when it comes to the way some of this CSS works, but do you think you might know what the difference is between the two files - ie under what circumstances one is used over the other, or do they just complement each other?

          It's horrible to work out, as there appears to be no standard spacing between each icon. You occasionally find that a batch are 16x16, which is convenient, but often there's no logic to them at all. If Ning were still here, I'd ask for a template with guides....

          Did you ever go anywhere with it?
  • Forgive my ignorance....what is the "sprite" image and where is it on Ning sites?

    • The "sprite" image is actually all the little icons you see on the site, all together in one image to make page loading faster and coding simpler. Imagine a very long piece of tape, with lots of little pictures on, all the same size. The envelope icon, the star icon, the alerts icon, the comment icon, the delete, edit, add, view icons and all the rest.  All the little blue pics you see on this page. Then imagine a piece of paper with a hole cut in it, big enough for only one of these images. Hold the paper in front of the tape, and slide the tape up and down. You only see one image at a time. That's how the sprite image is used, with css. See this page for examples http://www.w3schools.com/css/css_image_sprites.asp or open the links in my comment above to see the sprite image for the creators icons. You'll have to zoom in lots as your browser will shrink it to fit in the window... It will be tiny, and on the very left of the page.

  • This reply was deleted.
    • NC for Hire

      ha!  will do.. this post was from 2013 but i suppose others are still interested in it.. great ill check it out John..

This reply was deleted.

Search the Creators Network

Latest Activity

Bizz ( John ) replied to Pat Howlett's discussion talkfunnels.com is Live!
"Hi Pat, nice to see you back. I also came back onto Ning a few months ago once I found out that Mod…"
7 hours ago
Thisisbully replied to Saurabh's discussion Has any one created android ios mobile app ning 3.0
"The guys on here are older than computers lol they do not work on anything mobile on here ,the day…"
12 hours ago
Saurabh replied to Saurabh's discussion Has any one created android ios mobile app ning 3.0
"no one ?"
19 hours ago
Dr. Krishna Kumari Challa replied to Dr. Krishna Kumari Challa's discussion Now I cannot save anything on my network!
"Infact the 'save button is not even reacting when you click on it most of the times! The problem st…"
yesterday
Dr. Krishna Kumari Challa replied to Dr. Krishna Kumari Challa's discussion Now I cannot save anything on my network!
"Yes, I got this reply from you...
Thanks for contacting us.
We have tested the network and especial…"
yesterday
Bizz ( John ) replied to Martin Buzz's discussion Can I limit number of Photos uploaded?
"Hi Martin, do you mean in total or just the amount being uploaded at one time ?"
yesterday
Bizz ( John ) replied to Bizz ( John )'s discussion Why Are The Events Not Listing The Same Way As UpComing In My Events Or Categories ?
"Thanks for the reply Kyrl, I think this is a priority to do as  the way it stands at the moment if…"
yesterday
Kos replied to FedMedic's discussion Members only page is seen by everyone
"We had over 17,000 posts, not including comments.  No way!  lol"
yesterday
Kos replied to Martin Buzz's discussion Can I limit number of Photos uploaded?
"I'm sure there's a way, although I can't say that I've seen it.  If you can't locate it with a sear…"
yesterday
FedMedic replied to FedMedic's discussion Members only page is seen by everyone
"Agreed, it would be hard to leave it behind, however, I could leave it up to our members to manuall…"
yesterday
Kos replied to FedMedic's discussion Members only page is seen by everyone
"The big problem is leaving so much data behind.  Not all the json files function on export so you w…"
yesterday
FedMedic replied to FedMedic's discussion Members only page is seen by everyone
"Yeah, that's what I thought and I agree with you. That canned "cache" excuse is wearing a tad thin.…"
yesterday
Kos replied to FedMedic's discussion Members only page is seen by everyone
"Yes, it's displaying.  Tell Ning to drop the canned 'cache' excuse and get off their backside.  You…"
yesterday
Pat Howlett replied to medicsindex's discussion Ning Wants old Members Back !!! and ,,
"Well it worked on me :]
Saw that new ownership had arrived, saw them taking responsibility for wher…"
yesterday
Pat Howlett replied to Pat Howlett's discussion talkfunnels.com is Live!
"Gota share how fun it is again to be building a community of like minded folk -  I've missed it gre…"
yesterday
Kyryl_Ning_Support replied to Dr. Krishna Kumari Challa's discussion Now I cannot save anything on my network!
"Hi there,
Please check your email address, we have sent the reply on your ticket.
And apologies for…"
yesterday
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Why Are The Events Not Listing The Same Way As UpComing In My Events Or Categories ?
"Hi John,
The task to change the logic of event appearing has been already created however as curren…"
yesterday
Kyryl_Ning_Support replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"Hi there,
It seems that for some reason domain blockage hasn't worked out for that user specificall…"
yesterday
Kyryl_Ning_Support replied to Lisa's discussion WHOLE SITE COMPLETELY VANISHED PLEASE HELP - URGENT RESPONSE NEEDED
"Hi Lisa,
Sorry but unfortunately, we don't know why exactly the domain mapping has stopped working…"
yesterday
Howard Sands replied to Bryce Rubio's discussion A Follow-Up Message from our CEO
"Agreed. I hope the idea gets some traction. "
Thursday
More…