Hightech Master
Grünschnabel
Hallo Tutorials-Community,
ich bin neu, und brauche unbedingt eure Hilfe.
Ich hab ein Design für die Version 3 des WoltLab Burning Boards
erstellt welcher auch mit neuen TPLs ausgeliefert wird. Nun hab
ich aber das Problem, das Opera und firefox kein Problem mit der Darstellung haben,
dafür aber beide Internet Explorer Brüder (6 und 7).
Leider ist der Code der boardList lang, aber man musst an jeder Ecke fast etwas ändern.
Hoffe jemand kann mir helfen.
Das ist mein Code. Die Darstellung kann man auf den Screens sehen!
ich bin neu, und brauche unbedingt eure Hilfe.
Ich hab ein Design für die Version 3 des WoltLab Burning Boards
erstellt welcher auch mit neuen TPLs ausgeliefert wird. Nun hab
ich aber das Problem, das Opera und firefox kein Problem mit der Darstellung haben,
dafür aber beide Internet Explorer Brüder (6 und 7).
Leider ist der Code der boardList lang, aber man musst an jeder Ecke fast etwas ändern.
Hoffe jemand kann mir helfen.
Code:
{if $boards|count > 0}
{cycle name='boardlistCycle' values='1,2' advance=false print=false}
<ul id="boardlist">
{foreach from=$boards item=child}
{* define *}
{assign var="depth" value=$child.depth}
{assign var="open" value=$child.open}
{assign var="hasChildren" value=$child.hasChildren}
{assign var="openParents" value=$child.openParents}
{assign var="board" value=$child.board}
{assign var="boardID" value=$board->boardID}
{counter assign=boardNo print=false}
{if $board->isBoard()}
{* board *}
<li{if $depth == 1} class="border"{/if}>
<div class="boardlistInner container-{cycle name='boardlistCycle'} board{@$boardID}"{if $board->image} style="background-image: url({$board->image});"{/if}>
<div class="containerIcon">
<img id="boardIcon{@$boardNo}" src="{@RELATIVE_WCF_DIR}images/necto/{if $newPosts.$boardID}new{/if}folder.png" alt="" {if $newPosts.$boardID}title="{lang}wbb.board.markAsReadByDoubleClick{/lang}" {/if}/>
</div>
<div class="containerContent">
{if $depth > 3}<h6 class="boardTitle">{else}<h{@$depth+2} class="boardTitle">{/if}
<a id="boardLink{@$boardNo}" {if $newPosts.$boardID}class="new" {/if}href="index.php?page=Board&boardID={@$boardID}{@SID_ARG_2ND}">{lang}{$board->title}{/lang}{if $unreadThreadsCount.$boardID|isset}<span> ({#$unreadThreadsCount.$boardID})</span>{/if}</a>
{if $depth > 3}</h6>{else}</h{@$depth+2}>{/if}
{if $newPosts.$boardID}
<script type="text/javascript">
//<![CDATA[
boardMarkAsRead.init({@$boardNo}, {@$boardID});
//]]>
</script>
{/if}
{if $lastPosts.$boardID|isset}
<div class="boardlistLastPost">
<div class="containerIconSmall"><a href="index.php?page=Thread&threadID={@$lastPosts.$boardID->threadID}&action=firstNew{@SID_ARG_2ND}"><img src="{@RELATIVE_WBB_DIR}icon/goToFirstNewPostS.png" alt="" title="{lang}wbb.index.gotoFirstNewPost{/lang}" /></a></div>
<div class="containerContentSmall">
<p>
{lang}{$lastPosts.$boardID->prefix}{/lang}
<a href="index.php?page=Thread&threadID={@$lastPosts.$boardID->threadID}&action=firstNew{@SID_ARG_2ND}">{$lastPosts.$boardID->topic}</a>
</p>
<p>{lang}wbb.board.threads.postBy{/lang}
{if $lastPosts.$boardID->lastPosterID != 0}
<a href="index.php?page=User&userID={@$lastPosts.$boardID->lastPosterID}{@SID_ARG_2ND}">{$lastPosts.$boardID->lastPoster}</a>
{else}
{$lastPosts.$boardID->lastPoster}
{/if}
<span class="light">({@$lastPosts.$boardID->lastPostTime|shorttime})</span>
</p>
</div>
</div>
{/if}
{if $board->description}
<p class="boardlistDescription">
{lang}{if $board->allowDescriptionHtml}{@$board->description}{else}{$board->description}{/if}{/lang}
</p>
{/if}
{if $subBoards.$boardID|isset}
<div class="boardlistSubboards">
{implode from=$subBoards.$boardID item=subBoard}{counter print=false}{assign var="subBoardID" value=$subBoard->boardID}
{if $depth > 4}<h6>{else}<h{@$depth+3}>{/if}
<img id="boardIcon{@$boardNo}" src="{@RELATIVE_WBB_DIR}icon/{if $subBoard->isBoard()}board{if $newPosts.$subBoardID}New{/if}{elseif $subBoard->isCategory()}category{else}boardRedirect{/if}S.png" alt="" {if $subBoard->isBoard() && $newPosts.$subBoardID}title="{lang}wbb.board.markAsReadByDoubleClick{/lang}" {/if}/>
<a id="boardLink{@$boardNo}" {if $newPosts.$subBoardID}class="new" {/if}{if $subBoard->isExternalLink()}class="externalURL" {/if}href="index.php?page=Board&boardID={@$subBoardID}{@SID_ARG_2ND}">{lang}{$subBoard->title}{/lang}{if $unreadThreadsCount.$subBoardID|isset} <span>({#$unreadThreadsCount.$subBoardID})</span>{/if}</a>{if $depth > 4}</h6>{else}</h{@$depth+3}>{/if}{if $newPosts.$subBoardID}<script type="text/javascript">
//<![CDATA[
boardMarkAsRead.init({@$boardNo}, {@$subBoardID});
//]]>
</script>{/if}{/implode}
</div>
{/if}
{if $boardUsersOnline.$boardID.users|isset || $boardUsersOnline.$boardID.guests|isset}
<p class="boardlistUsersOnline">
<img src="{@RELATIVE_WCF_DIR}icon/usersS.png" alt="" />
{if $boardUsersOnline.$boardID.users|isset}
{implode from=$boardUsersOnline.$boardID.users item=userOnline}<a href="index.php?page=User&userID={@$userOnline.userID}{@SID_ARG_2ND}">{@$userOnline.username}</a>{/implode}
{/if}
{if $boardUsersOnline.$boardID.guests|isset}
{lang}wbb.index.boardUsersOnline.guests{/lang}
{/if}
</p>
{/if}
{if $moderators.$boardID|isset}
<p class="moderators">
<img src="{@RELATIVE_WBB_DIR}icon/moderatorS.png" alt="" />
{implode from=$moderators.$boardID item=moderator}{if $moderator->userID}<a href="index.php?page=User&userID={@$moderator->userID}{@SID_ARG_2ND}">{$moderator}</a>{else}{$moderator}{/if}{/implode}
</p>
{/if}
{if $child.additionalBoxes|isset}{@$child.additionalBoxes}{/if}
{if !$board->description && !$subBoards.$boardID|isset && !$boardUsersOnline.$boardID.users|isset && !$boardUsersOnline.$boardID.guests|isset && !$moderators.$boardID|isset && !$child.additionalBoxes|isset}
<!--[if IE]> <![endif]-->
{/if}
</div>
</div>
{/if}
{if $board->isCategory()}
{counter assign=border print=false}
{if $border < 3}
{else}
<li>
<div class="untenlinks">
<div class="untenrechts">
<div class="untenmitte">
</div></div></div>
</li>
{/if}
{* category *}
{cycle name='boardlistCycle' advance=false print=false reset=true}
<li>
<div class="obenlinks">
<div class="obenrechts">
<div class="obenmitte">
<div class="fix">
<div class="containerHeadIcon">
{if $open}<a href="{$selfLink}&hideBoard={@$boardID}{@SID_ARG_2ND}#boardLink{@$boardNo}" onclick="return !openList('category{@$boardID}', true, '{lang}wbb.index.showCat{/lang}', '{lang}wbb.index.hideCat{/lang}')"><img id="category{@$boardID}Image" src="{@RELATIVE_WCF_DIR}icon/minusS.png" alt="" title="{lang}wbb.index.hideCat{/lang}" /></a>
{else}<a href="{$selfLink}&showBoard={@$boardID}{@SID_ARG_2ND}#boardLink{@$boardNo}"><img src="{@RELATIVE_WCF_DIR}icon/plusS.png" alt="" title="{lang}wbb.index.showCat{/lang}" /></a>
{/if}
</div>
<div class="containerHeadFont">
{if $depth > 3}<h6 class="boardTitle">{else}<h{@$depth+2} class="boardTitle">{/if}
<a id="boardLink{@$boardNo}" {if $newPosts.$boardID}class="new" {/if}href="index.php?page=Board&boardID={@$boardID}{@SID_ARG_2ND}">{lang}{$board->title}{/lang}{if $unreadThreadsCount.$boardID|isset} ({#$unreadThreadsCount.$boardID}){/if}</a>
{if $depth > 3}</h6>{else}</h{@$depth+2}>{/if}
</div>
<div class="containerContent">
{if $board->description}
<p class="boardlistDescription">
{lang}{if $board->allowDescriptionHtml}{@$board->description}{else}{$board->description}{/if}{/lang}
</p>{/if}
</div>
</div>
</li>
<div class="fix_second">
<li{if $depth == 1} class="border"{/if}>
<div class=" boardlistInner board{@$boardID}">
<div class="containerContent">
</div>
{if $subBoards.$boardID|isset}
<div class="boardlistSubboards">
{implode from=$subBoards.$boardID item=subBoard}{counter print=false}{assign var="subBoardID" value=$subBoard->boardID}
{if $depth > 4}<h6>{else}<h{@$depth+3}>{/if}
<img id="boardIcon{@$boardNo}" src="{@RELATIVE_WBB_DIR}icon/{if $subBoard->isBoard()}board{if $newPosts.$subBoardID}New{/if}{elseif $subBoard->isCategory()}category{else}boardRedirect{/if}S.png" alt="" {if $subBoard->isBoard() && $newPosts.$subBoardID}title="{lang}wbb.board.markAsReadByDoubleClick{/lang}" {/if}/>
<a id="boardLink{@$boardNo}" {if $newPosts.$subBoardID}class="new" {/if}{if $subBoard->isExternalLink()}class="externalURL" {/if}href="index.php?page=Board&boardID={@$subBoardID}{@SID_ARG_2ND}">{lang}{$subBoard->title}{/lang}{if $unreadThreadsCount.$subBoardID|isset} <span>({#$unreadThreadsCount.$subBoardID})</span>{/if}</a>{if $depth > 4}</h6>{else}</h{@$depth+3}>{/if}{if $newPosts.$subBoardID}<script type="text/javascript">
//<![CDATA[
boardMarkAsRead.init({@$boardNo}, {@$subBoardID});
//]]>
</script>{/if}{/implode}
</div>
{/if}
{if $child.additionalBoxes|isset}{@$child.additionalBoxes}{/if}
</div>
</div>
{/if}
{if $board->isExternalLink()}
{* external url *}
<li{if $depth == 1} class="border"{/if}>
<div class="container-{cycle name='boardlistCycle'} boardlistInner board{@$boardID}"{if $board->image} style="background-image: url({$board->image});"{/if}>
<div class="containerIcon">
<img src="{@RELATIVE_WBB_DIR}icon/boardRedirectM.png" alt="" />
</div>
<div class="containerContent">
{if $depth > 3}<h6 class="boardTitle">{else}<h{@$depth+2} class="boardTitle">{/if}
<a href="index.php?page=Board&boardID={@$boardID}{@SID_ARG_2ND}" class="externalURL">{lang}{$board->title}{/lang}</a>
{if $depth > 3}</h6>{else}</h{@$depth+2}>{/if}
{if $board->description}
<p class="boardlistDescription">
{lang}{if $board->allowDescriptionHtml}{@$board->description}{else}{$board->description}{/if}{/lang}
</p>
{/if}
<p class="boardlistCounter">
{lang}wbb.board.clicks{/lang} {#$board->getClicks()}
</p>
{if $child.additionalBoxes|isset}{@$child.additionalBoxes}{/if}
</div>
</div>
{/if}
{if $hasChildren}<ul id="category{@$boardID}">{else}</li>{/if}
{if $openParents > 0}{@"</ul></li>"|str_repeat:$openParents}{/if}
{/foreach}
</ul>
{/if}
Das ist mein Code. Die Darstellung kann man auf den Screens sehen!