Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [Wbblite] Kategorie teilen | Themen erscheinen 2 mal (https://www.gegen-bilderklau.net/thread.php?threadid=170799)


Geschrieben von Jomis am 17.04.2010 um 14:09:

  Kategorie teilen | Themen erscheinen 2 mal

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. Augenzwinkern



Geschrieben von Jomis am 17.04.2010 um 16:02:

 

http://mywbb.de/board/thread.php?threadid=78307&hilight=kategorie+teilen



Geschrieben von Jomis am 17.04.2010 um 16:49:

 

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="&nbsp;";

  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")."");");
?>



Geschrieben von Jomis am 17.04.2010 um 17:07:

 

jap, waren ja nur 2 Augenzwinkern
Hm, das ist doof ._.



Geschrieben von Jomis am 17.04.2010 um 18:44:

 

Wenn ich den Teil wegnehme ist der ganze obere Teil, also das Wichtige, die ANkündigen etc, weg.. unglücklich



Geschrieben von Jomis am 17.04.2010 um 19:16:

 

Ok, dankeschön schonmal. smile



Geschrieben von Jomis am 17.04.2010 um 19:49:

 

Verändert sich nichts. :/



Geschrieben von bolop am 18.08.2010 um 11:17:

 

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;
}



Forensoftware: Burning Board, entwickelt von WoltLab GmbH