Jetzt geht es.
Noch einmal vielen dank =)
Jetzt geht es.
Noch einmal vielen dank =)
Leider nicht
Wed, 20 Apr 2016 22:50:21 +0000
Message: PHP warning in file /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/lib/data/thread/ViewableThread.class.php (205): Missing argument 1 for wbb\data\thread\ViewableThread::getThread(), called in /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/wcf/templates/compiled/18_wbb_1_boardList.php on line 2090 and defined
File: /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/wcf/lib/system/WCF.class.php (309)
PHP version: 5.6.19-nmm1
WCF version: 2.1.10 (Typhoon)
Request URI: /wfwneu/?
Referrer: http://worldfantasywrestling.org/wfwneu/
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Information: ""
Stacktrace:
#0 /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/lib/data/thread/ViewableThread.class.php(205): wcf\system\WCF::handleError(2, 'Missing argumen...', '/www/htdocs/w01...', 205, Array)
#1 /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/wcf/templates/compiled/18_wbb_1_boardList.php(2090): wbb\data\thread\ViewableThread::getThread()
#2 /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/wcf/lib/system/template/TemplateEngine.class.php(323): include('/www/htdocs/w01...')
#3 /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/wcf/lib/page/AbstractPage.class.php(305): wcf\system\template\TemplateEngine->display('boardList', 'wbb')
#4 /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/wcf/lib/page/AbstractPage.class.php(100): wcf\page\AbstractPage->show()
#5 /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/wcf/lib/system/request/Request.class.php(58): wcf\page\AbstractPage->__run()
#6 /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/wcf/lib/system/request/RequestHandler.class.php(139): wcf\system\request\Request->execute()
#7 /www/htdocs/w013e854/worldfantasywrestling.org/wfwneu/index.php(10): wcf\system\request\RequestHandler->handle('wbb')
#8 {main}
Funktioniert doch nicht so wie gewollt, ist mir gestern nur nicht aufgefallen weil ich die letzten 5 Posts verfasst hatte.
Jedoch steht jetzt bei mir ein User in der Spalte der keinen der letzten 5 Posts verfasst hat...
Hier der geänderte Code:
<div>
<ul class="containerBoxList tripleColumned">
<li>
<div class="marginTop tabularBox top5Box tabularBoxTitle messageGroupList jsClipboardContainer"
data-type="com.woltlab.wbb.thread">
<header>
<h2>{lang}de.wbb-elite.top5.poster{/lang}</h2>
</header>
<table class="table">
<thead>
<tr>
<th class="columnTitle columnUsername">{lang}wcf.user.username{/lang}</th>
<th class="columnDigits columnPosts">{lang}wbb.post.posts{/lang}</th>
</tr>
</thead>
<tbody>
{foreach from=$topPoster item="user"}
<tr>
<td class="columnTitle">
<a href="{link controller="User" object=$user}{/link}" class="userLink"
data-user-id="{@$user->userID}">{$user->username}</a>
</td>
<td class="columnDigits">
{#$user->wbbPosts}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</li>
<li>
<div class="marginTop tabularBox top5Box tabularBoxTitle messageGroupList jsClipboardContainer"
data-type="com.woltlab.wbb.thread">
<header>
<h2>{lang}de.wbb-elite.top5.member{/lang}</h2>
</header>
<table class="table">
<thead>
<tr>
<th class="columnTitle columnUsername">{lang}wcf.user.username{/lang}</th>
<th class="columnDigits columnPosts">{lang}wbb.post.posts{/lang}</th>
</tr>
</thead>
<tbody>
{foreach from=$newUser item="user"}
<tr>
<td class="columnTitle">
<a href="{link controller="User" object=$user}{/link}" class="userLink"
data-user-id="{@$user->userID}">{$user->username}</a>
</td>
<td class="columnDigits">
{#$user->wbbPosts}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</li>
<li>
<div class="marginTop tabularBox top5Box tabularBoxTitle messageGroupList jsClipboardContainer"
data-type="com.woltlab.wbb.thread">
<header>
<h2>{lang}de.wbb-elite.top5.posts{/lang}</h2>
</header>
<table class="table">
<thead>
<tr>
<th class="columnTitle columnSubject">{lang}wbb.thread.topic{/lang}</th>
<th class="columnTitle columnUsername">{lang}wcf.user.username{/lang}</th>
<th class="columnDigits columnViews">{lang}wbb.thread.views{/lang}</th>
</tr>
</thead>
<tbody>
{foreach from=$postList item="latestPost"}
<tr>
<td class="columnTitle">
<a href="{link controller="Thread" object=$latestPost->getDecoratedObject()}action=firstNew{/link}"
class="wbbTopicLink"{if $latestPost->getBoard()->getPermission('canReadThread')} class="wbbTopicLink"{/if}
data-thread-id="{@$latestPost->threadID}" data-sort-order="DESC"
title="{$latestPost->topic}">{$latestPost->topic}</a>
</td>
<td class="columnTitle">
<a href="{link controller='User' object=$thread->getLastPosterProfile()->getDecoratedObject()}{/link}"
class="userLink"
data-user-id="{@$thread->getLastPosterProfile()->userID}">{$thread->lastPoster}</a>
</td>
<td class="columnDigits">
{#$latestPost->views}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</li>
</ul>
{if $topThread || $bestRateThread}
<ul class="containerBoxList">
<li>
<div class="marginTop top5BoxBest tabularBoxTitle tabularBox messageGroupList">
<header>
<ul class="containerBoxList doubleColumned">
<li class="textLeft">
{if $topThread}
{lang}de.wbb-elite.top5.thread{/lang}:
<a
href="{link controller="Thread" object=$topThread->getDecoratedObject()}{/link}"
{if $topThread->getBoard()->getPermission('canReadThread')} class="wbbTopicLink"{/if}
data-thread-id="{@$topThread->threadID}"
data-sort-order="DESC">{$topThread->topic}</a>
| {#$topThread->views}
{lang}wbb.thread.views{/lang}
{/if}
</li>
<li class="textRight">
{if $bestRateThread}
{lang}de.wbb-elite.top5.thread.rate{/lang}:
<a
href="{link controller="Thread" object=$bestRateThread->getDecoratedObject()}{/link}"
{if $topThread->getBoard()->getPermission('canReadThread')} class="wbbTopicLink"{/if}
data-thread-id="{@$topThread->threadID}"
data-sort-order="DESC">{$bestRateThread->topic}</a>
<span class="likesBadge badge green">+{#$bestRateThread->cumulativeLikes}</span>
{/if}
</li>
</ul>
</header>
</div>
</li>
</ul>
{/if}
</div>
Alles anzeigen
Hat er gemacht, klappt wunderbar.
Danke =)
Heyho,
ich wollte mal Fragen ob es geplant ist oder eventuell möglich wäre auf der Hauptseite in der Top 5 Box nicht den Namen des Threaderstellers anzeigen zu lassen, sondern den Namen desjenigen der die letzte Antwort verfasst hat?
MfG
Rush