#basket
New messages Members Forum rules Search RSS
  • Page 1 of 1
  • 1
Sub-forum
SirDarknight(Tonmoy)Date: Thursday, 28.04.2011, 14:57 | Message # 1
Group: Verified
Posts: 167
Awards: 6
Status: Offline
1. Create a main board for holding sub-forums.
2. Create boards which will be your sub-forums.

3. Save your sub-forum urls - will be needed for links.

4. CP -> Customize Design -> General appearance of forum pages.
5. Find the $BODY$ code (F3 for search) and paste this code after it:

For one sub-board:

Code

<script type="text/javascript">
link=document.getElementsByTagName('a');
hideForums=new Array('sub_forum_name');
         for(k=0;k<hideForums.length;k++){
           for(i=0;i<link.length;i++){
             if(link[i].className=='forum' && link[i].innerHTML==hideForums[k]){
               link[i].parentNode.parentNode.style.display='none';
             }
           }
         }        
</script>

For many sub-boards:

Code

<script type="text/javascript">
link=document.getElementsByTagName('a');
hideForums=new Array('sub_forum_name','sub_forum_name');
         for(k=0;k<hideForums.length;k++){
           for(i=0;i<link.length;i++){
             if(link[i].className=='forum' && link[i].innerHTML==hideForums[k]){
               link[i].parentNode.parentNode.style.display='none';
             }
           }
         }        
</script>

6. Go to your forum - the sub-boards you created are gone. (Invisible)
7. CP -> Forum Module -> Management of forums and sections.
8. Edit the board you want to hold the sub-boards. In description:

Code: [Select all]
<br>Subforums:
<a href="url for subforum">name</a> |
<a href="url for subforum">name</a>

Note: You can use any other system, like

and
but only HTML is supported.

9. Modify:
url for subforum - to your sub-boards url.
url for subforum - to your sub-boards url.

name - to your sub-boards name.
name - to your sub-boards name.

10. If you want to have only one sub-board:

Code
<br>Subforum:        
<a href="url for forum">name</a>

Ask Any Question You Want!


Please Give Me A Reputation or Award If My Post Helps You
 
  • Page 1 of 1
  • 1
Search: