Jomis
Hallö'chen ;>
Ich habe neulich den Kategorie-teilen-Hack eingebaut und das ist ja wirklich nicht viel, was da geändert und hochgeladen werden muss, aber irgendwas ist da wohl doch schief gelaufen.
Unzwar werden die Themen, die als wichtig etc. markiert werden öfter angezeigt. Habe auch einen Screen gemacht, damit ihr seht, wie das aussieht, unzwar
SO.
Dann hier einmal den Code, den ich in die board.php nach der Anleitung eingesetzt habe.
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
|
if($threads['important']) eval ("\$threadbit2 .= "".$tpl->get("board_threadbit")."";");
else eval ("\$threadbit .= "".$tpl->get("board_threadbit")."";");
}
if($threadbit && $threadbit2) {
eval ("\$threadbit2 .= "".$tpl->get("board_thread_head2")."";");
eval ("\$threadbit2b = "".$tpl->get("board_thread_head1")."";");
$threadbit2 = $threadbit2b.$threadbit2;
}
$threadbit = $threadbit2.$threadbit; |
|
Hoffe mir kann da jemand helfen.
Jomis
Ne. Aber ich hab mal hier das Stückchen, wo ich das eingefügt habe, vielleicht ist da irgendwas falsch gelaufen?
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
|
.....
if($threads['important']==2) eval ("\$prefix .= "".$tpl->get("board_thread_announce")."";");
if($threads['important']==1) eval ("\$prefix .= "".$tpl->get("board_thread_important")."";");
if($threads['pollid']!=0) eval ("\$prefix .= "".$tpl->get("board_thread_poll")."";");
if($threads['important']==2) $foldericon="announce";
else $foldericon=ifelse($wbbuserdata['lastvisit']<$threads['lastposttime'] && $threadvisit[$threads['threadid']]<$threads['lastposttime'],"new").ifelse($threads['replycount']>=$board['hotthread_reply'] || $threads['views']>=$board['hotthread_view'],"hot").ifelse($threads['closed']!=0,"lock")."folder";
if($wbbuserdata['lastvisit']<$threads['lastposttime'] && $threadvisit[$threads['threadid']]<$threads['lastposttime']) eval ("\$firstnew = "".$tpl->get("board_threadbit_firstnew")."";");
if($threads['pollid']!=0) $threadicon=makeimgtag("{imagefolder}/poll.gif","");
elseif($threads['iconid']) $threadicon=makeimgtag($threads['iconpath'],$threads['icontitle']);
else $threadicon=" ";
if($threads['replycount']+1>$postsperpage && $showmultipages!=0) {
unset($multipage);
unset($multipages_lastpage);
$xpages=ceil(($threads['replycount']+1)/$postsperpage);
if($xpages>$showmultipages) {
eval ("\$multipages_lastpage = "".$tpl->get("board_threadbit_multipages_lastpage")."";");
$xpages=$showmultipages;
}
for($i=1;$i<=$xpages;$i++) {
$multipage.=" ".makehreftag("thread.php?threadid=$threads[threadid]&page=$i&sid=$session[hash]",$i);
}
eval ("\$multipages = "".$tpl->get("board_threadbit_multipages")."";");
}
}
if($threads['important']) eval ("\$threadbit2 .= "".$tpl->get("board_threadbit")."";");
else
if($board['canusesettle']) {
if($threads['settled']==1) $settled_img = "erledigt";
else $settled_img = "unerledigt";
if($wbbuserdata['m_can_thread_settle'] || ($wbbuserdata['can_settle_own_topic'] && $wbbuserdata['userid'] == $threads['starterid'])) {
eval ("\$threadsettled = "".$tpl->get("board_threadbit_cansettle")."";");
}
else eval ("\$threadsettled = "".$tpl->get("board_threadbit_nosettle")."";");
}
else $threadsettled ="";
if($threads['important']) eval ("\$threadbit2 .= "".$tpl->get("board_threadbit")."";");
else eval ("\$threadbit .= "".$tpl->get("board_threadbit")."";");
}
if($threadbit && $threadbit2) {
eval ("\$threadbit2 .= "".$tpl->get("board_thread_head2")."";");
eval ("\$threadbit2b = "".$tpl->get("board_thread_head1")."";");
$threadbit2 = $threadbit2b.$threadbit2;
}
$threadbit = $threadbit2.$threadbit;
if($threadbit && $threadbit2) {
eval ("\$threadbit2 .= "".$tpl->get("board_thread_head2")."";");
eval ("\$threadbit2b = "".$tpl->get("board_thread_head1")."";");
$threadbit2 = $threadbit2b.$threadbit2;
}
$threadcount += $pages * $announcecount;
$l_threads = ($page-1) * ($threadsperpage + $announcecount) + 1;
$h_threads = $page * ($threadsperpage + $announcecount);
if($h_threads > $threadcount) $h_threads = $threadcount;
if($board['closed']==0) eval ("\$newthread = "".$tpl->get("board_newthread")."";");
if(!$threadbit) eval("\$tpl->output("".$tpl->get("board_nothreads")."");");
else eval("\$tpl->output("".$tpl->get("board")."");");
?> |
|
Jomis
Wenn ich den Teil wegnehme ist der ganze obere Teil, also das Wichtige, die ANkündigen etc, weg..
Jomis
Verändert sich nichts. :/
bolop
evtl vergessen Datei zu speichern, oder beim hochladen zu ersetzen, möglicherweiße ist das hochladen fehlgeschlagen? was fürn ftp proggie nutzt ihr beide? wenn ihr wollt könnt ihr euch gern mal bei mir melden ich nimm mir das mal dann genauer unter die lupe und schreib hier dann die lösung rein, sollte eine zu finden sein.
/edit: mach mal
code: |
1:
2:
3:
4:
5:
6:
|
if($threadbit && $threadbit2) {
eval ("\$threadbit2 .= "".$tpl->get("board_thread_head2")."";");
eval ("\$threadbit2b = "".$tpl->get("board_thread_head1")."";");
$threadbit2 = $threadbit2b.$threadbit2;
} |
|
weg und ersetze es durch
code: |
1:
2:
3:
4:
5:
6:
7:
8:
|
$threadbit = $threadbit2.$threadbit;
if($threadbit && $threadbit2) {
eval ("\$threadbit2 .= "".$tpl->get("board_thread_head2")."";");
eval ("\$threadbit2b = "".$tpl->get("board_thread_head1")."";");
$threadbit2 = $threadbit2b.$threadbit2;
}
|
|