[Idee] Ankündigungen & Wichtige Themen - Box

xXJayXx
Mist verklickt , könnt ihr das in den wbb lite Bereich verschieben ?

Huhu,
da ich mich nicht mit coden usw. auskenne , wollte ich mal fragen ob jemand eine Box coden kann.
Ich kann nicht viel sagen ausser dass es so aussehen soll (Siehe Dateianhang)
Naja ihr/du tut/tust uns damit einen großen Gefallen großes Grinsen
Satanic18
in der datenbank manuell machbar Augenzwinkern einfach mal in phpmyadmin nachschauen ^^
Zikaro
Zitat:
Original von xXJayXx
Mist verklickt , könnt ihr das in den wbb lite Bereich verschieben ?

Huhu,
da ich mich nicht mit coden usw. auskenne , wollte ich mal fragen ob jemand eine Box coden kann.
Ich kann nicht viel sagen ausser dass es so aussehen soll (Siehe Dateianhang)
Naja ihr/du tut/tust uns damit einen großen Gefallen großes Grinsen


Von welcher Version hast du dein Screen?
xXJayXx
@Zikaro : Von WBB 2 ..... Ich will es aber für WBB Lite ^^

@Satanic18 : Was ist phpmyadmin ?! Muss ich mich da registrieren ?! xD
Zikaro
Müsste mir paar Codes ansehen..um (vielleicht) was zu machen..
Hast du ein WBB 2?
xXJayXx
Ne , habe mich nur verklickt , eigentlich ist es WBB Lite Augen rollen
Master-X
» verschoben

Diese Änderung gibt es bereits von SNap! auf myWBB.de Augenzwinkern
Einfach mal suchen Augenzwinkern
xXJayXx
Ich habe schoneinmal auf mywbb und y****** gesucht , jedoch nichts gefunden , könntest du mir vielleicht sagen nach welchem Schlüsselwort ich suchen soll =?

/e : Gefunden , danke Irre

/e2 : Jetzt habe ich ihn gedownloadet aber der sagt ich soll in "board.php"
dass hier suchen:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
  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;
}


Und ich soll es hiermit ersetzen:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
 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;


Aber ich finde das nicht , könnt ihr es finden ? :
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:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
<?php
$filename="board.php";

require("./global.php");
require("./acp/lib/class_parse.php");

if(!isset($boardid)) eval("error(\"".$tpl->get("error_falselink")."\");");

if(isset($_COOKIE['hidecats'])) $hidecats=decode_cookie($_COOKIE['hidecats']);
else $hidecats=array();

if(isset($_COOKIE['boardvisit'])) $boardvisit=decode_cookie($_COOKIE['boardvisit']);
else $boardvisit=array();

if(isset($_COOKIE['threadvisit'])) $threadvisit=decode_cookie($_COOKIE['threadvisit']);
else $threadvisit=array();

