Kann ich in der Shoutbox eine scrollleiste einbauen?

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
freefall
Regular
Posts: 13
Joined: Wed Feb 28, 2007 5:51 pm

Kann ich in der Shoutbox eine scrollleiste einbauen?

Post by freefall »

Mein Problem ist dass die posts in der Shoutbox zum einen recht weit auseinander stehen und dass die immer länger wird. Kann man die nicht so einstellen dass die box nur in einer bestimmte Anzahl/Höhe angezeigt wird und der Rest unter einem Scrollbalken "verschwindet?" Oder gibt es da einen andern plugin der besser einstellbar ist?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Kann ich in der Shoutbox eine scrollleiste einbauen?

Post by garvinhicking »

Hi!

Klaro, kann man per CSS regeln, und "overflow"/"width"/"Height" Eigenschaften.

Wenn Du uns noch deine URL verrätst könnten wir da evtl. eine Empfehlung geben wie das CSS konkret auszusehen hat.

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Kann ich in der Shoutbox eine scrollleiste einbauen?

Post by garvinhicking »

Hi!.

Ah, http://rlcsbestside.de/ ist es wohl.

Leider setzt Du als Vorlage das WP-Theme ein. Das gibt keine CSS-Ausgabe für die Shoutbox in der sidebar.tpl mit aus, so dass Du das Seitenleistenelement nicht separat stylen kanst.

Daher musst du als erstes die sidebar.tpl ändern in:

Code: Select all


<ul>
{foreach from=$plugindata item=item}
        <li class="container_{$item.class}">
            {if $item.title != ""}<h2>{$item.title}</h2>{/if}
            {$item.content}
    </li>
{/foreach}
</ul>
Dann kannst Du dieses CSS nutzen:

Code: Select all

.container_serendipity_plugin_shoutbox {
  height: 100px;
  overflow: scroll;
}
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
freefall
Regular
Posts: 13
Joined: Wed Feb 28, 2007 5:51 pm

Post by freefall »

Danke, funktioniert wunderbar. Kann ich aber eventuell noch den unteren Scrollbalken irgendwie wegbekommen. Was zum scrollen gibt´s da ja eh nicht.
siehe http://www.ayasuki.com/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Probier mal "overflow: auto", evtl. klappt das.

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
freefall
Regular
Posts: 13
Joined: Wed Feb 28, 2007 5:51 pm

Post by freefall »

garvinhicking wrote:Hi!

Probier mal "overflow: auto", evtl. klappt das.

Grüße,
Garvin
Perfekt, thanks! :D
Post Reply