############################################################## ## MOD Title: Able2Know.com Search Engine Optimization 2.0.0 ## MOD Author: Craven de Kere (N/A) http://www.Able2Know.com ## MOD Description: The definitive guide to phpBB SEO ## This mod not only removes session IDs for all search engines and adds static URLs ## but it also includes many other changes that will help increase your search engine ## rankings by reducing pagerank drain and greatly improving keyword relevancy. ## Check http://www.able2know.com/forums/about15132.html ## for the latest version or to get help with this MOD ## ## MOD Version: 2.0.0 ## ## Installation Level: (Advanced) ## Installation Time: 15 Minutes ## Files To Edit: index.php, sessions.php, viewforum.php, search.php, viewtopic_body.tpl, overall_header.tpl, ## lang_main.php, index_body.tpl ## Included Files: n/a ############################################################## ## Author Notes: ## Use this MOD on phpBB versions 2.0.6+ Lower versions will have some differences so see the help thread. ## This MOD will make the following changes. ## 1) Remove the "View Latest Post" icon and link on index.php (Craven de Kere) ## 2) Make the date of the last post link to the last post like the icon did on index.php (Craven de Kere) ## 3) Unlink the username of the last post on index.php (Craven de Kere) ## 4) Remove listing of moderators on index.php (AbelaJohnB) ## 5) Remove session IDs for all search engine spiders (Darlantan) ## 6) Unlink the username of the last post on viewforum.php (Craven de Kere) ## 7) Remove the "View Latest Post" icon and link on viewforum.php (Craven de Kere) ## 8) Make the date of the last post link to the last post like the icon did on viewforum.php (Craven de Kere) ## 9) Unlink the author username on viewforum.php (Craven de Kere) ## 10) Remove signatures for guest views (Craven de Kere) ## 11) Remove avatars for guest views (Craven de Kere) ## 12) Remove personal info (Profile, IM, PM, AIM, etc) for guest views (darbyrob) ## 13) Unlink the username of the last post on search.php (Craven de Kere) ## 14) Remove the "View Latest Post" icon and link on search.php (Craven de Kere) ## 15) Make the date of the last post link to the last post like the icon did on search.php (Craven de Kere) ## 16) Unlink the author username on search.php (Craven de Kere) ## 17) Link the user post count to a search of the user's posts (Craven de Kere) ## 18) Make Auth list on viewtopic.php invisible to search engines (Craven de Kere) ## 19) Make the previous and next topic links invisible to search engines (Craven de Kere) ## 20) Removes the sitename from page titles, improving keyword weight (Craven de Kere) ## 21) Change the page title of the index page to a hardcoded site name because of the site name removal (Craven de Kere) ## 22) Hide forum stats from guests and spiders (Craven de Kere) ## 23) Static URLs with mod_rewrite, see the included file (Craven de Kere) ############################################################## # #-----[ OPEN ]------------------------------------------ # index.php # #-----[ FIND ]------------------------------------------ # $last_post .= '' . $lang['View_latest_post'] . ''; # #-----[ REPLACE WITH ]------------------------------------ # /* $last_post .= '' . $lang['View_latest_post'] . ''; */ # #-----[ FIND ]------------------------------------------ # '' . $forum_data[$j]['username'] . ' '; # #-----[ REPLACE WITH ]------------------------------------ # $forum_data[$j]['username']; # #-----[ FIND ]------------------------------------------ # $last_post = $last_post_time . '
'; # #-----[ REPLACE WITH ]------------------------------------ # $last_post = '' . $last_post_time . '' . '
'; # #-----[ FIND ]------------------------------------------ # // // Obtain list of moderators of each forum // First users, then groups ... broken into two queries // # #-----[ BEFORE, ADD ]------------------------------------ # /*/ # #-----[ FIND ]------------------------------------------ # // // Find which forums are visible for this user // # #-----[ BEFORE, ADD ]------------------------------------ # /*/ # #-----[ FIND ]------------------------------------------ # 'L_MODERATOR' => $lang['Moderators'], # #-----[ REPLACE WITH ]------------------------------------ # // 'L_MODERATOR' => $lang['Moderators'], # #-----[ FIND ]------------------------------------------ # 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 = ' '; } # #-----[ REPLACE WITH ]------------------------------------ # /* 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 = ' '; } */ # #-----[ FIND ]------------------------------------------ # 'MODERATORS' => $moderator_list, # #-----[ REPLACE WITH ]------------------------------------ # // 'MODERATORS' => $moderator_list, # #-----[ FIND ]------------------------------------------ # 'L_MODERATOR' => $l_moderators, # #-----[ REPLACE WITH ]------------------------------------ # // 'L_MODERATOR' => $l_moderators, # #-----[ OPEN ]------------------------------------------ # includes/sessions.php # #-----[ FIND ]------------------------------------------ # $SID = 'sid=' . $session_id; # #-----[ REPLACE WITH ]------------------------------------------ # if ( $userdata['session_user_id'] != ANONYMOUS ){ $SID = 'sid=' . $session_id; } else { $SID = ''; } # #-----[ OPEN ]------------------------------------------ # viewforum.php # #-----[ FIND ]------------------------------------------ # $page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name']; # #-----[ REPLACE WITH ]------------------------------------ # $page_title = $forum_row['forum_name']; # #-----[ FIND ]------------------------------------------ # $last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '' . $topic_rowset[$i]['user2'] . ''; # #-----[ REPLACE WITH ]------------------------------------ # $last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : $topic_rowset[$i]['user2']; # #-----[ FIND ]------------------------------------------ # $last_post_url = '' . $lang['View_latest_post'] . ''; # #-----[ REPLACE WITH ]------------------------------------ # /* $last_post_url = '' . $lang['View_latest_post'] . ''; */ # #-----[ FIND ]------------------------------------------ # $last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']); # #-----[ REPLACE WITH ]------------------------------------ # $last_post_time = '' . create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']) . ''; # #-----[ FIND ]------------------------------------------ # $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 ) ? '' : ''; # #-----[ REPLACE WITH ]------------------------------------ # $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 ) ? '' : ''; # #-----[ OPEN ]------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------ # $page_title = $lang['View_topic'] .' - ' . $topic_title; # #-----[ REPLACE WITH ]------------------------------------ # $page_title = $topic_title; # #-----[ FIND ]------------------------------------------ # $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; # #-----[ REPLACE WITH ]------------------------------------ # $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] && $userdata['session_logged_in'] ) ? $postrow[$i]['user_sig'] : ''; # #-----[ FIND ]------------------------------------------ # if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] ) # #-----[ REPLACE WITH ]------------------------------------ # if ( $userdata['session_logged_in'] && $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] ) # #-----[ FIND ]------------------------------------------ # if ( $poster_id != ANONYMOUS ) { $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); # #-----[ REPLACE WITH ]------------------------------------ # if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] ) { $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); # #-----[ OPEN ]------------------------------------------ # search.php # #-----[ FIND ]------------------------------------------ # $last_post_url = '' . $lang['View_latest_post'] . ''; # #-----[ REPLACE WITH ]------------------------------------ # /* $last_post_url = '' . $lang['View_latest_post'] . ''; */ # #-----[ FIND ]------------------------------------------ # $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '' . $searchset[$i]['user2'] . ''; # #-----[ REPLACE WITH ]------------------------------------ # $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : $searchset[$i]['user2']; # #-----[ FIND ]------------------------------------------ # $last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); # #-----[ REPLACE WITH ]------------------------------------ # $last_post_time = ''. create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']) . ''; # #-----[ FIND ]------------------------------------------ # $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 ) ? '' : ''; # #-----[ REPLACE WITH ]------------------------------------ # $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 ) ? '' : ''; # #-----[ OPEN ]------------------------------------------ # templates/subSilver/viewtopic_body.tpl # #-----[ FIND ]------------------------------------------ # {postrow.POSTER_POSTS} # #-----[ REPLACE WITH ]------------------------------------ # {postrow.POSTER_POSTS} # #-----[ FIND ]------------------------------------------ # {JUMPBOX}{S_AUTH_LIST} # #-----[ REPLACE WITH ]------------------------------------ # {JUMPBOX}{S_AUTH_LIST} # #-----[ FIND ]------------------------------------------ # {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}   # #-----[ REPLACE WITH ]------------------------------------ # {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}   # #-----[ OPEN ]------------------------------------------ # templates/subSilver/overall_header.tpl # #-----[ FIND ]------------------------------------------ # {SITENAME} :: {PAGE_TITLE} # #-----[ REPLACE WITH ]------------------------------------ # {PAGE_TITLE} # #-----[ OPEN ]------------------------------------------ # /language/lang_english/lang_main.php # #-----[ FIND ]------------------------------------------ # $lang['Index'] = 'Index'; # #-----[ REPLACE WITH ]------------------------------------ # $lang['Index'] = 'YOUR SITE NAME'; # #-----[ OPEN ]------------------------------------------ # templates/subSilver/index_body.tpl # #-----[ FIND ]------------------------------------------ #
{L_WHO_IS_ONLINE}
{L_WHO_IS_ONLINE} {TOTAL_POSTS}
{TOTAL_USERS}
{NEWEST_USER}
{TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
{RECORD_USERS}
{LOGGED_IN_USER_LIST}
{L_ONLINE_EXPLAIN}
# #-----[ REPLACE WITH ]------------------------------------ #
{L_WHO_IS_ONLINE}
{L_WHO_IS_ONLINE} {TOTAL_POSTS}
{TOTAL_USERS}
{NEWEST_USER}
{TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
{RECORD_USERS}
{LOGGED_IN_USER_LIST}
{L_ONLINE_EXPLAIN}
# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM