Customers SupportDocumentation




Reply
 
Thread Tools
  #1  
Old 25-02-2009, 02:07 AM
Member
 
Join Date: May 2008
Posts: 15
Please can you help. ( regarding forum category collapse )

On forumhome, to the right of all forum categories, should be forum collapse.

But it isnt appearing, we have modified the code, using hacks off vb.org, but the tcat collapse obj doesnt appear on the webpage, yet it is within the template.

Its kind of weird.

Heres the code from forumhome_forumbit_level1_nopost

Code:
<if condition="$forum[forumid] != 1">
</table>
<br />
 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
</if>
<tbody>
    <tr>
        <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
            <if condition="$childforumbits">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
            </if>
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[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>
</tbody>
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$vboptions['showmoderatorcolumn']">
    <tr align="center">
      <td width="5%" class="thead">&nbsp;</td>
      <td width="40%" class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
      <td width="25%" class="thead">$vbphrase[last_post]</td>
      <td width="10%" class="thead">$vbphrase[threads]</td>
      <td width="10%" class="thead">$vbphrase[posts]</td>
      <td width="10%" class="thead">$vbphrase[moderator]</td>
    </tr>
$childforumbits
</tbody>
    <else />
       <tr align="center">
      <td width="5%" class="thead">&nbsp;</td>
      <td width="50%" class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
      <td width="25%" class="thead">$vbphrase[last_post]</td>
      <td width="10%" class="thead">$vbphrase[threads]</td>
      <td width="10%" class="thead">$vbphrase[posts]</td>
    </tr>
$childforumbits
</tbody>
</if>
I do realise the above is slightly different from the original source, but just cant figure out why we cannot get the collapse icon and cose to function and be viewable on forumhome.

Regards Ste

I have removed /tbody from center of that code, and tried that ( as could be a tbody clash thing, but no luck
Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Thread Form for forum category perfphysio Custom Work Inquiries 1 27-12-2008 09:52 PM


All times are GMT. The time now is 02:22 PM.