July 03, 2011 - 03:25 15:25
Hola a todos, bueno estaba instalando el Ultimate Portal, pero me salieron 3 errores en el index.template.php de mi tema :
buscar :
empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>'
reemplazar por :
(empty($context['top_menu_view']) ? (empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>') : '')
buscar :
// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
Agregar despues :
//Ultimate portal Top Menu
if(!empty($context['top_menu_view']))
{
echo '<div id="up_top_menu">', template_top_menu_ultimate_portal() ,'</div>';
}
//End Top Menu
buscar :
}
function template_body_below()
{
Reemplazar por :
//Ultimate Portal Column Left - Forum
$context['vblocks'] = false;
if (!empty($_REQUEST['board']) || !empty($_REQUEST['topic']))
$context['vblocks'] = true;
if (!empty($_REQUEST['action'])
&& !in_array($_REQUEST['action'], array('news', 'downloads', 'user-posts', 'internal-page', 'about', 'faq', 'admin')))
$context['vblocks'] = true;
global $ultimateportalSettings;
//View blocks into forum (Ultimate Portal disable)
if (empty($ultimateportalSettings['ultimate_portal_enable'])
&& (!empty($ultimateportalSettings['up_forum_enable_col_left'])
|| !empty($ultimateportalSettings['up_forum_enable_col_right']))
&& (empty($_REQUEST['board']) || empty($_REQUEST['topic']))
&& !in_array(!empty($_REQUEST['action']), array('news', 'downloads', 'user-posts', 'internal-page', 'about', 'faq', 'admin')))
{
$context['vblocks'] = true;
}
if ($context['vblocks'] === true)
{
$left = !empty($ultimateportalSettings['up_forum_enable_col_left']) ? 1 : 0;
$right = !empty($ultimateportalSettings['up_forum_enable_col_right']) ? 1 : 0;
up_print_page_above($left, $right, '', 1, 0);
}
//End
}
function template_body_below()
{
//Ultimate Portal Column Left - Forum
global $context, $ultimateportalSettings;
if ($context['vblocks'] === true)
{
$right = !empty($ultimateportalSettings['up_forum_enable_col_right']) ? 1 : 0;
up_print_page_below($right);
}
//End
pero no encuentro nada de lo que me manda a buscar, adjunto mi index.template.php para que me digan que tengo que buscar.
Version de mi foro : SMF 2.0
theme : GamerBlue RC4
Url : localhost
Logged
Trabajando duro o durando en el trabajo?