Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
This Tip came word-for-word from the following link, on Ning Help. You should check the site out. They offer all kinds of great tips and helpful information. I'm only adding here for your convenience. Ning Help Link - Using Images as Module Headers
Using Images as Module Headers
You don't always have to use regular text as a header for your modules. Using CSS you can use a graphic as your module header as well. Here's how.
First, you'll want to upload the graphic to Ning server. Because we're uploading the graphic in a non-standard way, we'll be using a work-around: We'll upload the image from a blog post. Once that image is uploaded, it will always be on the server, even if you delete the blog post. We'll use that file to
1. Create a new blog post and use the "upload file" button to upload your graphic file. You can use all the standard graphic image types: JPG, GIF and PNG files all work well.
2. You should see a link to the file inserted into your blog entry that starts with this: http://api.ning.com/files/ Copy that link and delete the blog post.
3. Now that we have the image, we can actually add the CSS that will replace the header with the graphic. But first, we'll need class name of the module of the graphic you want to replace:
Module Name | Class Name |
---|---|
Blog | .module_blog |
Members | .module_members |
Photos | .module_photo |
Groups | .module_groups |
RSS | .module_feed |
Forum | .module_forum |
About this network (right column) | .module_about |
Recent Activity | .xg_module_activity |
HTML Textbox | .html_module |
.module_forum .xg_module_head {For the folks that want to see an example of a network at work using graphics headers, check out http://cssdemo01.ning.com/ - you can also use the Firefox extension Firebug to take a look at the CSS properties of the module headers. Hope this helps!
background-image:url([image url]);
background-repeat:no-repeat;
height:21px;
}
.module_forum .xg_module_head h2 {
text-indent:-9999px;
}
Tags:
Thankx! Maybe because it's early and caffeine's not in the system yet, I'll come back and re-read later. In the meanwhile, it looks like somebody's got a spambot on their network: http://cssdemo01.ning.com/profile/JeanneHolloway
I am an idiot... I see i need to upload on a blog... duh...
For video use same code and .module_video
For music, I can't remember if it's possible. It's a flash module, but if it has a normal header, try .module_music or just .music
You may enjoy this premium tip:
http://jensocial.com/group/premiumningtipsbyjen/forum/topics/add-sp...
Best,
Jen
Hi Jen - do you know if there's any way to get the image to extend past the top of the module header? As an example, have a look at www.jeepforum.com . It's not a Ning site, but gives you the idea.
Thanks in advance!
Rob
Hi Robert, Unfortunately I can't think of a quick fix with CSS, due to the way the classes are assigned. If I come up with a way, I'll let you know.
Best,
Jen
Thanks anyways Jen! I've just made my icons fit within the module header bar - I think they look great without sticking out over the top. The only one that's giving me fits is the events module header. Adding an picture to the events module bar causes it to display in the Month bar as well. Grrr... :)
Rob
See if removing it with CSS will work. Check all browsers:
.module_events div.calendar .calendar_head {background-image:none!important;}
Best,
Jen
Holy snap! You're the best! That code worked beautifully. No more image over my month...
Thanks!
Rob
Welcome to
JenSocial: Social Web Directory and Ning Tips
Posted by JenSocial on May 7, 2018 at 8:35pm 9 Comments 1 Favorite
Posted by JenSocial on January 6, 2017 at 4:00pm 10 Comments 1 Favorite
Posted by JenSocial on October 22, 2016 at 1:05am 0 Comments 0 Favorites
Posted by JenSocial on September 17, 2016 at 12:00am 26 Comments 1 Favorite
Posted by JenSocial on August 31, 2016 at 3:30pm 13 Comments 0 Favorites
Ning 3.0 Tip - Add Buttons/Links Below Status Update (Quick Links to Add Photos, Posts, Discussions)
Started by Themes - Rosas Negras Mar 20, 2021. 0 Replies 0 Favorites
Started by JenSocial. Last reply by Kos Dec 6, 2016. 64 Replies 4 Favorites
Started by JenSocial. Last reply by JenSocial Jul 26, 2016. 41 Replies 1 Favorite
© 2024 Created by JenSocial. Powered by
© Copyright JenSocial.