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.

  • 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.

Search the Creators Network

Latest Activity

Nor Cal Social Media left a comment for Eric Sewerz
"Ha ha he got you all bitches."
1 hour ago
Eric Sewerz left a comment for Eric Sewerz
"Heh. Just goofing off everyone. It's really me. I'm so thrilled that all of you saw this and reache…"
2 hours ago
Anam replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Ning have replied to me as follows

Thanks for writing. I have taken a look into group comment wall…"
3 hours ago
Fire-Tech left a comment for Eric Sewerz
"Nice! Maybe Eric was the real Dr Who?"
3 hours ago
Fire-Tech replied to Fire-Tech's discussion 3.0 Tip: Relocate Your Comment & Reply Buttons
"Exactly. Shouldn't have to code the basics, but I doubt it would be high on their list of prioritie…"
3 hours ago
Nor Cal Social Media replied to Fire-Tech's discussion 3.0 Tip: Relocate Your Comment & Reply Buttons
"Yep. Good tip. Basic UX. Same goes for Twitter/Facebook being at the top of posts when they should…"
3 hours ago
ceri shaw left a comment for Eric Sewerz
"Is this perhaps the true face of Mode? Customers are 'fans of the finger? Subtle :)"
4 hours ago
ceri shaw replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Yes very interesting indeed....clearly the Ning customer service rep was being 'economical with the…"
4 hours ago
steve replied to John Bizley's discussion A few tweaks I made to my activity feed
"really nice site john,, im actually moving my IPB forum with 600 members over to ning 3 in a bit an…"
5 hours ago
Fire-Tech replied to Fire-Tech's discussion 3.0 Tip: Relocate Your Comment & Reply Buttons
"Lol..yeah, a no brainer. Wish Ning stayed on Creators here so they could use the product and see so…"
5 hours ago
steve left a comment for Eric Sewerz
"it is odd this because he says he want help with his test network breaking the first rule of netiqu…"
6 hours ago
Russell Rager replied to John Bizley's discussion A few tweaks I made to my activity feed
"Your site looks awesome John! Thanks for sharing. How did you get your posted Youtube links to show…"
6 hours ago
Strumelia left a comment for Eric Sewerz
"I find it a bit disturbing, because it seems as though someone has taken over Eric's actual profile…"
6 hours ago
Writer Chick {Diane} left a comment for Eric Sewerz
"I'm snickering at the name of the Creator of that network.  *snort*  Very creative word play. ;) "
8 hours ago
Lea Scott replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Interesting Ceri that Ning told you the status update was disabled globally...mines still working l…"
9 hours ago
SweetPotato left a comment for Eric Sewerz
"V. Strange.

Will the real Eric please stand up.

SP"
9 hours ago
Strumelia replied to Asil's discussion Photo Slideshows Fail in NING 2.0
"oops and now it's gone for me again, just as you said."
9 hours ago
Strumelia left a comment for Eric Sewerz
"Are you the same Eric that used to be a moderator here?  --Or are you someone who took over his pro…"
9 hours ago
Garfield Creator left a comment for Eric Sewerz
"I just looked at your site. I would call a plumber right away. There was a community moderator here…"
9 hours ago
Eric Sewerz left a comment for Eric Sewerz
"SOMEONE PLEEZ HELP ME FIX MY TEST NETWORK!!!! IT'S BEEN DOWN FOR OVER 24 HOURS!!!! http://thepuppet…"
9 hours ago
More…