$boardnavcache=array();
if($board['childlist']!="0") {
 $boardcache=array();
 $permissioncache=array();
 $modcache=array();

 $activtime=time()-60*$useronlinetimeout;

 $result = $db->query("
  SELECT
  b.*".ifelse($showlastposttitle==1,", t.topic, i.*")."
  FROM bb".$n."_boards b
  ".ifelse($showlastposttitle==1,"LEFT JOIN bb".$n."_threads t ON (t.threadid=b.lastthreadid)
  LEFT JOIN bb".$n."_icons i USING (iconid)")."
  ORDER by b.parentid ASC, b.boardorder ASC");
 while ($row = $db->fetch_array($result)) {
  $boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;
  $boardnavcache[$row['boardid']]=$row;
 }

 $result = $db->query("SELECT boardid, threadid, lastposttime FROM bb".$n."_threads WHERE visible = 1 AND lastposttime > '$wbbuserdata[lastvisit]' AND closed <> 3");
 while($row=$db->fetch_array($result)) $visitcache[$row['boardid']][$row['threadid']]=$row['lastposttime'];

 $result = $db->query("SELECT * FROM bb".$n."_permissions WHERE groupid = '$wbbuserdata[groupid]'");
 while ($row = $db->fetch_array($result)) $permissioncache[$row['boardid']] = $row;

 $result = $db->query("SELECT bb".$n."_moderators.*, username FROM bb".$n."_moderators LEFT JOIN bb".$n."_users USING (userid) ORDER BY username ASC");
 while ($row = $db->fetch_array($result)) $modcache[$row['boardid']][] = $row;

 $tempboardcache=$boardcache;
 $temppermissioncache=$permissioncache;

 $index_depth=$board_depth;
 $temp_boardid=$boardid;
 $boardbit = makeboardbit($boardid);

 $boardcache=$tempboardcache;
 $permissioncache=$temppermissioncache;
}

if($showboardjump==1) $boardjump=makeboardjump($boardid);
$navbar=getNavbar($board['parentlist']);
eval ("\$navbar .= \"".$tpl->get("navbar_boardend")."\";");

if(!$board['isboard']) {
 eval("\$tpl->output(\"".$tpl->get("board_cat")."\");");
 exit();
}

/********** board *********/
if(isset($boardbit) && $boardbit) eval ("\$subboards = \"".$tpl->get("board_subboards")."\";");
else $subboards="";

if($board['threadsperpage']) $threadsperpage=$board['threadsperpage'];
else $threadsperpage=$default_threadsperpage;

if($wbbuserdata['umaxposts']) $postsperpage=$wbbuserdata['umaxposts'];
elseif($board['postsperpage']) $postsperpage=$board['postsperpage'];
else $postsperpage=$default_postsperpage;

if($board['hotthread_reply']==0) $board['hotthread_reply']=$default_hotthread_reply;
if($board['hotthread_view']==0) $board['hotthread_view']=$default_hotthread_view;

if(isset($_GET['page'])) {
 $page=intval($_GET['page']);
 if($page==0) $page=1;
}
else $page=1;
$threadbit="";

unset($datecute);

if(isset($_GET['sortfield'])) $sortfield=$_GET['sortfield'];
else $sortfield="lastposttime";

switch ($sortfield) {
 case "topic": break;
 case "starttime": break;
 case "replycount": break;
 case "starter": break;
 case "views": break;
 case "vote": break;
 case "lastposttime": break;
 case "lastposter": break;
 default: $sortfield = "lastposttime"; break;
}
$f_select['topic']="";
$f_select['starttime']="";
$f_select['replycount']="";
$f_select['starter']="";
$f_select['views']="";
$f_select['vote']="";
$f_select['lastposttime']="";
$f_select['lastposter']="";
$f_select[$sortfield]="selected";

if(isset($_GET['sortorder'])) $sortorder=$_GET['sortorder'];
else $sortorder="lastposttime";

switch ($sortorder) {
 case "ASC": break;
 case "DESC": break;
 default: $sortorder = "DESC"; break;
}
$o_select['ASC']="";
$o_select['DESC']="";
$o_select[$sortorder]="selected";

if(isset($_GET['daysprune'])) $daysprune = intval($_GET['daysprune']);
elseif($wbbuserdata['daysprune']!=0) $daysprune = $wbbuserdata['daysprune'];
elseif($board['daysprune']!=0) $daysprune = $board['daysprune'];
else $daysprune = $default_daysprune;
$d_select[1500]="";
$d_select[1000]="";
$d_select[1]="";
$d_select[2]="";
$d_select[5]="";
$d_select[10]="";
$d_select[20]="";
$d_select[30]="";
$d_select[45]="";
$d_select[60]="";
$d_select[75]="";
$d_select[100]="";
$d_select[365]="";
$d_select[$daysprune]="selected";
if($daysprune!=1000) {
 if($daysprune==1500) $datecute = " AND (important=1 OR lastposttime >= '".$wbbuserdata['lastvisit']."')";
 else {
  $tempdate=time()-($daysprune*86400);
  $datecute = " AND (important=1 OR lastposttime >= '".$tempdate."')";
 }
}
else $datecute="";

/** announcements threads **/
$announcecount=0;
$announceids="";
//$result = $db->query("SELECT threadid FROM bb".$n."_threads WHERE boardid='$boardid' AND important = 2 AND visible = 1");
$result = $db->query("SELECT threadid FROM bb".$n."_announcements WHERE boardid='$boardid'");
while($row = $db->fetch_array($result)) {
 $announcecount++;
 $announceids .= ",".$row['threadid'];
}

$ownuserid="";
$ownjoin="";

/** count total threads **/
$threadcount = $db->query_first("SELECT COUNT(threadid) FROM bb".$n."_threads WHERE boardid='$boardid' AND important < 2 AND visible = 1 $datecute");
$threadcount = $threadcount[0];

$pages = ceil($threadcount/$threadsperpage);
if($pages>1) $pagelink=makepagelink("board.php?boardid=$boardid&sid=$session[hash]&daysprune=$daysprune&sortfield=$sortfield&sortorder=$sortorder",$page,$pages,$showpagelinks-1);
else $pagelink="";

$threadids="";
$result = $db->query("SELECT threadid, IF(voted>0,votepoints/voted,0) AS vote FROM bb".$n."_threads WHERE boardid='$boardid' AND visible = 1 AND important < 2 $datecute ORDER BY important DESC, $sortfield $sortorder",$threadsperpage,$threadsperpage*($page-1));
while($row=$db->fetch_array($result)) $threadids .= ",".$row['threadid'];

$result = $db->query("SELECT
 $ownuserid
 bb".$n."_threads.*,
 IF(voted>0,votepoints/voted,0) AS vote,
 bb".$n."_icons.*
 FROM bb".$n."_threads
 LEFT JOIN bb".$n."_icons USING (iconid)
 $ownjoin
 WHERE bb".$n."_threads.threadid IN (0$announceids$threadids)
 ORDER BY important DESC, $sortfield $sortorder");

if(isset($boardvisit[$boardid]) && $boardvisit[$boardid]>$wbbuserdata['lastvisit']) $wbbuserdata['lastvisit']=$boardvisit[$boardid];

while($threads=$db->fetch_array($result)) {
 $firstnew="";
 $multipages="";
 $prefix="";

 if(strlen($threads['topic'])>60) $threads['topic']=parse::textwrap($threads['topic'],60);
 if($threads['starterid']!=0) eval ("\$threads['starter'] = \"".$tpl->get("board_threadbit_starter")."\";");
 if($threads['lastposterid']!=0) eval ("\$threads['lastposter'] = \"".$tpl->get("board_threadbit_lastposter")."\";");

 $lastpostdate=formatdate($dateformat,$threads['lastposttime'],1);
 $lastposttime=formatdate($timeformat,$threads['lastposttime']);

 if($threads['closed']==3) {
  $threads['threadid']=$threads['pollid'];
  $threadrating="&nbsp;";
  eval ("\$prefix .= \"".$tpl->get("board_thread_moved")."\";");

  $foldericon="moved";
  if($wbbuserdata['lastvisit']<$threads['lastposttime'] && $threadvisit[$threads['threadid']]<$threads['lastposttime']) eval ("\$firstnew = \"".$tpl->get("board_threadbit_firstnew")."\";");
  if($threads['iconid']) $threadicon=makeimgtag($threads['iconpath'],$threads['icontitle']);
  else $threadicon="&nbsp;";

  $threads['replycount']="-";
  $threads['views']="-";
 }
 else {
  if($threads['voted']) {
   $avarage=number_format($threads['votepoints']/$threads['voted'],2);
   eval ("\$threadrating = \"".$tpl->get("board_threadbit_rating")."\";");
   $threadrating=str_repeat($threadrating, round($avarage));
  }
  else $threadrating="&nbsp;";

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

 eval ("\$threadbit .= \"".$tpl->get("board_threadbit")."\";");
}

$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($showuseronlineinboard==1) {
 $guestcount=0;
 $membercount=0;
 $nonghostcount=0;
 $boarduseronline = '';
 $boarduseronlinebit = '';
 $result = $db->query("SELECT bb".$n."_sessions.userid, username, groupid, invisible FROM bb".$n."_sessions LEFT JOIN bb".$n."_users USING (userid) WHERE bb".$n."_sessions.lastactivity >= '".(time()-60*$useronlinetimeout)."' AND boardid=$boardid ORDER BY username ASC");
 while($row = $db->fetch_array($result)) {
  if($row['userid']==0) {
   $guestcount++;
   continue;
  }
  $membercount++;
  	if(!$row['invisible'] || ($row['invisible'] && $wbbuserdata['canuseacp']==1)) {
  		if(isset($boarduseronlinebit) && $boarduseronlinebit != '') $boarduseronlinebit .= ', ';
  	if(!$row['invisible']) {
  $nonghostcount++;
  		$boarduseronlinebit .= "<a href=\"profile.php?userid=".$row[userid]."&sid=$session[hash]\">".$row['username']."</a>";
	} else {
  		$boarduseronlinebit .= "<a href=\"profile.php?userid=".$row[userid]."&sid=$session[hash]\">".$row['username']." [unsichtbar]</a>";
  	  }
  	}
 }

 if(($nonghostcount<>0 && $guestcount<>0) || (($membercount<>0 && $guestcount<>0) && $wbbuserdata['canuseacp']==1)) {
  $konj=" und ";
 } 
 else {
  $konj="";
 }

 if($guestcount<>0) {
  $guestcounter="$guestcount Besucher";
 } 
 else {
  $guestcounter="";
 }

 if($nonghostcount<>0 || $guestcount<>0 || ($membercount<>0 && $wbbuserdata['canuseacp']==1)) $boarduseronline="(Benutzer im Forum aktiv: $boarduseronlinebit$konj$guestcounter)";
}
if(!$threadbit) eval("\$tpl->output(\"".$tpl->get("board_nothreads")."\");");
else eval("\$tpl->output(\"".$tpl->get("board")."\");");
?>


Mit der Suche im WordPad habe ich auch nix gefunden ...
Zikaro
steht bei SnAp acp/board.php oder board.php

Hast du board.php oder acp/board.php genommen

oder auch..hat er geschrieben..was man dann einsetzen muss, wenns da nicht steht..oder such den ersetzten Code, den man ersetzen soll..vllt ists schon integriert wegen einem Hack oder so.
xXJayXx
Da steht board.php

Ich habe auch board.php genommen

Den ersetzten Code finde ich auch nicht....
Shinto
Zitat:
Original von Zikaro
steht bei SnAp acp/board.php oder board.php

Hast du board.php oder acp/board.php genommen

oder auch..hat er geschrieben..was man dann einsetzen muss, wenns da nicht steht..oder such den ersetzten Code, den man ersetzen soll..vllt ists schon integriert wegen einem Hack oder so.


definitiv board.php aber ich glaube er hat den präfix hack eingebaut und damit die stelle bereits "beseitigt" großes Grinsen
xXJayXx
Was kann den der Präfix hat nochmal xD
Shinto
Zitat:
Original von xXJayXx
Was kann den der Präfix hat nochmal xD


is ne art vordefinierte Themenüberschrift.
xXJayXx
Kp was du meinst kannst ja mal gucken ob ich den drinne hab:
*klick*
Shinto
keine lust und keine zeit mich zu reggen.
xXJayXx
Falls ich den drinne hab , was muss ich den dann ändern? unglücklich
Shinto
Die Frage geb ich mal an nen guten PHP'ler weiter Zunge raus