Re: Pregunta Seo MOD
Publicado: 16 Nov 2010, 01:28
Bueno, fue, yo taba instalando el MOD y me surge un problemin, yo instale el mod de "NV_advanced_last_topic_titles_1_2_9" y tambien se edita el functions_display, y se me complica porque en los dos, se editan las mismas lineas, no me podrias decir como los pongo cada uno?
Mira... :

Mira... :
phpBB Seo Mod No Duplicate escribió:Find
Replace WithCódigo: Seleccionar todo
if ($row['forum_last_post_id']) { $last_post_subject = $row['forum_last_post_subject']; $last_post_time = $user->format_date($row['forum_last_post_time']); $last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id']; } else { $last_post_subject = $last_post_time = $last_post_url = ''; }
Código: Seleccionar todo
// Create last post link information, if appropriate if ($row['forum_last_post_id']) { $last_post_subject = $row['forum_last_post_subject']; $last_post_time = $user->format_date($row['forum_last_post_time']); // www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe if (@$phpbb_seo->seo_opt['no_dupe']['on'] && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id_last_post'])) { $phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$forum_id]); $last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id'] . '&start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$row['topic_id']]) ) . '#p' . $row['forum_last_post_id']; $topic_title = censor_text($row['topic_title']); // Limit in chars for the last post link text. $char_limit = 25; // Limit topic text link to $char_limit, without breacking words $topic_text_lilnk = $char_limit > 0 && ( ( $length = utf8_strlen($topic_title) ) > $char_limit ) ? ( utf8_strlen($fragment = utf8_substr($topic_title, 0, $char_limit + 1 - 4)) < $length + 1 ? preg_replace('`\s*\S*$`', '', $fragment) . ' ...' : $topic_title ) : $topic_title; $last_post_link = '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id']) . '" title="' . $topic_title . ' : ' . $phpbb_seo->seo_opt['topic_forum_name'][$row['topic_id']] . '">' . $topic_text_lilnk . '</a>'; } else { $last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id']; $last_post_link = ''; } } else { $last_post_subject = $last_post_time = $last_post_url = $last_post_link = ''; // www.phpBB-SEO.com SEO TOOLKIT END -> no dupe }
SaludosNV Advanced Topic Tittles escribió:Find
Replace WithCódigo: Seleccionar todo
$last_post_subject = $row['forum_last_post_subject'];
Código: Seleccionar todo
//for NV ALTT if ($config['altt_active'] && (!$row['forum_password'] || $config['altt_ignore_password']) && ($auth->acl_get('f_read', $row['nv_permission_forum_id']) || $config['altt_ignore_rights'])) { $altt_link_name = ($config['altt_link_name']) ? $row['topic_title'] : $row['forum_last_post_subject']; $altt_link_name_short = (utf8_strlen(htmlspecialchars_decode($altt_link_name)) > $config['altt_char_limit'] + 3 )? htmlspecialchars((utf8_substr(htmlspecialchars_decode($altt_link_name), 0, $config['altt_char_limit']) . '...')) : ($altt_link_name); $altt_style_bold = $config['altt_style_bold']; $altt_style_italic = $config['altt_style_italic']; $altt_style_adv = $config['altt_style_adv']; $altt_style_adv2 = $config['altt_style_adv2']; switch ($config['altt_link_url']) { case 1: $altt_link_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id']); break; case 2: $altt_link_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id'] . '&view=unread') . '#unread'; break; default: $altt_link_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id']; break; } } else { $altt_link_name_short = $altt_link_name = $altt_style_bold = $altt_style_italic = $altt_style_adv = $altt_style_adv2 = $altt_link_url = ''; }
