Search Engine Optimization
Scris: 21-Dec-2003, 16:40:41
M-am gandit ca poate va intereseaza mod-ul Search Engine Optimization, avand cam 41 Kb (tinand cont ca are si fisierele deja modificate, daca va hotarati sa il instalati in cazul in care aveti si alte mod-uri instalate atunci treceti pe manual
)
Autorii acestui mod sunt Craven de Kere, iar al doilea AbelaJohnB (nu are nevoie de prezentare)
## Installation Level: (Advanced)
## Installation Time: 15 Minutes
## Files To Edit: index.php, sessions.php, viewforum.php, search.php, viewtopic_body.tpl, overall_header.tpl
## Included Files: n/a
Description:This hack will not only remove session IDs for all search engines but it also includes many other changes that will help increase your search engine rankings by reducing pagerank drain and greatly improving keyword relevancy.
UPDATE: Acest mod ofera o mai buna indexare de catre motoarele de cautare.. si mareste adancimea de cautare a acestora. (daca nu ma credeti verificati codul si o sa ajungeti la concluzia ca este Ok
) [20:05 21.12.2003]

Autorii acestui mod sunt Craven de Kere, iar al doilea AbelaJohnB (nu are nevoie de prezentare)
## Installation Level: (Advanced)
## Installation Time: 15 Minutes
## Files To Edit: index.php, sessions.php, viewforum.php, search.php, viewtopic_body.tpl, overall_header.tpl
## Included Files: n/a
Description:This hack will not only remove session IDs for all search engines but it also includes many other changes that will help increase your search engine rankings by reducing pagerank drain and greatly improving keyword relevancy.
Cod: Selectaţi tot
#
#-----[ DESCHIDE ]------------------------------------------
#
index.php
#
#-----[ CAUTA ]------------------------------------------
#
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
/*
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
*/
#
#-----[ CAUTA ]------------------------------------------
#
'<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$forum_data[$j]['username'];
#
#-----[ CAUTA ]------------------------------------------
#
$last_post = $last_post_time . '<br />';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $lang['View_latest_post'] . '">' . $last_post_time . '</a>' . '<br />';
#
#-----[ CAUTA ]------------------------------------------
#
//
// Obtain list of moderators of each forum
// First users, then groups ... broken into two queries
//
#
#-----[ ÎNAINTE, ADAUGÃ ]------------------------------------
#
/*/
#
#-----[ CAUTA ]------------------------------------------
#
//
// Find which forums are visible for this user
//
#
#-----[ ÎNAINTE, ADAUGÃ ]------------------------------------
#
/*/
#
#-----[ CAUTA ]------------------------------------------
#
'L_MODERATOR' => $lang['Moderators'],
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
// 'L_MODERATOR' => $lang['Moderators'],
#
#-----[ CAUTA ]------------------------------------------
#
if ( count($forum_moderators[$forum_id]) > 0 )
{
$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$moderator_list = implode(', ', $forum_moderators[$forum_id]);
}
else
{
$l_moderators = '&';
$moderator_list = '&';
}
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
/*
if ( count($forum_moderators[$forum_id]) > 0 )
{
$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$moderator_list = implode(', ', $forum_moderators[$forum_id]);
}
else
{
$l_moderators = '&';
$moderator_list = '&';
}
*/
#
#-----[ CAUTA ]------------------------------------------
#
'MODERATORS' => $moderator_list,
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
// 'MODERATORS' => $moderator_list,
#
#-----[ CAUTA ]------------------------------------------
#
'L_MODERATOR' => $l_moderators,
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
// 'L_MODERATOR' => $l_moderators,
#
#-----[ DESCHIDE ]------------------------------------------
#
includes/sessions.php
#
#-----[ CAUTA ]------------------------------------------
#
$SID = 'sid=' . $session_id;
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------------
#
if ( $userdata['session_user_id'] != ANONYMOUS ){
$SID = 'sid=' . $session_id;
} else {
$SID = '';
}
#
#-----[ DESCHIDE ]------------------------------------------
#
viewforum.php
#
#-----[ CAUTA ]------------------------------------------
#
$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$page_title = $forum_row['forum_name'];
#
#-----[ CAUTA ]------------------------------------------
#
$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : $topic_rowset[$i]['user2'];
#
#-----[ CAUTA ]------------------------------------------
#
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
/*
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
*/
#
#-----[ CAUTA ]------------------------------------------
#
$last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']);
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$last_post_time = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '" title="' . $lang['View_latest_post'] . '">' . create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']) . '</a>';
#
#-----[ CAUTA ]------------------------------------------
#
$topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['user_id']) . '">' : '';
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : '';
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : '';
#
#-----[ DESCHIDE ]------------------------------------------
#
viewtopic.php
#
#-----[ CAUTA ]------------------------------------------
#
$page_title = $lang['View_topic'] .' - ' . $topic_title;
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$page_title = $topic_title;
#
#-----[ CAUTA ]------------------------------------------
#
$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : '';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] && $userdata['session_logged_in'] ) ? $postrow[$i]['user_sig'] : '';
#
#-----[ CAUTA ]------------------------------------------
#
if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
if ( $userdata['session_logged_in'] && $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )
#
#-----[ CAUTA ]------------------------------------------
#
if ( $poster_id != ANONYMOUS )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
#
#-----[ DESCHIDE ]------------------------------------------
#
search.php
#
#-----[ CAUTA ]------------------------------------------
#
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['topic_last_post_id']) . '#' . $searchset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
/*
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['topic_last_post_id']) . '#' . $searchset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
*/
#
#-----[ CAUTA ]------------------------------------------
#
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : $searchset[$i]['user2'];
#
#-----[ CAUTA ]------------------------------------------
#
$last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']);
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$last_post_time = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['topic_last_post_id']) . '#' . $searchset[$i]['topic_last_post_id'] . '">'. create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']) . '</a>';
#
#-----[ CAUTA ]------------------------------------------
#
$topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['user_id']) . '">' : '';
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] );
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
$topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : '';
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] );
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : '';
#
#-----[ DESCHIDE ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ CAUTA ]------------------------------------------
#
{postrow.POSTER_POSTS}
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
<a href="search.php?search_author={postrow.POSTER_NAME}" class="postdetails">{postrow.POSTER_POSTS}</a>
#
#-----[ CAUTA ]------------------------------------------
#
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
<td align="right" valign="top" nowrap="nowrap">
<!-- BEGIN switch_user_logged_in -->
{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span>
<!-- END switch_user_logged_in -->
</td>
#
#-----[ CAUTA ]------------------------------------------
#
<span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &</span>
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
<!-- BEGIN switch_user_logged_in -->
<span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &</span>
<!-- END switch_user_logged_in -->
#
#-----[ DESCHIDE ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ CAUTA ]------------------------------------------
#
<title>{SITENAME} :: {PAGE_TITLE}</title>
#
#-----[ ÎNLOCUIESTE CU ]------------------------------------
#
<title>{PAGE_TITLE}</title>
#
#-----[ SALVEAZÃ si INCHIDE TOATE FISIERELE ]------------------------------------------
#
