MyBB.de Forum

Normale Version: Leerzeilen entfernen
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Seiten: 1 2
Ich habe eine Shoutbox in den Header eingebaut. Alles soweit prima, aber wo und wie bekomme ich die Leerzeilen darunter, sowie unter "Ergebnisse" weg? Das nimmt zu viel Platz weg.

[attachment=8451]

Kenny

Ohne einen Link zu deinem Forum wird es wohl schwer da einen Tipp zu geben.
Poste hier mal bitte den Inhalt des index Templates (startseite Templates) und der shoutbox Templates (zu finden in Globale Templates).
index
PHP-Code:
<html><head><title>{$mybb->settings['bbname']}</title>{$headerinclude}<script type="text/javascript"><!--    lang.no_new_posts "{$lang->no_new_posts}";    lang.click_mark_read "{$lang->click_mark_read}";// --></script></head><body>{$header}{$forums}{$boardstats} 


sf_shoutbox
PHP-Code:
<style type="text/css">.shoutbox {    margin0;    padding0;    left0;}li.shoutbox_normal {    list-stylenone;    margin0;    positionrelative;    cursorpointer;    colortransparent;    displayinline;    border1px;    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>{$lang->sf_sb_shoutbox}</strong> (<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" /> - <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">$lang->sf_sb_fontfamily</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">$lang->sf_sb_smilie</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">$lang->sf_sb_fontstyle</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">$lang->sf_sb_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="background-image: url(images/sbox.png); background-position: right; background-repeat: no-repeat; height: {$mybb->settings[sf_sb_height]}px; overflow: auto;">{$lang->sf_sb_loading}</div></td></tr></tbody></table><p style="margin-top:0px;"><img src="images/schatten_forum.jpg" width="100%" height="6" alt="" border="0" /></p><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> 

sf_shoutbox_full
PHP-Code:
<html><head><title>Full Shoutbox</title>{$headerinclude}</head><body>{$header}<table border="0" cellspacing="1" cellpadding="4" class="tborder"><thead><tr><td class="thead" colspan="5"><div><strong>{$lang->sf_sb_shoutbox}</strong><br /></div></td></tr></thead><tr> {$sf_shoutbox_data}</tr></table><br /><center>$multipage</center>{$footer}</body></html
Du scheinst die Shoutbox auch in einem der search-Templates eingebaut zu haben (zumindest gem. Deinem Screenshot). Deshalb nutzt uns das index-Template nichts. Wie Kenny schon schrieb, wäre ein Link zu Deinem Forum hilfreich....
Das Forum ist leider ein geschlossenes Forum. Sorry.

Ich nutze diese Shoutbox http://spicefuse.com/spicefuse-ajax-shou...-t-69.html und habe sie, wie in 4b beschrieben, im Header abgelegt.

Header
PHP-Code:
<div id="container"><a name="top" id="top"></a><div id="header"><div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}alt="{$mybb->settings['bbname']}title="{$mybb->settings['bbname']}/></a></div><div class="menu"><ul><li><a href="{$mybb->settings['bburl']}/chat/" onclick="openWindow(this.href);this.blur();return false;"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/chat.gif" alt="" />Chat</a></li> <li><a href="{$mybb->settings['bburl']}/games.php" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/spiel.gif" alt="" />Spielebereich</a></li><li><a href="{$mybb->settings['bburl']}/usermap.php" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/globus.gif" alt="" />{$lang->usermap}</a></li><li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li><li><a href="{$mybb->settings['bburl']}/memberlist.php?action=search"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/web_search.gif" alt="" />Erweiterte Suche</a></li><li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li><li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li><li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li><li class="impressum_link"><a href="{$mybb->settings['bburl']}/misc.php?action=impressum"><img src="{$theme['imgdir']}/toplinks/impressum.gif" border="0" alt="" />Impressum</a></li></ul></div><hr class="hidden" /><div id="panel">{$welcomeblock}</div></div><sf_shoutbox><hr class="hidden" /><br class="clear" /><div id="content">{$pm_notice}{$bannedwarning}{$bbclosedwarning}{$unreadreports}<navigation><br /></div><script type="text/javascript">// <![CDATA[function openWindow(url,width,height,options,name) {width = width ? width : 1500;height = height ? height : 800;options = options ? options : 'resizable=yes';name = name ? name : 'openWindow';window.open(url,name,'screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+',width='+width+',height='+height+','+options)}// ]]></script> 
Die kommt nicht in den header Template, da steht ja auch nix von auf der SB Seite. Sie kommt in die index Template unter {$header}

Zusatz:

Dein Template sf_shoutbox passt so aber nicht und ist auch nicht der gewöhnliche Standard des eigentlichen Plugins.
(11.04.2013, 18:02)MrBrechreiz schrieb: [ -> ]Dein Template sf_shoutbox passt so aber nicht und ist auch nicht der gewöhnliche Standard des eigentlichen Plugins.

Sondern? Ich habe die aktuelle Modifikation installiert, um es für MyBB 1.6 kompatibel zu machen.

Und was hat das mit meiner Frage zu tun?
Wieso schreibst Du "Sondern?" ? Sie ist nicht standard und kann mir auch nicht vorstellen das sie so im Plugin aufgeführt ist.
Nimm dir am besten dieses Thema zur Hilfe.
Das hier ist die Modifikation: https://www.mybb.de/forum/thread-20619-p...#pid161410

Aber zurück zum Thema. Die Shoutbox funktioniert; wo ich sie einbaue, ist dabei egal.

Mich interessiert lediglich, wie ich die 2 Leerzeilen direkt nach der Shoutbox und die eine nach Forumname/ wegbekomme. Da muss irgendwo in einem oder zwei Templates ein Platzhalter eingebaut sein, den ich lösche und dann isses gut. Doch wo?

Wer kann wirklich etwas zum Thema beitragen? Cool
Seiten: 1 2