YourWBB


yourWBB » WoltLab Burning Board Generation 2 * » Alles von und für das WBB Lite 1.0.x » [WBB Lite 1.0.x] Hacks und Addons » Forum fungiert als externer Link » Hallo Gast [Anmelden|Registrieren]
Letzter Beitrag | Erster ungelesener Beitrag 23.344 Views | | Thema zu Favoriten hinzufügen
Seiten (3): « vorherige 1 [2] 3 nächste »
Neues Thema erstellen Antwort erstellen

Zum Ende der Seite springen Forum fungiert als externer Link
Autor
Beitrag « Vorheriges Thema | Nächstes Thema »
XeRanoN XeRanoN ist männlich
Mitglied


Dabei seit: 23.04.04
Beiträge: 1.298
Fähigkeiten: WBB Lite 1 Profi
Forenversion: Lite 1.0

Themenstarter Thema begonnen von XeRanoN
Antworten Zitieren Editieren Melden       UP

du hast das ,'$exurl'; einfach vor das ; kopiert anstatt an die entsprechende Stelle im Code Augenzwinkern
19.06.06 16:44 XeRanoN ist offline E-Mail Finden Als Freund hinzufügen
BMWZ4 BMWZ4 ist männlich
Mitglied


Dabei seit: 18.06.06
Beiträge: 220
Herkunft: Sendenhorst
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

ach man, es klappt immer noch net...das ende sieht jetzt so aus:

php:
1:
"','$closed','$isboard','$invisible')"),;'$exurl'


und es steht da immer noch

php:
1:
Parse errorsyntax errorunexpected ',' in /usr/export/www/vhosts/funnetwork/hosting/bmwz4/wbblite/acp/board.php on line 72

Dieser Beitrag wurde 2 mal editiert, zum letzten Mal von BMWZ4: 19.06.06 17:22.

19.06.06 17:16 BMWZ4 ist offline E-Mail Finden Als Freund hinzufügen
Izzmoo
unregistriert
Antworten Zitieren Editieren Melden       UP

Liest Du eigentlich die Beiträge & die Installationsanleitung verwirrt

Suche nach:
php:
1:
VALUES ('$style_set','$parentid','$parentlist','0','$boardorder','".addslashes($title)."','".addslashes($password)."','".addslashes($description)."','$allowbbcode','$allowimages','$allowhtml','$allowsmilies','$allowicons','$daysprune','".intval($threadsperpage)."','".intval($postsperpage)."','$postorder','".intval($hotthread_reply)."','".intval($hotthread_view)."','$closed','$isboard','$invisible'


Danach einfügen:
php:
1:
,'$exurl'


Jetzt findest Du sicherlich deinen Fehler.
19.06.06 17:27
BMWZ4 BMWZ4 ist männlich
Mitglied


Dabei seit: 18.06.06
Beiträge: 220
Herkunft: Sendenhorst
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

Zitat:
Original von Izzmoo
Liest Du eigentlich die Beiträge & die Installationsanleitung verwirrt


klar, ohne die wäre es gar nicht erdänklich...

und du meinst ich würde den fehler finden? ne, fehlanzeige, habe zwar was verändert, aber ich bin zu doof unglücklich

am ende meiner bord.php datei zeile 72 stehet jetzt:

php:
1:
($hotthread_reply)."','".intval($hotthread_view)."','$closed','$isboard','$invisible','$exurl')"),;


und im acp bei foren erstellen steht immer noch

code:
1:
Parse error: syntax error, unexpected ',' in /usr/export/www/vhosts/funnetwork/hosting/bmwz4/wbblite/acp/board.php on line 72


nehmt es mir bitte nicht übel, aber ich bin noch ein anfänger!! habe gestern erst mit dem hackeinbau angefangen... unglücklich
19.06.06 17:37 BMWZ4 ist offline E-Mail Finden Als Freund hinzufügen
Izzmoo
unregistriert
Antworten Zitieren Editieren Melden       UP

$isboard','$invisible','$exurl')");

Augen rollen
19.06.06 17:45
BMWZ4 BMWZ4 ist männlich
Mitglied


Dabei seit: 18.06.06
Beiträge: 220
Herkunft: Sendenhorst
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

juhu, es klappt, danke @izzmo & xeranon großes Grinsen

