MyBB.de Forum
Eingeklappte Tabellen merken - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Archiv (https://www.mybb.de/forum/forum-57.html)
+--- Forum: MyBB 1.6.x (https://www.mybb.de/forum/forum-58.html)
+---- Forum: Allgemeiner Support (https://www.mybb.de/forum/forum-59.html)
+---- Thema: Eingeklappte Tabellen merken (/thread-26766.html)

Seiten: Seiten: 1 2


RE: Eingeklappte Tabellen merken - MrBrechreiz - 03.11.2012

Ich fragte nur weil ich sah, das da Code von einer SB drinn sind und die SB in ihrem Template ihren eigenen Collapse hat. Daher vermute ich das Du den Code doppelt hast und es daher nicht speichert.

Finden kannst Du die SB Templates in den Globalen Templates.

Wenn ich den reinen Tabellencode ohne den SB Code bei mir verwende, merkt sich der Browser das.


RE: Eingeklappte Tabellen merken - MarioxD - 03.11.2012

Der Code stammt auch aus den globalen Templates. Zuvor hatte sie keinen Collapse o.O


RE: Eingeklappte Tabellen merken - MrBrechreiz - 03.11.2012

In meinem Fall hat sie aber eine seit der Installation^^.

So schaut mein Code der SB aus --> hab aber noch eine Zusatzfunktion eingebaut, daher wird der Code nicht zu 100% mit deinem übereinstimmen.

Code:
<style type="text/css">
.shoutbox {
    margin: 0;
    padding: 0;
    left: 0;
}
li.shoutbox_normal {
    list-style: none;
    margin: 0;
    position: relative;
    cursor: pointer;
    color: transparent;
    display: inline;
    border: 1px;
    border-color: #FFFFFF;
}
li.shoutbox_color {
    list-style: none;
    position: relative;
    cursor: pointer;
    color: transparent;
    display: inline ;
    border: 0px;
    float: left;
    margin: 1px;
}
.shoutbox_button_color a {
    width: 9px;
    height: 9px;
    display: block;
    border: 1px solid #FFF;
}
</style>

<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['shoutbox']}.gif" id="shoutbox_img" class="expander" alt="[-]" /></div>
<div><strong style="color:#fff;">{$lang->sf_sb_shoutbox}</strong><br /><p></p> (<a href="index.php?action=full_shoutbox">{$lang->sf_sb_fullsbox}</a>)<br /></div>
</td>
</tr>
</thead>

<tbody style="{$collapsed['shoutbox_e']}" id="shoutbox_e">
<tr>
<td class="trow2" align="center" width="80%">

<form onSubmit="ShoutBox.postShout(); $('shout_data').value = ''; return false;">{$lang->sf_sb_shout} <input type="text" style="font-size:1.2em;" id="shout_data" size="50"  /><span id=dummyspan></span> - <input type="submit" value="{$lang->sf_sb_shoutnow}" id="shouting-status" /></form></td>

<td class="trow2" align="center" width="20%">
<a style="cursor: pointer;" id="shoutbox_myfont"><img src="images/fontfamily.png" alt="myfont" /></a>
        <div id="shoutbox_myfont_popup" class="popup_menu" style="display: none; width:100px; margin-left: 10px; padding: 15px; background: #d9d9bd; color: #000000; border: 1px solid #000000;">
            <a style="cursor: pointer;" onclick="ShoutBox.fontAdd('tms');"><span style="font-family:'Trebuchet MS';">Trebuchet MS</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.fontAdd('arial');"><span style="font-family:Arial;">Arial</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.fontAdd('courier');"><span style="font-family:Courier;">Courier</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.fontAdd('tahoma');"><span style="font-family:Tahoma;">Tahoma</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.fontAdd('impact');"><span style="font-family:Impact;">Impact</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.fontAdd('csms');"><span style="font-family:'Comic Sans MS';">Comic Sans MS</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.fontAdd('verdana');"><span style="font-family:Verdana;">Verdana</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.fontAdd('tnr');"><span style="font-family:'Times New Roman';">Times New Roman</span></a>
        </div>
        <script type="text/javascript">
            new ShoutboxPopupMenu("shoutbox_myfont");
        </script>
&nbsp;&nbsp;&nbsp;<a style="cursor: pointer;" id="shoutbox_smilies"><img src="images/biggrin.gif" alt="smilies" /></a>
        <div id="shoutbox_smilies_popup" class="popup_menu" style="display: none; padding: 15px; background: #d9d9bd; color: #000000; border: 1px solid #000000; width: 215px; height: 140px; overflow: auto;">
            {$smilie_inserter}
        </div>
        <script type="text/javascript">
            new ShoutboxPopupMenu("shoutbox_smilies");
        </script>
&nbsp;&nbsp;&nbsp;<a style="cursor: pointer;" id="shoutbox_mycode"><img src="images/underline.gif" alt="underline" /></a>
        <div id="shoutbox_mycode_popup" class="popup_menu" style="display: none; padding: 15px; background: #d9d9bd; color: #000000; border: 1px solid #000000;">
            <a style="cursor: pointer;" onclick="ShoutBox.mycodeAdd('B');"><span style="font-weight:bold;">Fett</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.mycodeAdd('I');"><span style="font-style:italic;">Kursiv</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.mycodeAdd('U');"><span style="text-decoration:underline;">Unterstrichen</span></a>
            <br />
            <a style="cursor: pointer;" onclick="ShoutBox.mycodeAdd('S');"><span style="text-decoration:line-through;">Durchgestrichen</span></a>
        </div>
        <script type="text/javascript">
            new ShoutboxPopupMenu("shoutbox_mycode");
        </script>
&nbsp;&nbsp;&nbsp;<a style="cursor: pointer;" id="shoutbox_colors"><img src="images/color.gif" alt="color" /></a>
        <span class="shoutbox_button_color">
            <div id="shoutbox_colors_popup" class="popup_menu" style="display: none; padding: 5px; background: #d9d9bd; color: #000000; border: 1px solid #000000; width:100px;">
                <ul class="shoutbox">
                    <li class="shoutbox_color" style="background: #800000;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('800000');"></a></li>
                    <li class="shoutbox_color" style="background: #8B4513;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('8B4513');"></a></li>
                    <li class="shoutbox_color" style="background: #006400;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('006400');"></a></li>
                    <li class="shoutbox_color" style="background: #2F4F4F;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('2F4F4F');"></a></li>
                    <li class="shoutbox_color" style="background: #000080;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('000080');"></a></li>
                    <li class="shoutbox_color" style="background: #4B0082;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('4B0082');"></a></li>
                    <li class="shoutbox_color" style="background: #800080;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('800080');"></a></li>
                    <li class="shoutbox_color" style="background: #000000;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('000000');"></a></li>
                </ul>
                
                <ul class="shoutbox">
                    <li class="shoutbox_color" style="background: #FF0000;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FF0000');"></a></li>
                    <li class="shoutbox_color" style="background: #DAA520;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('DAA520');"></a></li>
                    <li class="shoutbox_color" style="background: #6B8E23;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('6B8E23');"></a></li>
                    <li class="shoutbox_color" style="background: #708090;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('708090');"></a></li>
                    <li class="shoutbox_color" style="background: #0000CD;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('0000CD');"></a></li>
                    <li class="shoutbox_color" style="background: #483D8B;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('483D8B');"></a></li>
                    <li class="shoutbox_color" style="background: #C71585;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('C71585');"></a></li>
                    <li class="shoutbox_color" style="background: #696969;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('696969');"></a></li>
                </ul>
                
                <ul class="shoutbox">
                    <li class="shoutbox_color" style="background: #FF4500;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FF4500');"></a></li>
                    <li class="shoutbox_color" style="background: #FFA500;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FFA500');"></a></li>
                    <li class="shoutbox_color" style="background: #808000;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('808000');"></a></li>
                    <li class="shoutbox_color" style="background: #4682B4;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('4682B4');"></a></li>
                    <li class="shoutbox_color" style="background: #1E90FF;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('1E90FF');"></a></li>
                    <li class="shoutbox_color" style="background: #9400D3;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('9400D3');"></a></li>
                    <li class="shoutbox_color" style="background: #FF1493;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FF1493');"></a></li>
                    <li class="shoutbox_color" style="background: #A9A9A9;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('A9A9A9');"></a></li>
                </ul>
                
                <ul class="shoutbox">
                    <li class="shoutbox_color" style="background: #FF6347;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FF6347');"></a></li>
                    <li class="shoutbox_color" style="background: #FFD700;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FFD700');"></a></li>
                    <li class="shoutbox_color" style="background: #32CD32;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('32CD32');"></a></li>
                    <li class="shoutbox_color" style="background: #87CEEB;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('87CEEB');"></a></li>
                    <li class="shoutbox_color" style="background: #00BFFF;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('00BFFF');"></a></li>
                    <li class="shoutbox_color" style="background: #9370DB;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('9370DB');"></a></li>
                    <li class="shoutbox_color" style="background: #FF69B4;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FF69B4');"></a></li>
                    <li class="shoutbox_color" style="background: #DCDCDC;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('DCDCDC');"></a></li>
                </ul>
                
                <ul class="shoutbox">
                    <li class="shoutbox_color" style="background: #FFDAB9;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FFDAB9');"></a></li>
                    <li class="shoutbox_color" style="background: #FFFFE0;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FFFFE0');"></a></li>
                    <li class="shoutbox_color" style="background: #98FB98;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('98FB98');"></a></li>
                    <li class="shoutbox_color" style="background: #E0FFFF;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('E0FFFF');"></a></li>
                    <li class="shoutbox_color" style="background: #87CEFA;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('87CEFA');"></a></li>
                    <li class="shoutbox_color" style="background: #E6E6FA;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('E6E6FA');"></a></li>
                    <li class="shoutbox_color" style="background: #DDA0DD;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('DDA0DD');"></a></li>
                    <li class="shoutbox_color" style="background: #FFFFFF;"><a style="cursor: pointer;" onclick="ShoutBox.colorAdd('FFFFFF');"></a></li>
                </ul>
            </div>
         </span>
        <script type="text/javascript">
            new ShoutboxPopupMenu("shoutbox_colors");
        </script>
</td>
</tr>
<tr>
<td class="trow1" colspan="2"><div id="shoutbox_data" style="height: {$mybb->settings[sf_sb_height]}px; overflow: auto;">{$lang->sf_sb_loading}</div></td>
</tr>
</tbody>
</table>

<br />

<script>
ShoutBox.refreshInterval = {$mybb->settings[sf_sb_refresh_interval]};
ShoutBox.MaxEntries = {$mybb->settings[sf_sb_shouts_main]};
ShoutBox.lang = ['{$lang->sf_sb_posting}', '{$lang->sf_sb_shoutnow}', '{$lang->sf_sb_loading}', '{$lang->sf_sb_flood_check}', "{$lang->sf_sb_no_perform}"];
ShoutBox.bindSmilieInserter("sb_clickable_smilies");
{$extra_js}
Event.observe(window, 'load', ShoutBox.showShouts);
</script>



RE: Eingeklappte Tabellen merken - MarioxD - 05.11.2012

Was ich gerade feststelle: Bei dir merkt sich das Forum auch für Gäste, welche Bereiche sie eingeklappt haben.
Bei mir wird bei Gästen alles wieder ausgeklappt, wenn sie die Seite neu laden. Bei Mitgliedern (oder zumindest bei mir selbst) wird sich aber gemerkt, was eingeklappt war..
Ich würde also fast behaupten, der Fehler ist irgendwo tiefer zu suchen, oder? :/


RE: Eingeklappte Tabellen merken - MrBrechreiz - 05.11.2012

Kann es sein das Du deinen Browser so eingestellt hast das er nach jeder Sitzung die Coockie und oder den Cache leert ? Hast Du auch andere Browser getestet daraufhin ?


RE: Eingeklappte Tabellen merken - MarioxD - 06.11.2012

Nein, sonst würde es bei den Themen in meinem eigenen Forum und weiterhin auch nicht in anderen Foren (z.B. hier oder in deinem Forum) ja nicht funktionieren.
Und getestet habe ich das nun von drei verschiedenen Rechnern - keine Chance.
Um dir das Problem mal konkret zu zeigen: www.def-clan.de/board Die Übersicht und Shoutbox werden nicht als eingeklappt gemerkt, die normalen Forenthemen etc. jedoch schon. Sollte es bei dir klappen, wäre das natürlich interessant und würde mich noch mehr verwirren o.O


RE: Eingeklappte Tabellen merken - MrBrechreiz - 06.11.2012

Ja sehe Dein Problem, ist bei mir auch. Poste mal bitte die beiden Codeeinträge der SB und der Übersucht für die jeweilige Klappfunktion.


RE: Eingeklappte Tabellen merken - MarioxD - 06.11.2012

Übersicht

PHP-Code:
<table width="100%" border="0" cellspacing="$theme[borderwidth]cellpadding="0" class="tborder">
        <
thead>
        <
tr><td colspan="$num_columns"><table  border="0" cellspacing="0" cellpadding="$theme[tablespace]width="100%"><tr class="thead"><td><div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['overview']}.gif" id="overview_img" class="expander" alt="[-]" title="[-]" /></div><strong>$lang->overview_overview</strong></td></tr></table></td>
        </
tr>
        </
thead>
        <
tbody style="{$collapsed['overview_e']}id="overview_e">
        
$trow_message
        
<tr>
        
$overview_content
        
</tr>
        </
tbody>
        </
table>
        <!-- 
You're not allowed to remove this link! Take a look at the readme for further information. -->
        <div style="text-align: right; font-size: 10px;"></div>
        <br /> 

Shoutbox

PHP-Code:
<table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
thead>
<
tr>
<
td class="thead"><div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['shoutbox']}.gif" id="shoutbox_img" class="expander" alt="[-]" title="[-]" /></div><strong>{$lang->shoutbox}</strong></td>
</
tr>
</
thead>
<
tbody style="{$collapsed['shoutbox_e']}id="shoutbox_e">
<
tr> <td class="{$bgcolor}align="left" title="{$shout_hover}">
<
div style="max-height: 200px; overflow: auto;">

<
table>
{
$shouts}
</
table>

</
div>
</
td></tr>
<
tr>
<
td class="trow1" align="center">
{
$add_shout}
</
div>
{
$toggle_refresh_link}
</
td>
</
tr>
{
$multipage_bottom}
 </
tbody>
</
table>
<
a name="shoutbox" id="shoutbox"></a>
<
div style="height: 20px; margin: 0px; padding: 0px;"></div

Danke dir für deine Bemühungen btw Wink


RE: Eingeklappte Tabellen merken - MrBrechreiz - 06.11.2012

Welche Shoutbox verwendest Du überhaupt ? Die SF ist es jedenfals nicht.


RE: Eingeklappte Tabellen merken - MrBrechreiz - 06.11.2012

Nachtrag:

Ich hab mir mal die Mühe gemacht und das Thema Übersicht durchgelesen und dabei las ich dieses, was für dich interessant wäre.