Re: [DEV] phpBB Web
Publicado: 27 Mar 2011, 11:19
ok pues veré entonces donde la he fastidiado yo. y de paso intentare echarle un ojo a lo de por que se borran si consigo algo te aviso ^^
phpBB España Oficial, Soporte Internacional Oficial del sistema de foros phpBB en Español, extensiones, estilos, traducciones, guías, tutoriales, videos, redes sociales, webmaster.
https://www.phpbb-es.com/foro/
Para las secciones que se eliminan al editar una categoría, prueba haciendo esto :Omega100 escribió:ok pues veré entonces donde la he fastidiado yo. y de paso intentare echarle un ojo a lo de por que se borran si consigo algo te aviso ^^
Código: Seleccionar todo
raíz/includes/acp/acp_phpbbweb.php
Código: Seleccionar todo
if ($action == 'edit')
{
$msg = '';
// We are turning a category into a link - but need to decide what to do with the subforums.
$action_sections = (sizeof($childrens)) ? request_var('action_sections', '') : '';
$sections_to_ids = (sizeof($childrens)) ? request_var('sections_to_id', 0) : 0;
if ($action_sections == 'delete' || $action_sections == 'move')
{
$childrens = $this->get_page_branch($page_id, 'childrens', 'descending', false);
$sections_ids = array();
foreach ($childrens as $_row)
{
$sections_ids[] = $_row['page_id'];
}
if ($action_sections == 'delete')
{
if (sizeof($sections_ids))
{
// Delete sectins under this category
$sql = 'DELETE FROM ' . PHPBBWEB_PAGE_TABLE . '
WHERE ' . $db->sql_in_set('page_id', $sections_ids);
$db->sql_query($sql);
// Delete attach under this deleted sections
$this->phpbbweb_delete_attachments($sections_ids);
}
$msg = $user->lang['ACP_CATEGORY_DELETED'];
}
if ($action_sections == 'move')
{
if (!$sections_to_ids)
{
trigger_error($user->lang['ACP_CATEGORY_NO_DESTINATION_FOUND'] . adm_back_link($this->u_action . '&page_id=' . $parent_id));
}
$sql = 'UPDATE ' . PHPBBWEB_PAGE_TABLE . "
SET parent_id = $sections_to_ids
WHERE " . $db->sql_in_set('page_id', $sections_ids);
$db->sql_query($sql);
$msg = $user->lang['ACP_PAGE_MOVED'];
// trigger_error($user->lang['ACP_CATEGORY_MOVED'] . adm_back_link($this->u_action . '&page_id=' . $parent_id));
}
}
if ($data['parent_id'] != $page_data['parent_id'])
{
$data['page_order'] = $this->get_new_order($parent_id, $page_type);
}
$sql = 'UPDATE ' . PHPBBWEB_PAGE_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $data) . '
WHERE page_id = ' . $page_id;
$result = $db->sql_query($sql);
// Submit Attachments
$data['attachment_data'] = $message_parser->attachment_data;
$this->phpbbweb_update_attachments($data, $page_id);
$msg = $user->lang['ACP_MESSAGE_UPDATED'] . '<br />' . $msg;
trigger_error($msg . adm_back_link($this->u_action . '&page_id=' . $parent_id));
}
Código: Seleccionar todo
if ($action == 'edit')
{
$msg = '';
// We are turning a category into a sectin or block - but need to decide what to do with the childs.
if ($page_type != $page_data['page_type'])
{
$action_sections = (sizeof($childrens)) ? request_var('action_sections', '') : '';
$sections_to_ids = (sizeof($childrens)) ? request_var('sections_to_id', 0) : 0;
if ($action_sections == 'delete' || $action_sections == 'move')
{
$childrens = $this->get_page_branch($page_id, 'childrens', 'descending', false);
$sections_ids = array();
foreach ($childrens as $_row)
{
$sections_ids[] = $_row['page_id'];
}
if ($action_sections == 'delete')
{
if (sizeof($sections_ids))
{
// Delete sectins under this category
$sql = 'DELETE FROM ' . PHPBBWEB_PAGE_TABLE . '
WHERE ' . $db->sql_in_set('page_id', $sections_ids);
$db->sql_query($sql);
// Delete attach under this deleted sections
$this->phpbbweb_delete_attachments($sections_ids);
}
$msg = $user->lang['ACP_CATEGORY_DELETED'];
}
if ($action_sections == 'move')
{
if (!$sections_to_ids)
{
trigger_error($user->lang['ACP_CATEGORY_NO_DESTINATION_FOUND'] . adm_back_link($this->u_action . '&page_id=' . $parent_id));
}
$sql = 'UPDATE ' . PHPBBWEB_PAGE_TABLE . "
SET parent_id = $sections_to_ids
WHERE " . $db->sql_in_set('page_id', $sections_ids);
$db->sql_query($sql);
$msg = $user->lang['ACP_PAGE_MOVED'];
}
}
}
if ($data['parent_id'] != $page_data['parent_id'])
{
$data['page_order'] = $this->get_new_order($parent_id, $page_type);
}
$sql = 'UPDATE ' . PHPBBWEB_PAGE_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $data) . '
WHERE page_id = ' . $page_id;
$result = $db->sql_query($sql);
// Submit Attachments
$data['attachment_data'] = $message_parser->attachment_data;
$this->phpbbweb_update_attachments($data, $page_id);
$msg = $user->lang['ACP_MESSAGE_UPDATED'] . '<br />' . $msg;
trigger_error($msg . adm_back_link($this->u_action . '&page_id=' . $parent_id));
}
Omega100 escribió:No, en prosilver esta bien así que debe ser que falta por cerrar alguna capa dado que yo sustituí solo over_heal y el pie de pagina, así que tiene que ser algo de eso, probare con el firebug a ver si pillo que capa es.
Lo ideal sería al revés, que phpbbweb estuviera en el raíz y el foro en una carpeta...Elpingo escribió:Hola Grabriel,
Instalé este super Mod en un foro de pruebas y el foro está en la raíz del dominio, obviamente el mod lo puse dentro de un directorio, modifique el config pero no logro que redireccione, se podría hacer esto? Te aclaro que el foro tiene instalado el SEO, por las dudas!
la url del MOD: http://www.argentinatodos.com.ar/inicio
yo quisiera que si pones solo el dominio te redireccione al directorio inicio
el config.php lo tengo así:Código: Seleccionar todo
define('PHPBB_ROOT_PATH', './../'); define('PHPBBWEB_ROOT', './inicio/');
Aún no descubro el fallo, en cuanto lo tenga avisoOmega100 escribió:Fail, en Prosilver también esta el bug, pero solo aparece ese fallo cuando el buscador no esta activado... alguna idea?
la vista previa es sólo para tener idea de como quedará, pero no es una vista real, por lo que si hay mas cosas no las mostrará.Omega100 escribió:Otro dato de interés: Cuando le das a vista previa esa columna no sale.