HavenFanForum
Dies ist eine vorgefertigte Schablone.
Bitte fülle soviel aus, wie dir nur Möglich ist, du kannst auch gerne noch mehr Angaben machen.
Ich habe gerade mein Portal eingebaut und kann weder Boxen erstellen, noch bearbeiten. da wird dieses hier angezeigt:
query("UPDATE bb".$n."_portal_boxes SET boxorder='$val' WHERE boxid = '$key'"); } $result = $db->query("SELECT boxid, title, position, boxorder FROM bb".$n."_portal_boxes ORDER by position ASC, boxorder ASC"); while ($row = $db->fetch_array($result)) { $boxcache[$row['position']][$row['boxorder']][$row['boxid']] = $row; } $leftboxlist = makeboxlist(0); $centerboxlist = makeboxlist(1); $rightboxlist = makeboxlist(2); eval("print(\"".gettemplate("portalbox_view")."\");"); } if($action == "add") { if(isset($_POST['send'])) { reset($_POST); while(list($key,$val)=each($_POST)) $$key=$val; $db->query("INSERT INTO bb".$n."_portal_boxes (boxid,title,content,logged,position,boxorder) VALUES (NULL,'".addslashes($title)."','".addslashes($content)."','$logged','$posit
ion','1')"); $insertid = $db->insert_id(); header("Location: portal.php?action=view&sid=$session[hash]"); exit(); } eval("print(\"".gettemplate("portalbox_add")."\");"); } if($action == "edit") { $boxid=intval($_REQUEST[boxid]); $box = $db->query_first("SELECT * FROM bb".$n."_portal_boxes WHERE boxid = '$boxid'"); if(isset($_POST['send'])) { reset($_POST); while(list($key,$val)=each($_POST)) $$key=$val; $db->query("UPDATE bb".$n."_portal_boxes SET title='".addslashes($title)."', content='".addslashes($content)."', logged='$logged', position='$position' WHERE boxid='$boxid'"); header("Location: portal.php?action=view&sid=$session[hash]"); exit(); } reset($box); while(list($key,$val)=each($box)) $box[$key]=htmlspecialchars($val); $sel_logged[$box['logged']]=" selected"; $sel_position[$box['position']]=" selected"; $db->free_result($result); eval("print(\"".gettemplate("portalbox_edit")."\");"); } if($action=="del") { $boxid=intval($_REQUEST['boxid']); $box=$db->query_first("SELECT * FROM bb".$n."_portal_boxes WHERE boxid = '$boxid'"); if(isset($_POST['send'])) { $db->unbuffered_query("DELETE FROM bb".$n."_portal_boxes WHERE boxid = '$boxid'",1); header("Location: portal.php?action=view&sid=$session[hash]"); exit(); } eval("print(\"".gettemplate("portalbox_del")."\");"); } ?>
Bitte fülle soviel aus, wie dir nur Möglich ist, du kannst auch gerne noch mehr Angaben machen.
Ich habe gerade mein Portal eingebaut und kann weder Boxen erstellen, noch bearbeiten. da wird dieses hier angezeigt:
query("UPDATE bb".$n."_portal_boxes SET boxorder='$val' WHERE boxid = '$key'"); } $result = $db->query("SELECT boxid, title, position, boxorder FROM bb".$n."_portal_boxes ORDER by position ASC, boxorder ASC"); while ($row = $db->fetch_array($result)) { $boxcache[$row['position']][$row['boxorder']][$row['boxid']] = $row; } $leftboxlist = makeboxlist(0); $centerboxlist = makeboxlist(1); $rightboxlist = makeboxlist(2); eval("print(\"".gettemplate("portalbox_view")."\");"); } if($action == "add") { if(isset($_POST['send'])) { reset($_POST); while(list($key,$val)=each($_POST)) $$key=$val; $db->query("INSERT INTO bb".$n."_portal_boxes (boxid,title,content,logged,position,boxorder) VALUES (NULL,'".addslashes($title)."','".addslashes($content)."','$logged','$posit
ion','1')"); $insertid = $db->insert_id(); header("Location: portal.php?action=view&sid=$session[hash]"); exit(); } eval("print(\"".gettemplate("portalbox_add")."\");"); } if($action == "edit") { $boxid=intval($_REQUEST[boxid]); $box = $db->query_first("SELECT * FROM bb".$n."_portal_boxes WHERE boxid = '$boxid'"); if(isset($_POST['send'])) { reset($_POST); while(list($key,$val)=each($_POST)) $$key=$val; $db->query("UPDATE bb".$n."_portal_boxes SET title='".addslashes($title)."', content='".addslashes($content)."', logged='$logged', position='$position' WHERE boxid='$boxid'"); header("Location: portal.php?action=view&sid=$session[hash]"); exit(); } reset($box); while(list($key,$val)=each($box)) $box[$key]=htmlspecialchars($val); $sel_logged[$box['logged']]=" selected"; $sel_position[$box['position']]=" selected"; $db->free_result($result); eval("print(\"".gettemplate("portalbox_edit")."\");"); } if($action=="del") { $boxid=intval($_REQUEST['boxid']); $box=$db->query_first("SELECT * FROM bb".$n."_portal_boxes WHERE boxid = '$boxid'"); if(isset($_POST['send'])) { $db->unbuffered_query("DELETE FROM bb".$n."_portal_boxes WHERE boxid = '$boxid'",1); header("Location: portal.php?action=view&sid=$session[hash]"); exit(); } eval("print(\"".gettemplate("portalbox_del")."\");"); } ?>