aspose file tools*
The moose likes JForum and the fly likes Hiding forums on forum list page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Hiding forums on forum list page" Watch "Hiding forums on forum list page" New topic
Author

Hiding forums on forum list page

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi,

I want to hide the forums of a category on the welcome page (when you clik on the category title, it hides or shows the forums). Any advice to do this ? I suppose that I will modify forum_list.htm and eventually some stuff in forumAction ...

Any tip would be welcome..

Thanks

[originally posted on jforum.net by rhum26]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You should be able to do this with just a template modification. I do this in a lot of my code by wrapping the stuff I want to show/hide in divs and using a couple of styles like:



Then I use some JavaScript code that checks the div's className property and swaps in the style. E.g.:



This function is tied to an onclick event on the page. E.g.:



Contributions back via JIRA always welcome.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thanks, that helps a lot !
[originally posted on jforum.net by rhum26]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiding forums on forum list page
 
Similar Threads
how jforum does redirect to error page
Company Logo
J2ee design pattern - practical implementation question
link to category FAQ on all forums?
Showing a single Category