(was ein komma so aus machen kann**kopfschüttel**)
19.06.06 18:29 BMWZ4 ist offline E-Mail Finden Als Freund hinzufügen
hutzi hutzi ist männlich
fighters-from-hell.de


images/avatars/avatar-2533.gif

Dabei seit: 13.03.05
Beiträge: 396
Fähigkeiten: WBB Lite 1 Fortgeschritten
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

rofl, das ist hart. Mehr kann ich da nicht sagen, sorry.
19.06.06 18:44 hutzi ist offline E-Mail WWW Finden Als Freund hinzufügen
Izzmoo
unregistriert
Antworten Zitieren Editieren Melden       UP

Zitat:
Original von hutzi
rofl, das ist hart. Mehr kann ich da nicht sagen, sorry.

Hart aber Gerecht Belehr großes Grinsen
19.06.06 18:45
hutzi hutzi ist männlich
fighters-from-hell.de


images/avatars/avatar-2533.gif

Dabei seit: 13.03.05
Beiträge: 396
Fähigkeiten: WBB Lite 1 Fortgeschritten
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

also bitte, wenn ganz oben deutlichst erklärt von Xeranon das richtig steht, und dann folgen noch Posts ...

aber ok, wenn ich an meine Einbauanfänge zurückdenke, halt ich lieber mal die Schnauze *gg*
19.06.06 18:48 hutzi ist offline E-Mail WWW Finden Als Freund hinzufügen
BMWZ4 BMWZ4 ist männlich
Mitglied


Dabei seit: 18.06.06
Beiträge: 220
Herkunft: Sendenhorst
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

Zitat:
Original von hutzi
aber ok, wenn ich an meine Einbauanfänge zurückdenke, halt ich lieber mal die Schnauze *gg*


genau, ich habe nämlich schon wieder nen prob **super mega giga doll schäm**

wenn ich jetzt ne kategorie erstellen will kommt folgendes:

php:
1:
2:
3:
4:
5:
6:
7:
[B]SQL-DATABASE ERROR[/B]

Database error in WoltLab Burning BoardInvalid SQLINSERT INTO bb1_boards (styleid,parentid,parentlist,childlist,boardorder,title,password,description,allowbbcode,allowimages,allowhtml,allowsmilies,allowicons,daysprune,threadsperpage,postsperpage,postorder,hotthread_reply,hotthread_view,closed,isboard,invisible),exurl VALUES ('','0','0','0','6','','','','1','1','0','1','1','0','0','0','0','0','0','0','1','0','')
mysql errorYou have an error in your SQL syntaxCheck the manual that corresponds to your MySQL server version for the right syntax to use near 'exurl VALUES ('','0','0','0','6','','','','1','1','0','1','1
mysql error number1064
Date19.06.2006 20:33[/B] /wbblite/acp/board.php
Referer:


und noch mal:**super mega giga doll schäm**

Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von BMWZ4: 19.06.06 20:35.

19.06.06 20:34 BMWZ4 ist offline E-Mail Finden Als Freund hinzufügen
eichi
Mitglied


Dabei seit: 16.01.04
Beiträge: 2.383

Antworten Zitieren Editieren Melden       UP

poste bitte mal die gesamte acp/board.php Augenzwinkern

danke smile
19.06.06 21:08 eichi ist offline Finden Als Freund hinzufügen
BMWZ4 BMWZ4 ist männlich
Mitglied


Dabei seit: 18.06.06
Beiträge: 220
Herkunft: Sendenhorst
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

also:

php:
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:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
<?php
require ("./global.php");
isAdmin();

if(isset($_REQUEST['action'])) $action=$_REQUEST['action'];
else $action="view";

