Current time: 04-17-2014, 04:03 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 14 Votes - 3.86 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] jQuery collapsible sidebar
07-08-2010, 05:43 PM
Post: #11
RE: [Tutorial] jQuery collapsible sidebar
Thanks! It took a few more lines of code than I thought it would, but at least it works Toungue
And plus your method is slightly simpler Toungue
Visit this user's website Find all posts by this user
Quote this message in a reply
07-08-2010, 05:45 PM
Post: #12
RE: [Tutorial] jQuery collapsible sidebar
*And messier xD Seriously though, top stuff. I'm interested in how you managed to add cookies - hope you don't mind I'm pilfering the code for my personal wordpress theme xD

Visit this user's website Find all posts by this user
Quote this message in a reply
07-08-2010, 05:53 PM
Post: #13
RE: [Tutorial] jQuery collapsible sidebar
This is spot on! Thanks Joshee and euantor! Smile

I'm using it here with some minor modifciations - http://petforums.biz/index.php
Find all posts by this user
Quote this message in a reply
07-08-2010, 06:11 PM
Post: #14
RE: [Tutorial] jQuery collapsible sidebar
(07-08-2010 05:45 PM)euantor Wrote:  *And messier xD Seriously though, top stuff. I'm interested in how you managed to add cookies - hope you don't mind I'm pilfering the code for my personal wordpress theme xD

Haha yeah it is a little messier.. I tried using .removeClass() and .addClass() but that didn't work. I also tried using the .attr() and changing the class using that, but that still didn't work, so I just had to do it the hard way Toungue
I actually learned how to do collapses and cookies from a tutorial on shopdev. Cookies are so easy it's amazing.
http://www.shopdev.co.uk/blog/cookies-wi...e-layouts/
(You need the jQuery cookie plugin included in the header as well for it to work.)

(07-08-2010 05:53 PM)AJS Wrote:  This is spot on! Thanks Joshee and euantor! Smile

I'm using it here with some minor modifciations - http://petforums.biz/index.php

No problem, added the link to the OP Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
07-11-2010, 03:27 PM
Post: #15
RE: [Tutorial] jQuery collapsible sidebar
Yea it's a little messy. When refreshing the page, the sidebar appears for a second before it disappears. Any way to fix that?

Need web hosting? Try MyBBWebHost!
#1 for Running MyBB Communities
The world's only premium web host dedicated to MyBB forums.
Visit this user's website Find all posts by this user
Quote this message in a reply
07-11-2010, 08:52 PM
Post: #16
RE: [Tutorial] jQuery collapsible sidebar
Possibly. Let me look into it. I know of a way that might work but I will test it first.
Visit this user's website Find all posts by this user
Quote this message in a reply
07-11-2010, 09:48 PM (This post was last modified: 07-11-2010 09:48 PM by querschlaeger.)
Post: #17
RE: [Tutorial] jQuery collapsible sidebar
Nice tutorial, but why not using the Prototype JS framework? It's included and loaded with MyBB itself...
I don't want to add a second JS framework. Just waiting for a Prototype solution. Wink
Visit this user's website Find all posts by this user
Quote this message in a reply
07-12-2010, 01:19 AM
Post: #18
RE: [Tutorial] jQuery collapsible sidebar
(07-11-2010 09:48 PM)querschlaeger Wrote:  Nice tutorial, but why not using the Prototype JS framework? It's included and loaded with MyBB itself...
I don't want to add a second JS framework. Just waiting for a Prototype solution. Wink

1. jQuery is easy.
2. I don't know how to use Prototype.
3. I already know enough jQuery to do this.
Visit this user's website Find all posts by this user
Quote this message in a reply
07-20-2010, 08:54 PM
Post: #19
RE: [Tutorial] jQuery collapsible sidebar
Sorry but how to remove the sidebar?
http://www.moviemania-pt.com/

Interested in making part of a new forum, about cinema? Send me a private message.

Interessado em fazer parte de um novo fórum, sobre o Cinema? Enviem-me mensagem privada.
Find all posts by this user
Quote this message in a reply
07-20-2010, 08:59 PM
Post: #20
RE: [Tutorial] jQuery collapsible sidebar
Just revert the templates back to default, and delete the files you uploaded.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread:

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication