Add Member Account Box Links/Notifications to NingBar, and Hide Account Box - - Saving Space Above Fold (Collaborative Efforts: Jen and Elson)
There are now 3 versions of this code.
Notes: #1 taking the least amount of space in Custom Code Box, and #3 taking the most space (but offers the most features):
What Will This Code Do For Your Network?


Instructions:
Version #1, No Icons, No Notifications (Just Links):
Version #2 No Notifications (Icons and Links):
The safest method of copying code below - - copy/paste from this text file: AddMemberAccountLinks_NingBarIcons.txt
Version #3, Everything (Courtesy of Elson) Icons, Links, and Notifications:
The safest method of copying code below - - copy/paste from this text file: AddMemberAccountLinks_NingBarIcons_ElsonsNotifications.txt
NOTE:The Inbox Notification doesn't show up until a refresh or going to new page.
It took some careful thought to create this tip, like would it affect any other code, etc...Please let me know if this causes any issues.
A special thanks to Elson for adding the code for notifications, and thank you Elliott for helping out with the icons.
I hope you all enjoy this tip! See it live on JenSocial.com.
Jen
Tags: Elson, JenSocial, account module, alerts, friends, hide account box, icons, inbox, invite, links, More…member account, ningbar, ningbar icons, ningbar links, notification, settings
Permalink Reply by Charles Lee on April 12, 2012 at 10:46pm maybe i did something wrong.. but i dont see how.. simple copy past.. lol.. but i only see it when i open the site designer.. then it goes away once i publish.. i waited to see if it would take a min. but it never popped up. any help on this? thanks!! :) http://gamethis.net or http://mygamethis.ning.com
Hi Charles,
Since you said "publish" I think you tried it in your advanced css box in the design studio. You need to put this in your custom code box via your dashboard.
James

Good catch, James!
=)
Permalink Reply by Charles Lee on April 13, 2012 at 1:59pm Thank you!! i am feeling a little slow because of this.. lol.. wow.. well, thank you!! i was wondering! i am going to go do this now!! and Jen, i thank you for your report link as-well! it works wonders for my small but growing gamer's site!! time to go give this a whirl! :)
Permalink Reply by Regi on April 13, 2012 at 6:22pm Thank you so much for this code... Really appreci-love it
Iregi
Permalink Reply by Ed on April 16, 2012 at 5:07am Am I wrong in thinking this is an ideal way to add member-only links? For example a "Help" link for members.
By adding more links to the ningbar am I going to screw everything up?
Permalink Reply by Ryan Sayer on May 5, 2012 at 1:50am This worked well for me with one exception...
When you resize a browser window the links don't stay in the the ning bar, they end up under it
Is there a fix for this?
Is there a way to make your site page scroll under the ning bar?

Hi Ryan,
Not sure what's happening for you. If your NingBar shows within the appropriate viewing area, and you resize the browser window, the links shouldn't wrap. Maybe you're resizing to an unusually small area, not sure. It would probably take some unique code/css just for your site.
Best Regards,
Jen
Permalink Reply by Ryan Sayer on May 5, 2012 at 11:36am Thanks Jen!
It is when you resize it unusually small that they begin to move off the bar depending how many items you have in it. I wanted to put more in there then I should I guess. It is working great otherwise! Can see an example at www.ontiltradio.com.
Now if I could just get the ning bar to stay put I could go take a nap!
Permalink Reply by Bill on May 5, 2012 at 2:02pm This is an awesome tip, thanks Jen and Elson!!
Any thoughts on how we can add the message and request highlight code to the piece in the Ning Bar so new messages stand out, like the Green in the screenshot below?
I'm fairly certain the code I'm using to get the Green highlights when there are new messages is as follows:
/* Inbox Alert */
.xj_messages_present .xj_count_unreadMessages {
background-color: #009900;
border-color: #006600;
border-style: solid;
border-width: 1px;
color: #FFFFFF;
margin-left: 2px;
padding-bottom: 0px;
padding-left: 3px;
padding-right: 3px;
padding-top: 0px;
text-shadow: 1px 1px #3F3F3F;
-moz-border-radius: 2px;
border-radius: 2px;
}
.xj_messages_present small{
background-color: #ffffff;
}
.xj_messages_present small a{
text-decoration:none !important;
color:transparent !important;
}
/* Inbox Alert END */
Best Regards,
Bill
Permalink Reply by Wendy Kruse on June 24, 2012 at 10:38am Maybe it's because I need the Dummies Version of Ning, but - when I copy the code to my CC box, nothing happens. Nothing. Nada. Can someone help?
The ONLY time I have a search bar is when I open the Developer mode in Advanced in my Design studio....?!!?
Permalink Reply by Wendy Kruse on June 24, 2012 at 11:03am Nevermind..............I figured it out! YEA ME! I deserve a gold star for using the ole brain! WOO HOO! And thank you to Jen & Elson for this awesome tool!!!

Corey replied to Maythureinko's discussion 'may I know fixeddate about mid-summer:'


Skye replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
Alexander replied to Alexander's discussion 'Move header image to top!'
Maythureinko replied to Maythureinko's discussion 'may I know fixeddate about mid-summer:'© 2013 Created by Ning.
