Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Forums > Hide Widgets When not viewing Forum Groups
Mottie (SuperAdmin) 7/17/2011 7:48 AM EST : Hide Widgets When not viewing Forum Groups
ACK!
Mottie
Posts: 3883

0
Like

0
Dislike

Hide Widgets When Not Viewing Forum Groups

GuildPortal admin site link to the original post

Simple and basic, this code hides the named widgets when you are viewing any forum topics, subforums or posts.


This is now a Mod
Control Panel > Site Mods > Get Site Mods >
Look for "Hide Non-Forum Widgets"


Code

The following code is in the Customizable Code tab of the Mod.
<script>$(function(){$.hideNonForumZones({

// When viewing forum topics, this will hide side content zones, when true
topicsHideSides : true,

// When viewing forum topics, this will hide all widgets in the same column as the forums, when true
topicsHideSameColumnWidgets : true,

// When viewing a forum post, this will hide side content zones, when true
postsHideSides : true,

// When viewing a forum post, this will hide all widgets in the same column as the forums, when true
postsHideSameColumnWidgets : true,

// Enter the Title of the widget to hide. The title must exactly match the widget title - capitals & spaces
widgetTitlesToHide : ""

});});</script>
Customizing
  • Note: This mod is compatible with the "Toggle view of side content" mod.
  • When you first open the Forums page, you are looking at the Forum Groups view.
  • After selecting a forum or subforum in the Groups view, you'll see the Topics view.

    • Set the "topicsHideSides" option to true to completely hide the side zones in the topics view. Set to false to not do it.
    • Set the "topicsHideSameColumnWidgets" option to true to hide all other widgets within the same zone as the forum widget while in this topics view.

  • From the Topics view, clicking on any post will put the forums into the Post view.

    • Set the "postsHideSides" option to true to completely hide the side zones in the post view. Set to false to not do it.
    • Set the "postsHideSameColumnWidgets" option to true to hide all other widgets within the same zone as the forum widget while in this post view.

  • The "widgetTitlesToHide" option allow you to enter the title of the widget(s) to hide

    • These widgets are hidden when the forums are not in the Groups view, i.e. it is applied to both the Topics and Post views.
    • To include more than one widget, separate the titles with a comma.
    • The titles are case sensitive and will only match the widget title text, so "News" will hide the "Guild News" & "Site News" widgets, but not "news". 
    • Example use:

      widgetTitlesToHide : "Who's Online, Guild Information, Contacts"

    • Please note that even though this mod is compatible with the "Toggle view of side content" mod, hiding widgets using this option will not restore their visibility when toggling the side content.

Edit (1/6/2012): Changed instructions to match the mod options.

Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%