vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   mibbit.com collapsible box (https://vborg.vbsupport.ru/showthread.php?t=185434)

cynthetiq 07-15-2008 08:29 PM

mibbit.com collapsible box
 
1 Attachment(s)
I was following the idea for creating a collapsible box to put on forumhome and also a chat page.

I'd like to move the collapse button from the top line into the box header itself and remove the TFP CHAT completely, but can't seem to figure out where to put it.

Can anyone assist?

Code:

<!-- mibbit box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tbody>
<tr>
<td class="tcat">TFP Chat</td>
<td class="thead">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chat')"><img id="collapseimg_forumhome_chat" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chat].gif" alt="" border="0" /></a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chat" style="$vbcollapse[collapseobj_forumhome_chat]">
<tr>
<td class="alt1" width="100%">
<table class="tborder" cellpadding="$stylevar[cellpadding]" width="100%">
<thead>
    <tr><td class="tcat"><strong>#TFP</strong></td></tr>
</thead>
<tbody>
    <tr><td class="alt1"><iframe width="100%" height=280 scrolling=no style="border:0" src="http://embed.mibbit.com/?server=irc.shadowfire.org&channel=%23tfp&nick=TFPUserName"></iframe></td></tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<!--This is the section of the code that we are going to look at -->


Opserty 07-16-2008 08:44 AM

But does that bit not disappear when you collapse the box? (So how will you open it again :p)

cynthetiq 07-16-2008 11:44 AM

LOL yes, but I don't want the whole thing to disappear.

I'd like the #TFP to be the bar that it all collapses to instead of TFP CHAT.

Opserty 07-16-2008 01:19 PM

Collapsing Elements - There is a section for tables on the next page.

cynthetiq 07-16-2008 08:24 PM

thanks :) that worked great! I now have an embedded mibbit.com IRC client on our big board.

demo:
http://www.tfproject.org/tfp/index.php


All times are GMT. The time now is 01:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01063 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete