The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2009, 12:19 PM
QtrCafe QtrCafe is offline
Junior Member
 
Join Date: Mar 2006
Location: United States
Posts: 19
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default Making Subforums Collapsible

Hello All,

In my previous thread I was trying to figure a way to get the navigation system I would like to have. Well now I am encountering another issue where I have so many subforums of subforums and will be creating even more. Most probably 500+ hence I would like to use the collapsible boxes in order to get things looking neat

I have tried using the below code however the code will only work on the first category. If I click in the last category the effect will take place for the first as well. I think the code is not picking up all the categories IDs. I would appreciate it if someone could help.

Here is the code that I am using for GARS_forumbit_level1_post
Code:
<tbody>
    <tr>
        <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
            <a style="float:$stylevar[left]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')">$forum[title]</a>
            <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
            <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </td>
    </tr>
    <if condition="$childforumbits">
        <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}; display:none">
        <tr>
            <td>
            $childforumbits
            </td>
        </tr>
        </tbody>
    </if>
</tbody>
Regards,
Omar

Last edited by QtrCafe; 07-16-2009 at 04:15 PM..
Reply With Quote
  #2  
Old 07-19-2009, 08:43 AM
QtrCafe QtrCafe is offline
Junior Member
 
Join Date: Mar 2006
Location: United States
Posts: 19
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default

I got it

if anyone is interested then here it is

Code:
<div class="tcat">
   <if condition="$childforumbits">
   <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forum[forumid]')"><img id="collapseimg_forumbit_$forum[forumid]" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forum[forumid]}.gif" alt="" border="0" /></a>
   </if>
   <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
   <if condition="$show['forumdescription']"><span class="smallfont"> &raquo; $forum[description]</span></if>
   <if condition="$show['subforums']"><span class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</div>
<div class="border_left_top"<if condition="!$show['collapsable_forums']"> id="collapseobj_forumbit_$forum[forumid]" style="{$collapseobj_forum[forumid]}"</if>>
<if condition="$childforumbits">
$childforumbits
</if>
</div>
thanks to the guys at vbcodex.com

Last edited by QtrCafe; 07-19-2009 at 08:46 AM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Full content of the first post in a collapsible section on top of each page? Tigratrus Geek Article and Review System 1 05-13-2009 06:34 PM
Issues with showing the subforums. JirQUEST Geek Article and Review System 4 06-30-2007 01:21 PM
removing the dash besides subforums kidmercury Geek Article and Review System 1 04-27-2007 04:03 PM
Categories and Subforums CedricFP Geek Article and Review System 3 03-12-2007 11:05 AM
Different ratings questions for different subforums? bboy Geek Article and Review System 2 09-22-2006 10:10 PM


All times are GMT. The time now is 03:35 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.