MyBB.de Forum
Foren minimieren! - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Theme-Diskussionen (https://www.mybb.de/forum/forum-84.html)
+--- Thema: Foren minimieren! (/thread-9047.html)

Seiten: Seiten: 1 2


Foren minimieren! - Osamu - 22.03.2008

Hi,
ich hab mal wieder eine Frage!
Und zwar:
Es gibt doch bei den Foren auf der Hauptseite recht oben beim Tabellen-Header die Funktion das man das Forum minimiert.
Ich würde diese Funktion gerne auch bei anderen Tabelen anwenden können.
Also das heißt wenn ich eine Tabelle erstelle, dass dann der Icon auch recht oben erscheint und wenn man draufdrückt das Forum minimiert wird!

Nur wie mach ich das?


RE: Foren minimieren! - Michael - 22.03.2008

Schau mal hier: https://www.mybb.de/forum/showthread.php?tid=19287


RE: Foren minimieren! - Osamu - 22.03.2008

Okay die Tabelle sieht jetzt so aus
Code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" /></div>
<div><strong>Test</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">

Das letzte Problem ist ich weiß nicht wo mein Text rein muss =/


RE: Foren minimieren! - linwinman - 22.03.2008

Hallo Osamu.

der Text steht im Container
Code:
<div><strong>Test</strong></div>
HTH.


RE: Foren minimieren! - Osamu - 22.03.2008

Ja das ist aber nur die Überschrift.
Ich kann aber in die Tabelle nicht reinschreiben.
So siehts aus


RE: Foren minimieren! - CKOne - 22.03.2008

Die Tabelle ist so auch noch nicht fertig. Der Code müsste in etwa so aussehen:
Code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
  <thead>
    <tr>
      <td class="thead" colspan="2">
        <div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" /></div>
        <div><strong>Test</strong></div>
      </td>
    </tr>
  </thead>
  <tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
    <tr>
      <td class="trow1">
        Test Test...
      </td>
      ...
    </tr>
    ...
  </tbody>
</table>

An die Stellen mit ... kannst du die Tabelle noch erweitern - je nach dem, wie viele Spalten und Zeilen du benötigst. An der Stelle "Test Test..." kommt dann dein Text hin. Wink


RE: Foren minimieren! - StefanT - 22.03.2008

Siehe: https://www.mybb.de/forum/showthread.php?tid=19287&pid=7700#pid7700


RE: Foren minimieren! - Osamu - 22.03.2008

Danke an alle =)


RE: Foren minimieren! - Osamu - 22.03.2008

Eine Frage habe ich noch.
Das Collapse ist ja Standard immer öffnen auser man schließt es!
Wie kann man einstellen das die Collapse normal zu ist und man sie öffnen muss um den Test zu sehen?

Also wenn man eine Seite öffnet ist die Tabelle zu und man muss sie erst öffnen!
Hier mal mein Code
Code:
<table style="margin-left:1px" border="0" cellpadding="0" cellspacing="0" align="center" width="750px">
    <tr>
        <tbody>

<tr>
<td align="left"><img src="images/Hero/cat_l.gif" alt="" border="0"></td>
<td style="background: url(images/Hero/cat_tbg.gif) repeat-x" align="center" width="750px"><div class="expcolimage"><img src="images/Hero/collapse.gif" id="cat_3_img" class="expander" alt="[-]" /></div>
<span class="thead"><div style="text-align: left;"><strong><a href="forumdisplay.php?fid=3">Nothing To Lose</a></strong><br /><div class="smalltext"></div></strong></div></span>

</td>
<td align="right"><img src="images/Hero/cat_r.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<table style="margin-left:1px;width:750px;" border="0" cellspacing="1" cellpadding="4" class="tborder">
</thead>

<tbody style="" id="cat_3_e">
<!-- end: forumbit_depth2_forum --><!-- start: forumbit_depth2_forum -->
<tr>
<td class="trow2" valign="top">
<strong>
Test Test<br><br></strong>
Test Test<br>
Test Test<br>

</td>
</tr>
<!-- end: forumbit_depth2_forum -->
</tbody>
</table>
<table style="margin-left:1px" border="0" cellpadding="0" cellspacing="0" align="center" width="750px">
    <tr>
        <tbody>

<tr>
<td align="left"><img src="images/Hero/cat_lb.gif" alt="" border="0"></td>
<td style="background: url(images/Hero/cat_tbgb.gif) repeat-x" align="center" width="750px">
</td>
<td align="right"><img src="images/Hero/cat_rb.gif" alt="" border="0"></td>
</tr>
</tbody>

</table>

Jemand ne Idee?


RE: Foren minimieren! - StefanT - 22.03.2008

Nein, das geht nicht so einfach.