Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 


       myfreeforum.org Forum Index -> Search Engines
symon

Good Idea or Not 1

Before anyone shouts you can not do this im just asking a general question.

Code:
##############################################################
## 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)
##
## For an additional tutorial on preventing IP addresses from being logged see:
## http://www.able2know.com/forums/about22586.html
##
##############################################################
## MOD History:
##
##   2004-04-10 - Version 2.0.0
##      - Introduced mod_rewrite capabilities.
##      - Changed Index name to site name.
##      - Hide viewonline stats on index page from guests.
##      - Pre-modded files removed.
##   2003-11-24 - Version 1.0.2
##      - Corrected typos and created pre-modded files
##   2003-11-17 - Version 1.0.1
##      - Changed the way some lines are commented out
##      - Changed the page titles on viewtopic.php and viewforum.php
##
##   2003-11-15 - Version 1.0.0
##      - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

index.php

#
#-----[ FIND ]------------------------------------------
#

$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>';

#
#-----[ REPLACE WITH ]------------------------------------
#

/*
$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>';
*/

#
#-----[ FIND ]------------------------------------------
#

'<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';

#
#-----[ REPLACE WITH ]------------------------------------
#

$forum_data[$j]['username'];

#
#-----[ FIND ]------------------------------------------
#

$last_post = $last_post_time . '<br />';

#
#-----[ REPLACE WITH ]------------------------------------
#

$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 />';

#
#-----[ 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 = '&nbsp;';
   $moderator_list = '&nbsp;';
}

#
#-----[ 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 = '&nbsp;';
   $moderator_list = '&nbsp;';
}
*/

#
#-----[ 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'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '='  . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';

#
#-----[ 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 = '<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>';

#
#-----[ REPLACE WITH ]------------------------------------
#

/*
$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>';
*/

#
#-----[ FIND ]------------------------------------------
#

$last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']);

#
#-----[ REPLACE WITH ]------------------------------------
#

$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>';

#
#-----[ FIND ]------------------------------------------
#

      $topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . 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>' : '';

#
#-----[ 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&amp;" . POST_USERS_URL . "=$poster_id");

#
#-----[ REPLACE WITH ]------------------------------------
#

if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$poster_id");

#
#-----[ OPEN ]------------------------------------------
#

search.php

#
#-----[ FIND ]------------------------------------------
#

$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>';

#
#-----[ REPLACE WITH ]------------------------------------
#

/*
$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>';
*/

#
#-----[ FIND ]------------------------------------------
#

$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&amp;" . POST_USERS_URL . '='  . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>';

#
#-----[ 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 = '<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>';

#
#-----[ FIND ]------------------------------------------
#

            $topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . 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>' : '';
#
#-----[ 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 ]------------------------------------
#

<a href="search.php?search_author={postrow.POSTER_NAME}" class="postdetails">{postrow.POSTER_POSTS}</a>

#
#-----[ FIND ]------------------------------------------
#

<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------
#
<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>

#
#-----[ FIND ]------------------------------------------
#

<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> &nbsp;</span>

#
#-----[ REPLACE WITH ]------------------------------------
#

<!-- 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> &nbsp;</span>
<!-- END switch_user_logged_in -->

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#

<title>{SITENAME} :: {PAGE_TITLE}</title>

#
#-----[ REPLACE WITH ]------------------------------------
#

<title>{PAGE_TITLE}</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 ]------------------------------------------
#

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
   <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr>
   <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
   <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
   </td>
  </tr>
  <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
   <td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>

#
#-----[ REPLACE WITH ]------------------------------------
#

<!-- BEGIN switch_user_logged_in -->
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
   <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr>
   <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
   <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
   </td>
  </tr>
  <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
   <td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
<!-- END switch_user_logged_in -->


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
myff admin

Look closely and you will see most of this has been done, in fact more things than it says have been done in some cases, and I think I rejected a few bits. It was done about a year ago!
symon

admin wrote:
Look closely and you will see most of this has been done, in fact more things than it says have been done in some cases, and I think I rejected a few bits. It was done about a year ago!


Sorry crossed wires i was asking an open question in general i know you have done something like this but i was going to add something like this to my own site and was just wondering if it is worth it or was just a little sugar coating

       myfreeforum.org Forum Index -> Search Engines
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum