Página 1 de 1
problemas con MOD User Blog y viewtopic.php
Publicado: 04 Abr 2010, 05:34
por widosis_
URL:
http://territorioin.zxq.net/phpBB3/
Versión phpBB: phpBB3 (3.0.7)
MODs Instalados: User blog Mod
Plantilla(s) usada(s): avalon
Servidor: windows
Actualización desde otra versión:
Conversión desde otro sistema de foros:
hola pues estaba intentando instalar el modulo blog user mod pero me sale este error cuando voy a ver un tema:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /www/zxq.net/t/e/r/territorioin/htdocs/phpBB3/viewtopic.php on line 1140
esto es lo ke tengo escrito en viewtopic.php:
1139 'search' => ($auth->acl_get['u_search']) ? append_sid("{$phpbb_root_path}search.$phpEx",
1140 'blog_count' => ((isset($row['blog_count'])) ? $row['blog_count'] : 0),
1141 'author_full' => get_username_string('full', $poster_id, $row['username'], $row['user_colour']),
aparte de ke is os fijais en la parte de arriba donde pone: Panel de Control de Usuario • 0 mensajes privados • ... me aparece el boton blog pero no aparece lo de desconexion ni usuarios =S
Re: problemas con MOD User Blog y viewtopic.php
Publicado: 04 Abr 2010, 08:40
por DaVidU
a mi me da que no has modificado bien el archivo viewtopic.php
revisaste el mod de nuevo si lo hiciste bien?
lo otro que dices (boton del blog) está en el archivo overall_header.html
es justo cuando te pide añadir esto en una nueva línea:
Código: Seleccionar todo
<!-- BEGIN blog_links -->
<li class="{blog_links.CLASS}"><a href="{blog_links.URL}">{blog_links.TEXT}</a></li>
<!-- END blog_links -->
Re: problemas con MOD User Blog y viewtopic.php
Publicado: 04 Abr 2010, 13:35
por widosis_
vale, mira pongo aki lo ke tenia ke hacer para instalar el modulo y lo ke tenia ke modificar en archivo:
Find
Tip: This may be a partial find and not the whole line.
CODE:SELECT ALL
'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
CODE:SELECT ALL
'blog_count' => ((isset($row['blog_count'])) ? $row['blog_count'] : 0),
y así es como lo tengo en mi archivo:
'jabber' => ($row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=jabber&u=$poster_id") : '',
'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",
'blog_count' => ((isset($row['blog_count'])) ? $row['blog_count'] : 0),
'author_full' => get_username_string('full', $poster_id, $row['username'], $row['user_colour']),
son las lineas ke dice ke falla =S
luego aki voy aponer las otras modificaciones ke he tenido ke hacer:
Find
Tip: This may be a partial find and not the whole line.
CODE:SELECT ALL
// Load custom profile fields
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
CODE:SELECT ALL
// Start Add User Blog Mod ------------------
if (isset($config['user_blog_enable']) && $config['user_blog_enable'])
{
include($phpbb_root_path . 'blog/includes/constants.' . $phpEx);
include($phpbb_root_path . 'blog/plugins/plugins.' . $phpEx);
include($phpbb_root_path . 'blog/includes/functions.' . $phpEx);
include($phpbb_root_path . 'blog/includes/functions_view.' . $phpEx);
$user->add_lang('mods/blog/common');
new blog_plugins();
get_zebra_info($user->data['user_id'], true);
get_user_settings($id_cache);
}
// End Add User Blog Mod --------------------
mi archivo:
$db->sql_freeresult($result);
// Start Add User Blog Mod ------------------
if (isset($config['user_blog_enable']) && $config['user_blog_enable'])
{
include($phpbb_root_path . 'blog/includes/constants.' . $phpEx);
include($phpbb_root_path . 'blog/plugins/plugins.' . $phpEx);
include($phpbb_root_path . 'blog/includes/functions.' . $phpEx);
include($phpbb_root_path . 'blog/includes/functions_view.' . $phpEx);
$user->add_lang('mods/blog/common');
new blog_plugins();
get_zebra_info($user->data['user_id'], true);
get_user_settings($id_cache);
}
// End Add User Blog Mod --------------------
// Load custom profile fields
if ($config['load_cpf_viewtopic'])
{
y el ultimo:
Find
Tip: This may be a partial find and not the whole line.
CODE:SELECT ALL
// Dump vars into template
$template->assign_block_vars('postrow', $postrow);
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
CODE:SELECT ALL
// Start Add User Blog Mod ------------------
if (isset($config['user_blog_enable']) && $config['user_blog_enable'])
{
add_blog_links($poster_id, 'postrow.custom_fields', $user_cache[$poster_id]);
}
// End Add User Blog Mod --------------------
mi archivo:
}
// Dump vars into template
$template->assign_block_vars('postrow', $postrow);
// Start Add User Blog Mod ------------------
if (isset($config['user_blog_enable']) && $config['user_blog_enable'])
{
add_blog_links($poster_id, 'postrow.custom_fields', $user_cache[$poster_id]);
}
// End Add User Blog Mod --------------------
if (!empty($cp_row['blockrow']))
Re: problemas con MOD User Blog y viewtopic.php
Publicado: 04 Abr 2010, 16:26
por ahh72
estube mirando ese error en la red y se presenta porque algo hiciste mal en la edicion del archivo, te recomiendo mirar y revisar bien los pasos de instalacion del mod, nos comentas si todo esta conforme.
saludos