Hi Wolfgang,
die Darstellung der Foren kannst Du im Template Deines Indexes ändern. Du hast soweit ich das im Screenshot sehe den Klassischen Index gewählt, das wäre also dann diese Datei:
templates/mira/classic_index.htm
Von einem regulären Dropdown würde ich allerdings abraten:
- Icons der Foren sind in Standard Web Dropdowns nicht darstellbar, Du bräuchtest also ein spezielles (meist JS & CSS Basiertes) zusätzliches Plugin um Pseudo-Dropdowns mit eigener Gestaltung
- solche Dropdowns sind auf Touchgeräten eher schwer zu bedienen, würde ich also zu Gunsten von Responsive Layout eher nicht so machen.
- Du siehst keine Ungelesen Markierung mehr
Ich hätte aber eventuell eine Alternatividee:
ÖFFNE:
templates/mira/classic_index.htm
FINDE:
Code
<ul class="cf-subforum-loop">
{/if}
{if $fsub_v.forum_type == $HYPERLINK}
{if $fsub_v.forum_closed == 0}
<li><a href="{$fsub_v.forum_addtn}" target="_blank"><i class="uk-icon-link uk-icon-justify cf-read-icon"></i> {$fsub_v.forum_name}</a></li>
{else}
<li><a href="{rewrite mode='link' id=$fsub_v.forum_id title=$fsub_v.forum_name}" target="_blank"><i class="uk-icon-link uk-icon-justify cf-read-icon"></i> {$fsub_v.forum_name}</a></li>
{/if}
{else}
<li><a href="{rewrite mode='forum' id=$fsub_v.forum_id title=$fsub_v.forum_name}"{if $fsub_v.upi} class="cf-unread-subforum"{/if}><i class="{if $fsub_v.forum_closed == 1}uk-icon-lock{else}{if $fsub_v.forum_type == $PODCAST}uk-icon-play-circle{else}uk-icon-comment-o{/if}{/if} uk-icon-justify {if $fsub_v.upi}cf-unread-icon{else}cf-read-icon{/if}"></i> {$fsub_v.forum_name}</a><span class="cf-subforum-infohover uk-text-muted uk-hidden-small">{if $fsub_v.forum_type != $HYPERLINK}<b>{$LANG.index_topics}:</b> {$CURRVALS[$fsub_v.forum_id].forum_topiccounter} · <b>{$LANG.index_posts}:</b> {$CURRVALS[$fsub_v.forum_id].forum_postcounter} {*· <b>{$LANG.index_lasttopic}:</b> {if $CURRVALS[$fsub_v.forum_id].forum_last_post <= 0}{$LANG.noposts}{else}{date_humanize timestamp=$CURRVALS[$fsub_v.forum_id].forum_last_post_time}{/if}*}{/if}</span></li>
{/if}
{if $smarty.foreach.subforums.last}
</ul>
ERSETZE MIT:
Code
<ul class="cf-subforum-loop"><li>
{/if}
{if $fsub_v.forum_type == $HYPERLINK}
{if $fsub_v.forum_closed == 0}
<a href="{$fsub_v.forum_addtn}" target="_blank"><i class="uk-icon-link uk-icon-justify cf-read-icon"></i> {$fsub_v.forum_name}</a>
{else}
<a href="{rewrite mode='link' id=$fsub_v.forum_id title=$fsub_v.forum_name}" target="_blank"><i class="uk-icon-link uk-icon-justify cf-read-icon"></i> {$fsub_v.forum_name}</a>
{/if}
{else}
<a href="{rewrite mode='forum' id=$fsub_v.forum_id title=$fsub_v.forum_name}"{if $fsub_v.upi} class="cf-unread-subforum"{/if}><i class="{if $fsub_v.forum_closed == 1}uk-icon-lock{else}{if $fsub_v.forum_type == $PODCAST}uk-icon-play-circle{else}uk-icon-comment-o{/if}{/if} uk-icon-justify {if $fsub_v.upi}cf-unread-icon{else}cf-read-icon{/if}"></i> {$fsub_v.forum_name}</a>
{/if}
{if !$smarty.foreach.subforums.last} · {/if}
{if $smarty.foreach.subforums.last}
</li></ul>
Das würde Dir die Viewcounter bei Mausover weglassen und stellt die Subforen alle nacheinander in einer Liste auf einer Zeile dar mit Pünktchen getrennt. Dann sparst Du Platz, weil der Umbruch wegfällt.
Vielleicht gefällt Dir das ja schon.
Ansonsten ist hier beschrieben wie so eine Dropdown Lösung aussehen könnte, da müsstest Du den gesamten Subforum loop in der classic_index Datei dann damit ersetzen:
https://stackoverflow.com/ques…on-element
Aber wie gesagt, würde ich Dir eher nicht empfehlen, das macht den Umgang mit der Seite sehr schlecht und die Suchmaschinen ignorieren es zudem auch noch.
LG und ein schönes Wochenende,
Chris