Announcement

Collapse
No announcement yet.

Collapse Status won't be saved

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Collapse Status won't be saved

    Hello,

    I created a 'forumhome_forumbit_level3_*' template-set.
    I edited 'forumhome_forumbit_level2_nopost' and added the ability to collapse.

    Everything seems to be okay:
    • W3C conform
    • It works
    But... no status is saved. If I collapse a category in level1 - the status would be saved. I could reload the page and the forum is still collapsed.

    But in level2... status won't be saved. I can collapse, the categoy is collapsed. I reload the page, the category isn't collpased anymore.

  • #2
    Could you post the code you are using for the collapse control?
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      forumbit_level2_nopost
      Code:
      <tr>
          <td colspan="5" width="100%" style="padding: 0px; margin: 0px;">
              <table cellpadding="6" cellspacing="1" width="100%" border="0">
                  <tbody>
                      <tr>
                          <td width="40" class="tcat"><span class="smallfont">&nbsp;</span></td>
                          <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">5<else />4</if>">
                              <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><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>
                  <!-- Hier beginnt Level3 -->
                  <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
                      $childforumbits
                  </tbody>
                  <!-- /Hier beginnt Level3 -->
              </table>
          </td>
      </tr>
      and forumbit_level3_post
      Code:
      <!-- Level3 Post -->
      <tr align="center">
      <td width="40" class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
          <td width="100%" class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
              <div>
      <if condition="$forum['fh_banner']"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img src="images/fhbanner/$forum[fh_banner]" alt="$forum[fh_url]" border="0" /></a><else /><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a></if>
      <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
              </div>
              <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
      <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
      <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
          </td>
          <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
          <td class="alt1">$forum[threadcount]</td>
          <td class="alt2">$forum[replycount]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
          </if>
      </tr>
      $childforumbits
      
      <!-- /Level3 Post -->
      Thanks

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X