function makeboardlist($boardid,$x=0) {
 global $boardcache$session$maxcolspan;

 if(!isset($boardcache[$boardid])) return;

 while (list($key1,$val1) = each($boardcache[$boardid])) {
  while(list($key2,$boards) = each($val1)) {
   $count countboards($boardcache[$boardid]);
   unset($options);
   for($i 1$i <= $count$i++) $options .= makeoption($i,$i,$boards['boardorder'],1);
   $colspan=$maxcolspan-$x;
   $temp=$maxcolspan-($maxcolspan-$x);
   if($temp$tds=str_repeat("<td class=\"secondrow\">&nbsp;&nbsp;</td>",$temp);
   else $tds="";
   eval ("\$out .= \"".gettemplate("board_viewbit")."\";");
   $out .= makeboardlist($boards['boardid'],$x+1);
  }
 }
 unset($boardcache[$boardid]);
 return $out;
}

function countboards($array) {
 $count=0;
 reset($array);
 while(list($key,$val)=each($array)) $count+=count($val);
 return $count;
}

if($action == "view") {
 if(isset($_POST['send'])) {
  reset($_POST['boardorder']);
  while(list($key,$val)=each($_POST['boardorder'])) $db->query("UPDATE bb".$n."_boards SET boardorder='$val' WHERE boardid = '$key'");
 }

 $maxcolspan=0;
 $result $db->query("SELECT boardid, parentid, boardorder, title, parentlist FROM bb".$n."_boards ORDER by parentid ASC, boardorder ASC");
 while ($row $db->fetch_array($result)) {
  $temp=count(explode(",",$row['parentlist']));
  if($temp>$maxcolspan$maxcolspan=$temp;
  $boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;
 }
 $boardlist makeboardlist(0);
 $maxcolspan+=2;
 eval("print(\"".gettemplate("board_view")."\");");
}

if($action == "add") {
 if(isset($_POST['send'])) {
  reset($_POST);
  while(list($key,$val)=each($_POST)) $$key=$val;

  if($parentid==0$parentlist="0";
  else {
   $result $db->query_first("SELECT parentlist FROM bb".$n."_boards WHERE boardid = '$parentid'");
   $parentlist $result['parentlist'].",".$parentid;
  }

  $prefix preg_replace("/\s*\n\s*/","\n",trim($prefix));

  list($boardorder)=$db->query_first("SELECT MAX(boardorder) FROM bb".$n."_boards WHERE parentid = '$parentid'");
  $boardorder+=1;

  $db->query("INSERT INTO bb".$n."_boards (styleid,parentid,parentlist,childlist,boardorder,title,password,description,allowbbcode,allowimages,allowhtml,allowsmilies,allowicons,daysprune,threadsperpage,postsperpage,postorder,hotthread_reply,hotthread_view,closed,isboard,invisible),exurl
  VALUES ('$style_set','$parentid','$parentlist','0','$boardorder','".addslashes($title)."','".addslashes($password)."','".addslashes($description)."','$allowbbcode','$allowimages','$allowhtml','$allowsmilies','$allowicons','$daysprune','".intval($threadsperpage)."','".intval($postsperpage)."','$postorder','".intval($hotthread_reply)."','".intval($hotthread_view)."','$closed','$isboard','$invisible','$exurl')");
  $insertid $db->insert_id();

  if($parentlist!='0'$db->query("UPDATE bb".$n."_boards SET childlist=CONCAT(childlist,',$insertid') WHERE boardid IN ($parentlist)");

  if($isboard==1) for($i 0$i count($boardmods); $i++) $db->query("REPLACE INTO bb".$n."_moderators VALUES ('$boardmods[$i]','$insertid')");

  $tempbp=array();
  $tempsp=array();
  $temprp=array();
  if(is_array($boardpermission)) while(list($key,$val)=each($boardpermission)) if($val!='*'$tempbp[$val]=1;
  if(is_array($startpermission)) while(list($key,$val)=each($startpermission)) if($val!='*'$tempsp[$val]=1;
  if(is_array($replypermission)) while(list($key,$val)=each($replypermission)) if($val!='*'$temprp[$val]=1;

  $result $db->query("SELECT groupid FROM bb".$n."_groups");
  while($row=$db->fetch_array($result)) $db->query("REPLACE INTO bb".$n."_permissions VALUES ('$insertid','$row[groupid]','".ifelse($boardpermission[0]=='*',"1",$tempbp[$row[groupid]])."','".ifelse($startpermission[0]=='*',"1",$tempsp[$row[groupid]])."','".ifelse($replypermission[0]=='*',"1",$temprp[$row[groupid]])."')");

  header("Location: board.php?action=view&sid=$session[hash]");
  exit();
 }

 $result $db->query("SELECT boardid, parentid, boardorder, title FROM bb".$n."_boards ORDER by parentid ASC, boardorder ASC");
 while ($row $db->fetch_array($result)) $boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;

 $parentid_options makeboardoptions(0);

 $result $db->query("SELECT groupid, title FROM bb".$n."_groups ORDER BY title ASC");
 while($row $db->fetch_array($result)) $groupoptions.=makeoption($row['groupid'],$row['title'],"",0);
 $db->free_result($result);

 $result $db->query("SELECT styleid, stylename FROM bb".$n."_styles WHERE default_style <> 1 ORDER BY stylename ASC");
 while($row $db->fetch_array($result)) $style_options .= makeoption($row['styleid'],$row['stylename'],"",0);
 $db->free_result($result);

 $result $db->query("SELECT userid, username FROM bb".$n."_users LEFT JOIN bb".$n."_groups USING (groupid) WHERE ismod = 1 OR issupermod = 1 ORDER BY username ASC");
 while($row $db->fetch_array($result)) $mod_options .= makeoption($row['userid'],$row['username'],"",0);
 $db->free_result($result);

 eval("print(\"".gettemplate("board_add")."\");");
}

if($action == "edit") {
 $boardid=intval($_REQUEST[boardid]);
 $board $db->query_first("SELECT * FROM bb".$n."_boards WHERE boardid = '$boardid'");
 if(isset($_POST['send'])) {
  reset($_POST);
  while(list($key,$val)=each($_POST)) $$key=$val;

  if($board['parentid']!=$parentid) {
   $threadcount=$board['threadcount'];
   $postcount=$board['postcount'];

   if($parentid!=0) {
    list($parentlist)=$db->query_first("SELECT parentlist FROM bb".$n."_boards WHERE boardid='$parentid'");
    $parentlist.=",$parentid";
    $db->query("UPDATE bb".$n."_boards SET threadcount=threadcount+$threadcount, postcount=postcount+$postcount WHERE boardid IN ($parentlist)");
    updateList($parentlist,"$boardid,$board[childlist]","childlist");
   }
   else $parentlist=0;
   $parentchange=" parentid='$parentid', parentlist='$parentlist',";

   if($board['parentlist']!="0") {
    $db->query("UPDATE bb".$n."_boards SET threadcount=threadcount-$threadcount, postcount=postcount-$postcount WHERE boardid IN ($board[parentlist])");
    updateList($board['parentlist'],"$boardid,$board[childlist]","childlist",true);

    updateBoardInfo("$board[parentlist]",$board['lastposttime']);
   }

   if($parentlist!="0"updateBoardInfo("$parentlist",$board['lastposttime']);
  }

  if($board['parentid']!=$parentid && $board['childlist']!="0" && $board['childlist']!="") {
   updateList($board['childlist'],"$board[parentlist],$boardid","parentlist",true);
   updateList($board['childlist'],"$parentlist,$boardid","parentlist");
  }

  $prefix preg_replace("/\s*\n\s*/","\n",trim($prefix));

  $db->query("UPDATE bb".$n."_boards SET
  styleid='$style_set',$parentchange title='".addslashes($title)."', password='".addslashes($password)."', description='".addslashes($description)."', allowbbcode='$allowbbcode', allowimages='$allowimages', allowhtml='$allowhtml', allowsmilies='$allowsmilies', allowicons='$allowicons', daysprune='$daysprune',
  threadsperpage='".intval($threadsperpage)."', postsperpage='".intval($postsperpage)."', postorder='$postorder', hotthread_reply='".intval($hotthread_reply)."', hotthread_view='".intval($hotthread_view)."', closed='$closed', isboard='$isboard', invisible='$invisible', exurl='$exurl'
  WHERE boardid='$boardid'");

  $db->query("DELETE FROM bb".$n."_moderators WHERE boardid='$boardid'");
  if($isboard==1) for($i 0$i count($boardmods); $i++) $db->query("INSERT INTO bb".$n."_moderators VALUES ('$boardmods[$i]','$boardid')");

  $db->query("DELETE FROM bb".$n."_permissions WHERE boardid='$boardid'");

  $tempbp=array();
  $tempsp=array();
  $temprp=array();
  for($i=0;$i<count($boardpermission);$i++) if($boardpermission[$i]!='*'$tempbp[$boardpermission[$i]]=1;
  for($i=0;$i<count($startpermission);$i++) if($startpermission[$i]!='*'$tempsp[$startpermission[$i]]=1;
  for($i=0;$i<count($replypermission);$i++) if($replypermission[$i]!='*'$temprp[$replypermission[$i]]=1;

  $result $db->query("SELECT groupid FROM bb".$n."_groups");
  while($row=$db->fetch_array($result)) $db->query("INSERT INTO bb".$n."_permissions VALUES ('$boardid','$row[groupid]','".ifelse($boardpermission[0]=='*',"1",$tempbp[$row[groupid]])."','".ifelse($startpermission[0]=='*',"1",$tempsp[$row[groupid]])."','".ifelse($replypermission[0]=='*',"1",$temprp[$row[groupid]])."')");

  header("Location: board.php?action=view&sid=$session[hash]");
  exit();
 }

 reset($board);
 while(list($key,$val)=each($board)) $board[$key]=htmlspecialchars($val);

 $sel_isboard[$board['isboard']]=" selected";
 $sel_closed[$board['closed']]=" selected";
 $sel_invisible[$board['invisible']]=" selected";
 $sel_allowbbcode[$board['allowbbcode']]=" selected";
 $sel_allowimages[$board['allowimages']]=" selected";
 $sel_allowhtml[$board['allowhtml']]=" selected";
 $sel_allowsmilies[$board['allowsmilies']]=" selected";
 $sel_allowicons[$board['allowicons']]=" selected";
 $sel_daysprune[$board['daysprune']]=" selected";
 $sel_postorder[$board['postorder']]=" selected";

 $result $db->query("SELECT boardid, parentid, boardorder, title FROM bb".$n."_boards WHERE boardid <> '$boardid' ORDER by parentid ASC, boardorder ASC");
 while ($row $db->fetch_array($result)) $boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;
 $db->free_result($result);

 $parentid_options makeboardoptions(0,1,1,$board['parentid']);

 $result $db->query("SELECT userid FROM bb".$n."_moderators WHERE boardid='$boardid'");
 while($row=$db->fetch_array($result)) $mods[]=$row['userid'];
 $db->free_result($result);

 $result $db->query("SELECT userid, username FROM bb".$n."_users LEFT JOIN bb".$n."_groups USING (groupid) WHERE ismod = 1 OR issupermod = 1 ORDER BY username ASC");
 while($row $db->fetch_array($result)) $mod_options .= makeoption($row['userid'],$row['username'],$mods,1);
 $db->free_result($result);

 $result $db->query("SELECT styleid, stylename FROM bb".$n."_styles WHERE default_style <> 1 ORDER BY stylename ASC");
 while($row $db->fetch_array($result)) $style_options .= makeoption($row['styleid'],$row['stylename'],$board['styleid'],1);
 $db->free_result($result);

 $count_bp 0;
 $count_sp 0;
 $count_rp 0;
 $result $db->query("SELECT * FROM bb".$n."_permissions WHERE boardid='$boardid'");
 while($row=$db->fetch_array($result)) {
  if($row['boardpermission']==1$bps[]=$row['groupid'];
  if($row['startpermission']==1$sps[]=$row['groupid'];
  if($row['replypermission']==1$rps[]=$row['groupid'];
  $count_bp += $row['boardpermission'];
  $count_sp += $row['startpermission'];
  $count_rp += $row['replypermission'];
 }
 $db->free_result($result);

 $result $db->query("SELECT groupid, title FROM bb".$n."_groups ORDER BY groupid ASC");
 $count=$db->num_rows($result);

 if($count==$count_bp$bp_selected " selected";
 if($count==$count_sp$sp_selected " selected";
 if($count==$count_rp$rp_selected " selected";

 while($row $db->fetch_array($result)) {
  $bp_options .= makeoption($row['groupid'],$row['title'],$bps,ifelse($bp_selected,0,1));
  $sp_options .= makeoption($row['groupid'],$row['title'],$sps,ifelse($sp_selected,0,1));
  $rp_options .= makeoption($row['groupid'],$row['title'],$rps,ifelse($rp_selected,0,1));
 }
 $db->free_result($result);

 eval("print(\"".gettemplate("board_edit")."\");");
}

function emptyboard($boardid) {
 global $board$db$n;

 /* countuserposts */
 if($board['countuserposts']==1) {
  $result $db->query("SELECT COUNT(p.postid) AS posts, p.userid FROM bb".$n."_posts p, bb".$n."_threads t WHERE p.threadid=t.threadid AND t.boardid='$boardid' AND p.visible = 1 AND p.userid>0 GROUP BY p.userid");
  while($row=$db->fetch_array($result)) $db->unbuffered_query("UPDATE bb".$n."_users SET userposts=userposts-'$row[posts]' WHERE userid='$row[userid]'",1);
 }

 /* delete posts & threads */
 $threadids="";
 $result $db->query("SELECT threadid FROM bb".$n."_threads WHERE boardid='$boardid'");
 while($row=$db->fetch_array($result)) $threadids.=",".$row['threadid'];
 $db->unbuffered_query("DELETE FROM bb".$n."_posts WHERE threadid IN (0$threadids)",1);
 $db->unbuffered_query("DELETE FROM bb".$n."_threads WHERE pollid IN (0$threadids) AND closed=3",1);
 $db->unbuffered_query("DELETE FROM bb".$n."_announcements WHERE threadid IN (0$threadids)",1);
 $db->unbuffered_query("DELETE FROM bb".$n."_threads WHERE boardid='$boardid'",1);
 $db->unbuffered_query("DELETE FROM bb".$n."_subscribethreads WHERE threadid IN (0$threadids)",1);

 /* delete poll(options|votes) */
 $pollids="";
 $result $db->query("SELECT pollid FROM bb".$n."_polls WHERE threadid IN (0$threadids)");
 while($row=$db->fetch_array($result)) $pollids.=",".$row['pollid'];
 $db->unbuffered_query("DELETE FROM bb".$n."_polloptions WHERE pollid IN (0$pollids)",1);
 $db->unbuffered_query("DELETE FROM bb".$n."_votes WHERE id IN (0$pollids) AND votemode=1",1);
 $db->unbuffered_query("DELETE FROM bb".$n."_polls WHERE pollid IN (0$pollids)",1);

 /* update parent boards */
 if($board['parentid']!=0) {
  $db->unbuffered_query("UPDATE bb".$n."_boards SET threadcount=threadcount-'$board[threadcount]', postcount=postcount-'$board[postcount]' WHERE boardid IN ($board[parentlist])",1);
  updateBoardInfo("$board[parentlist]",0,$board['lastthreadid']);
 }
}

if($action=="del") {
 $boardid=intval($_REQUEST['boardid']);
 $board=$db->query_first("SELECT * FROM bb".$n."_boards WHERE boardid = '$boardid'");

 if(isset($_POST['send'])) {
  emptyboard($boardid);
  $db->unbuffered_query("DELETE FROM bb".$n."_boards WHERE boardid = '$boardid'",1);
  if($board['parentid']!=0$db->unbuffered_query("UPDATE bb".$n."_boards SET childlist = SUBSTRING(REPLACE(CONCAT(',',childlist,','),',$boardid,',','),2,LENGTH(REPLACE(CONCAT(',',childlist,','),',$boardid,',','))-2) WHERE boardid IN ($board[parentlist])",1);

  if($board['childlist']!="0") {
   $db->unbuffered_query("UPDATE bb".$n."_boards SET parentlist = SUBSTRING(REPLACE(CONCAT(',',parentlist,','),',$boardid,',','),2,LENGTH(REPLACE(CONCAT(',',parentlist,','),',$boardid,',','))-2) WHERE boardid IN ($board[childlist])",1);
   $db->unbuffered_query("UPDATE bb".$n."_boards SET parentid='$board[parentid]' WHERE parentid = '$boardid'",1);
  }
  $db->unbuffered_query("DELETE FROM bb".$n."_moderators WHERE boardid = '$boardid'",1);
  $db->unbuffered_query("DELETE FROM bb".$n."_permissions WHERE boardid = '$boardid'",1);
  $db->unbuffered_query("DELETE FROM bb".$n."_subscribeboards WHERE boardid = '$boardid'",1);

  header("Location: board.php?action=view&sid=$session[hash]");
  exit();
 }

 eval("print(\"".gettemplate("board_del")."\");");
}

if($action=="sync") {
 $result $db->query("SELECT boardid, parentid FROM bb".$n."_boards ORDER by parentid ASC");
 while ($row $db->fetch_array($result)) $boardcache[$row['parentid']][$row['boardid']] = $row;

 function syncBoards($parentid,$parentlist="0") {
  global $boardcache$db$n;

  if(!isset($boardcache[$parentid])) {
   if($parentid!=0$db->query("UPDATE bb".$n."_boards SET childlist='0' WHERE boardid='$parentid'");
   return;
  }

  $childlist="";
  $updatelist="";
  while(list($boardid,$board)=each($boardcache[$parentid])) {
   $childlist.=",$boardid";
   $childlist.=syncBoards($boardid,$parentlist.",$boardid");

   $updatelist.=",$boardid";
  }

  $db->query("UPDATE bb".$n."_boards SET parentlist='$parentlist' WHERE boardid IN (0$updatelist)");
  if($parentid!=0$db->query("UPDATE bb".$n."_boards SET childlist='0$childlist' WHERE boardid='$parentid'");

  return $childlist;
 }

 syncBoards(0);

 header("Location: board.php?action=view&sid=$session[hash]");
 exit();
}
?>


hoffe ihr könnt mir helfen...
20.06.06 14:26 BMWZ4 ist offline E-Mail Finden Als Freund hinzufügen
Gender Gender ist männlich
Mitglied


Dabei seit: 08.04.06
Beiträge: 56
Herkunft: Germany
Forenversion: wbblite 1.0.2

Antworten Zitieren Editieren Melden       UP

Please help:

SQL-DATABASE ERROR

Database error in WoltLab Burning Board: Invalid SQL: INSERT INTO bb1_boards (styleid,parentid,parentlist,childlist,boardorder,title,password,descriptio
n,allowbbcode,allowimages,allowhtml,allowsmilies,allowicons,daysprune,threa
dsperpage,postsperpage,postorder,hotthread_reply,hotthread_view,closed,isbo
ard,invisible,exurl,schablone) VALUES ('','1','0,1','0','6','bla','','bla','1','1','0','1','1','0','0','0','0','0
','0','0','1','0','blabls'')
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''blabls'')' at line 2
mysql error number: 1064
Date: 08.08.2006 @ 12:43
Script: /acp/board.php
Referer: http://forum.bacardi-gfx.de/acp/board.php?action=add&sid=

Ich hab die forigen beiträge gelesen aber hab meienn fehler nicht gefunden hier noch die acp/board.php

Dateianhang:
unknown board.php (16 KB, 1 mal heruntergeladen)


__________________
GFX Evolution Board

Wir freuen uns auf deinen Besuch und natürlich auch über Aktive USer
08.08.06 12:45 Gender ist offline E-Mail Finden Als Freund hinzufügen
XeRanoN XeRanoN ist männlich
Mitglied


Dabei seit: 23.04.04
Beiträge: 1.298
Fähigkeiten: WBB Lite 1 Profi
Forenversion: Lite 1.0

Themenstarter Thema begonnen von XeRanoN
Antworten Zitieren Editieren Melden       UP

Einbaufehler.
08.08.06 16:11 XeRanoN ist offline E-Mail Finden Als Freund hinzufügen
Gender Gender ist männlich
Mitglied


Dabei seit: 08.04.06
Beiträge: 56
Herkunft: Germany
Forenversion: wbblite 1.0.2

Antworten Zitieren Editieren Melden       UP

lol das weiss ich auch ich hab ja nur hier gepostet weil ich den fehler nicht finde^^ siehe anhang im ersten Beitrag Board.hph

__________________
GFX Evolution Board

Wir freuen uns auf deinen Besuch und natürlich auch über Aktive USer
08.08.06 18:45 Gender ist offline E-Mail Finden Als Freund hinzufügen
Mörderschaf
Mitglied


Dabei seit: 12.10.06
Beiträge: 22

Antworten Zitieren Editieren Melden       UP

edit

Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von Mörderschaf: 22.10.06 20:22.

22.10.06 20:11 Mörderschaf ist offline E-Mail Finden Als Freund hinzufügen
Duckbuster Duckbuster ist männlich
Mitglied


Dabei seit: 26.10.07
Beiträge: 2
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

SQL-DATABASE ERROR

Database error in WoltLab Burning Board: Invalid SQL: UPDATE bb1_boards SET styleid='', title='Hangman', password='', description='Wer das Spiel nicht kennt, hat die Welt verpennt', allowbbcode='1', allowimages='1', allowhtml='0', allowsmilies='1', allowicons='1', daysprune='0', threadsperpage='0', postsperpage='0', postorder='0', hotthread_reply='0', hotthread_view='0', closed='0', isboard='1', invisible='0', exurl='http://s208558626.online.de/hangman.php' WHERE boardid='4'
mysql error: Unknown column 'exurl' in 'field list'
mysql error number: 1054
Date: 26.10.2007 @ 14:19
Script: /acp/board.php
Referer: http://s208558626.online.de/acp/board.ph...&boardid=4&sid=

Habe auch diesen Fehler, soll bekanntlich ja ein Einbaufehler sein, aber ich finde ihn bei mir nicht. Kann mir vielleicht jemand sagen wo der Fehler liegt?

.../acp/board.php <-- im Anhang

Edit:
Oh nein, ich kann jetzt überhaupt keine Foren mehr erstellen. Bitte um schnelle Hilfe.

Dateianhang:
unknown board.php (16 KB, 0 mal heruntergeladen)

Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von Duckbuster: 26.10.07 14:46.

26.10.07 14:44 Duckbuster ist offline E-Mail WWW Finden Als Freund hinzufügen Füge Duckbuster in deine Kontaktliste ein
Slugger Slugger ist männlich
Mitglied


Dabei seit: 11.04.05
Beiträge: 472
Fähigkeiten: WBB2 Anfänger; WBB Lite 2 Anfänger; WBB Lite 1 Fortgeschritten
Herkunft: Innercity
Forenversion: 2.3; Lite 2.0

Antworten Zitieren Editieren Melden       UP

Das sieht eher nach vergessenr install.php ausführung aus! Irre

__________________
Cu,
Slugger



26.10.07 15:52 Slugger ist offline Finden Als Freund hinzufügen
Duckbuster Duckbuster ist männlich
Mitglied


Dabei seit: 26.10.07
Beiträge: 2
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

Oh danke, genau das war der Fehler. Irre
27.10.07 11:25 Duckbuster ist offline E-Mail WWW Finden Als Freund hinzufügen Füge Duckbuster in deine Kontaktliste ein
Blueangie
Mitglied


Dabei seit: 10.01.07
Beiträge: 17
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

Hallo,

habe jetzt schon alles Versucht und ständig habe ich diese Fehlermeldung wenn ich im ACP ein Forum erstellen möchte.

SQL-DATABASE ERROR

Database error in WoltLab Burning Board: Invalid SQL: INSERT INTO bb1_boards (bild,bildname,sbanzeige,styleid,parentid,parentlist,childlist,boardorder,t
itle,password,description,allowbbcode,allowimages,allowhtml,allowsmilies,al
lowicons,daysprune,threadsperpage,postsperpage,postorder,hotthread_reply,ho
tthread_view,closed,isboard,invisible,exurl,countghpost,iscalboard) VALUES ('1','.','0','','1','0,1','0','2','Test','','(Externer Link!)','1','1','0','1','1','0','0','0','0','0','0','0','1','1','','1,'1')
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1')' at line 2
mysql error number: 1064
Date: 17.01.2008 @ 08:44
Script: /acp/board.php
Referer: http://www.meine Domän.de/acp/board.php?action=add&sid=


Habe mal die board.php angehängt!
Ich finde den Fehler einfach nicht, könnte mir BITTE jemand helfen.

Vielen Dank im vorras!

GLG
Blueangie

Dateianhang:
unknown board.php (19 KB, 0 mal heruntergeladen)
17.01.08 09:05 Blueangie ist offline E-Mail Finden Als Freund hinzufügen
Seiten (3): « vorherige 1 [2] 3 nächste » Baumstruktur | Brettstruktur
Gehe zu:

Neues Thema erstellen Antwort erstellen

yourWBB » WoltLab Burning Board Generation 2 * » Alles von und für das WBB Lite 1.0.x » [WBB Lite 1.0.x] Hacks und Addons » Forum fungiert als externer Link