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

Forum

Hello Creators!

I'm happy to finally provide my very first TIP, and it is HUGE!!

It's not fully functional at the moment, and hopefully by sharing this TIP with you, we will all benefit from it's awesomeness!

So what is the TIP you ask? Well, you're in luck, because I'm here to tell you! :)

How about giving your members the option of selecting style sheets? This will allow for multiple site designs, like for example, having a dark theme, a light theme, and a holiday theme.

Your members can select the appearance of your network that they most prefer, and best of all, a cookie is installed so that your network will always remember their choice of style sheet and load it all the time when they visit!

How freakin AWESOME would that be?

Well, it's possible, I've had it working (somewhat)

I have two things on my own network that are conflicting with this style sheet switching ability.... We'll call it Styleswitcher from here on out, since that's what the creator of this script has called it!


The first conflict, my ningbar. My ningbar is fixed to the top of the screen, (stays in sight always)
but when styles 2 and 3 are selected, the ningbar will not stay fixed, and everything I have in my ningbar scatters.

The second conflict, my jquery tabs. If the page takes too long to load, the jquery script and the styleswitcher script have conflicts, and the jquery tabs will fail.

These above issues will effect many of us that will use this TIP, so in order for it to be complete, we need to work together to figure out how these two conflicts can be solved, so that all of us may benefit from it's greatness.

OK, first off, let's start by linking to the original source of this script. I came across it and many other awesome sites while doing research on the matter.

CLICK HERE to see where I found the scripts.

So the first thing you want to do, is save the two .JS files, and the .CSS files. (view page source of the link above) Call them what you want, and save to your "File Manager."
This is so that everything is hosted by you, and you won't lose function should that guys script source be deleted.

Second, you want to put this into your custom code. (I currently put it at the very bottom, so it loads last, however if the page takes too long, my jquery tabs will not load properly and malfunction)

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
<link rel="stylesheet" type="text/css" href="styles1.css" title="styles1" media="screen" />
<link rel="alternate stylesheet" type="text/css" href="styles2.css" title="styles2" media="screen"
/>
<link rel="alternate stylesheet" type="text/css" href="styles3.css" title="styles3" media="screen"
/>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="styleswitch.js"></script>

Make sure you change the 3 style sheets to your own style sheets,
and change the two .js files to the ones in your file manager.

Then we want to call to the script, and place links somewhere on our network,
so we need to paste this into a text box or ad box somewhere...

<p>Choose a different stylesheet:</p>    
<ul>

<li><a href="serversideSwitch.html?style=style1" rel="styles1" class="styleswitch">styles1</a>

</li>
<li><a href="serversideSwitch.html?style=style2" rel="styles2" class="styleswitch">styles2</a>

</li>

<li><a href="serversideSwitch.html?style=style3" rel="styles3" class="styleswitch">styles3</a>

</li>
</ul>

the only things you want to change with that code (calling to the scripts) is the names
of the links, "style1" and "style2" can be "light" "dark".

That should just about do it... there are conflicts with other javascripts, such as Ningbar
scripts, and jquery tab scripts, so it's not flawless. If you aren't using any other scripts
or jquery, you will likely not have many problems.

Lets work together to work out the kinks, as this my first TIP, please help me to complete it.

Thank you and good luck everyone!

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

Join Ning Creators Network

Email me when people reply –

Search the Creators Network

Latest Activity

Edie2k2 replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"I'm very grateful for the fact that it still works. No complaints whatsoever... Best platform going!"
32 minutes ago
Sam Alexander left a comment for Sam Alexander
""
51 minutes ago
doone replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Ning still works, at least.  If you have a Ning 3 or a custom Ning 2 it is not that bad, IMO.  It w…"
4 hours ago
Tu Thai, Roger Crawford, keila and 1 more joined Ning Creators Network
10 hours ago
Katcha Sanderson replied to Katcha Sanderson's discussion Multiple forums in single network?
"Thanks for the realistic feedback. I wanted to know what my network can and cannot do in regards to…"
11 hours ago
JFarrow replied to David Carr's discussion Going to spam
"sometimes you can accidentally mark a message spam in gmail and all will go to spam... go to your s…"
11 hours ago
Kos replied to David Carr's discussion Going to spam
"It seems to happen, depending on the users security settings.  I'm always having to tell people to…"
12 hours ago
Paul Asher replied to James Quack's discussion Not able to Import Forums into Buddypress from Ning .JSON FIles
"No probs. Hope WP works out for you but if it doesn't don't forget Jamroom ;-)"
13 hours ago
James Quack replied to James Quack's discussion Not able to Import Forums into Buddypress from Ning .JSON FIles
"Thanks Yin. I will contact them.

And thats to you too Paul! That is a greattttt TIp"
14 hours ago
Paul Asher replied to James Quack's discussion Not able to Import Forums into Buddypress from Ning .JSON FIles
"Remember that by default Ning only archive a maximum of 200 comments per item. I think you have to…"
17 hours ago
SweetPotato replied to Katcha Sanderson's discussion Multiple forums in single network?
"I'd use groups in Ning 2.0. Three separate groups each with their own forum. Sadly, there is no way…"
23 hours ago
dave replied to George H. Compton IV's discussion (tip for 3.0) floating navigation menu & ningbar -- two code formats to choose from HTML or CSS
""
yesterday
Kos replied to Katcha Sanderson's discussion Multiple forums in single network?
"2.0 does not allow it.  3.0 does (allow for multiple forums).  Sadly Ning has suspended migrating f…"
yesterday
Writer Chick {Diane} replied to Crystal's discussion Welcome to Creators 3.0!
"If you can't access your network because of domain setting errors, use the link below. That will gi…"
Sunday
Writer Chick {Diane} replied to Satheesh Kumar's discussion Change in Domain Name
"If you can't access your network because of domain setting errors, use the link below. That will gi…"
Sunday
Kwan Yin replied to James Quack's discussion Not able to Import Forums into Buddypress from Ning .JSON FIles
"Hi James,
I'm doing the same thing, slowly moving from Ning to wordpress / buddypress.
I can thorou…"
Saturday
Garfield Archivist replied to Crystal's discussion Welcome to Creators 3.0!
"Ok, if you would like me to take a look send me a private message. However, even looking at all you…"
Saturday
Phyllis Freeeman replied to Crystal's discussion Welcome to Creators 3.0!
"Thanks for the help Garfield.  My ning site is just a portion of a larger website that I run.  It w…"
Saturday
Garfield Archivist replied to Crystal's discussion Welcome to Creators 3.0!
"I'm not sure what your specific situation is I'm sorry to say. I am trying to reread what you have…"
Saturday
Phyllis Freeeman replied to Crystal's discussion Welcome to Creators 3.0!
"Problem is that my network went down when I migrated my website to a new server.  I can't login to…"
Saturday
More…