Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Hide/Show Widget Contents
Fenris Nihilus (Guild Admin) 5/16/2011 7:23 PM EST : RE: Hide/Show Widget Contents
GP User: Jackel159
Jackel159
Posts: 86
Posts With Wolves

Great that fixed everything thanks, now how can I default the widgets to be closed on a fresh page load?
Click Image to Visit Our Eve Corperation: The White Rose Conventicle
TopBottom

Fenris Nihilus (Guild Admin) 6/8/2011 11:26 AM EST : RE: Hide/Show Widget Contents
GP User: Jackel159
Jackel159
Posts: 86
Posts With Wolves

Sorry consider this a bump since I am still looking for an answer weeks later
Click Image to Visit Our Eve Corperation: The White Rose Conventicle
TopBottom

Mottie (MVP) 6/8/2011 1:00 PM EST : RE: Hide/Show Widget Contents
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Hey Jackel159!

Sorry I've been really busy lately and totally forgot about following up with you on this post.

There are two things that will fix your page. First remove the "<script type="text/javascript">" and "</script>" from the custom jQuery code (Control Panel > Custom HTML & Script > Custom Javascript/jQuery > Document Ready Event (I think))

Second thing is your page needs jQuery UI to make the tabs in the "Ore Refining Calculator" widget work... add this to that widget
 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-darkness/jquery-ui.css" type="text/css" />
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
As for having the widgets closed by default... I could do that, but I think it would be better to have the person using the page figure out which ones they want shown and hidden. The script saves the preferences in a cookie so it will remember the settings the next time you go to that page.
TopBottom

Mottie (MVP) 12/10/2011 11:38 PM EST : RE: Hide/Show Widget Contents
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

This mod is named "Toggle Widget Content". And in case you are using it (the admin site is!), I just updated it to stop using cookies and start using the new HTML5 local storage (sorry, it doesn't work in IE8 and older). So now it will remember which widgets were hidden the last time you visited the page.

I updated the plugin, so you shouldn't need to update the mod, but you may have to refresh your browser to update the browser cache.

On note I should mention... the browser shouldn't, but if it does ask, allow it to store information on your computer. This is what the HTML5 local storage does securely so you don't have to worry about any security issues. Anyway all this widget is storing a list of content box titles to hide.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%