Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Old-Trainee

Unterforenansicht im Forum

Recommended Posts

Leider finde ich nicht den Code für die Unterforen.

So wie es aussieht, wird bei jeden Unterforen das erstellt wir ein Leerzeichen generiert um den Abstand zwischen den Unterforen zu festzulegen.

Wie kann ich dieses LEERZEICHEN gegen einen Zeilenumbruch (ENTER, <br>) ersetzten, sodass die Unterforen untereinander angezeigt werden?

post-4174-1255659904,32_thumb.jpg

Share this post


Link to post

Da gibt es ganz einfache Wege das zu finden. Man sieht sich den Quelltext an, schaut, welche Klasse der zu suchende Inhalt hat und sofort hat man etwas, nachdem man im Template suchen kann.

boardIndexTemplate:

											<if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
<h5 class='hide'>{$this->lang->words['subforums']}</h5>
<ol class='subforums'>
<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
<if test="showSubForumsLit:|:$__data[3]"><li class='newposts'><else /><li></if><a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a></li>
</foreach>
</ol>
</if>

Achja: <br> ≠ <br /> (<br> = falsch)

Share this post


Link to post

Morgen Helge, vll. verstehe ich es nicht ganz, oder doch? Das System generiert bei jedem Subforum einen Code mit einer class zuweisung (table.ipb_table ol.subforums li.newposts) und dort kann ich ja nicht das

einfügen. oder habe ich da jetzt einen denkfehler?

Share this post


Link to post

Das IP.Board generiert eine Liste, diese Liste wird mittels der entsprechenden (folgenden) CSS Einträge generiert / "gestyled":

	table.ipb_table ol.subforums {
padding-top: 6px;
margin-top: 5px;
}

table.ipb_table ol.subforums li {
background: transparent url(http://forum.ipbsupport.de/public/style_images/master/bullet_black.png) no-repeat 3px 4px;
color: #1d3652;
font-size: 0.85em;
padding: 0 4px 0 15px;
float: left;
}

table.ipb_table ol.subforums li.newposts {
background: transparent url(http://forum.ipbsupport.de/public/style_images/master/bullet_green.png) no-repeat 0px 0px;
color: #1d3652;
font-size: 0.85em;
padding: 0 4px 0 16px;
float: left;
}

Es sollte reichen wenn du jeweils die float: left; Zeilen entfernst.

Share this post


Link to post

Nach dem Update auf 3.2 wurde dies wieder auf Standart zurück gestellt.....

Leider finde ich aber den besagten CSS teil nicht mehr.

Gibt es da in der Version 3.2 eine andere stelle?

Share this post


Link to post

Der Code beim 3.2 hat sich komplett geändert. Design nach wie vor über den Adminbereich änderbar (Board index -> boardIndexTemplate):


<if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
<br />
<ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'>
<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
<if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if>
<a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a><if test="isNotLast:|: empty($__data[4] )">,</if>
</li>
</foreach>
</ol>
</if>
[/CODE]

Share this post


Link to post

<if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
<br />
<ol class='ipsList ipsType_small subforums' id='subforums_{$forum_data['id']}'>
<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
<if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if>
<a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a>
</li>
</foreach>
</ol>
</if>[/CODE]

Macht 10,00 € ;)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×