modifying the opening/closing logic of a jquery based sliding panel

Soldato
Joined
1 Dec 2003
Posts
6,533
Location
Kent
Hi,

Guys i'm very new to coding in any form and i'm trying to modify the opening logic of a wordpress plugin built on jquery.

The plugin is called TheThe Sliding panels. You can see the jquery here:-

http://www.get-me-heard.com/wp-content/plugins/thethe-sliding-panels/style/js/jquery.ttsp.js

The panel currently auto-opens when the page loads. Which is what I want, however I would like it so that once a user has clicked to close the panel, for it to stay closed even when navigating pages, until they decide to click open again.

I am aware that this would probably need the script to set a cookie when the panel is in the closed state which can then be used to surpress the opening of the sliding panel as the user navigates through the pages of the site until they decide to click to open the sliding panels again.

I would also need the cookie flushed when they leave the website so that the next time they return the panels auto open again.

Essentially I just dont want the users to have to click close every time they navigate throughout the website if they don't want to see the panels.

Can anyone help me with this?

NOTE: The plugin has several panels which you can choose from. I am only using the left panel and the right panel. They are all controlled within the jquery.


Thanks!
 
Last edited:
Looks like a cache/minified JS issue.... The content of the panel is visible on the right hand side.

I've turned off one of the cache settings which has been a bit temperamental.

Try it now gord and let me know if you wouldn't mind. :)

EDIT: you may need to clear your browser cache first too... Also if some other people could report back and tell me if it works fine or not for them that would be really helpful.
 
Last edited:
Hmm, still not working here chap. Just tried across my Win 7 browsers, IE8, FF4 and Chrome, with soft cleared cache and it's still displaying the panel on the RHS.
 
Hmm, still not working here chap. Just tried across my Win 7 browsers, IE8, FF4 and Chrome, with soft cleared cache and it's still displaying the panel on the RHS.

How odd... I'm using Win 7 and the same browsers as you apart from chrome and no issue.

I did have exactly this trouble before installing w3 total caching and using MaxCDN for all my static resources and minification. But I just turned off a couple of settings and it was fine.

Sorry to be a pain but i've now disabled the cache completely just for testing and so I can narrow the issue down. Any chance you could try it one last time for me?

If it does work... Would you happen to have any idea about my original jqury cookie question? ;)

EDIT: If it still doesn't work then it must be the asynchronous javascript loading I have enable through Cloudflare.

EDIT2: OKay now i've completely buggered it lol... The page won't display at all with the cache turn off?!?! How odd.
 
Last edited:
Right problem resolved.... Something was odd with the login form plugin i was using for some reason... Should be okay now but you will just see blank sliding panels for the time being.
 
Back
Top Bottom