Bir çok webmasterın bitmez tükenmez çilesidir seo işlemi. Bunun için yaptığımız tüm yenilikleri burada sizede duyuracağız. Bu yazı dizisini takip ederek phpbb3 forumlarınız için adım adım seo işlemlerini gerçekleştireceğiz.
İlk adım title(başlık) diye bilenen tarayıcı sayfasında görünen bilgi ekranını düzenlemektir. Google amca başta olmak üzere bir çok bot bu başlığı konu ile alakalı ilan etmektedir. Bu yüzden her sayfada site isminizin yazmasının anlamı bulunmamaktadır. Botlarımız tüm sayfaları aynı içerik olarak algılamaktadır. Bunun için ilk adım sayfa başlıklarını birbirinden ayırarak içerikle doğru orantılı yapmaktır.
##############################################################
## MOD Title: phpBB SEO Optimal titles
## MOD Author: dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: phpBB page titles Optimization.
## Check http://www.phpbb-seo.com/en/phpbb-seo-toolkit/optimal-titles-t1289.html
## for the latest version or to get help with this MOD
##
## MOD Version: 1.0.6
##
## Installation Level: (EASY)
## Installation Time: 5 Minutes
## Files To Edit: (7)
## index.php,
## language/en/common.php,
## search.php,
## styles/prosilver/template/overall_header.html,
## styles/subsilver2/template/overall_header.html,
## viewforum.php,
## viewtopic.php
## Included Files: n/a
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Author Notes:
##
## This mod will optimize phpBB pages titles.
## By Default, page titles contain many useless information, such as “View Forum” or “View topic”.
## This mod will better target words to use in titles, using topics, forums and categries titles.
## In addition, this mod will add the page’s number in page title, which allow for a lot better
## pagination indexing. As two pages with the same title are hard to keep in SEPRS.
## All this without any SQL queries.
## A must, whatever you SEO strategy.
##
#### UPDATE
## 1.0.4 => 1.0.6 Update : Required changes to be found in contrib/1.0.4_1.0.6_title_Update.txt
####
#
##
##############################################################
## MOD History:
##
## 2009-06-11 – 1.0.6
## - Index page title is now built using the phpBB sitename.
## 2008-11-22 – 1.0.4
## - Added subsilver2 code change, fixed a tiny bug in template.
## 2008-04-23 – 1.0.2
## - extends title enhancement to newly rewritten pages
## 2007-06-29 – 1.0
## - First released version
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#—–[ DIY INSTRUCTIONS ]——————————————
#
________
Update :
________
subsilver2/ update code code changes are only required if you never edited it, otherwise the same code change
as per prosilver is the one to to on subsilver2/ as well.
________________________________________
>>>> INSTALLATION INSTRUCTION <<<<<
________________________________________
___________
IMPORTANT :
________________________________________
Once you will have installed the mod, you will have to empty the phpBB/cache/ folder before the mod will fully work,
just delete all files BUT the .htaccess.
________________________________________
This mod will use your configured phpBB sitename as the forum index page title.
________________
FRENCH INSTALL :
________________
The French install file is located in the translations/fr/ folder of this release.
The French lang code changes are the following :
OPEN :
______
language/fr/common.php
FIND :
______
?>
BEFORE ADD :
____________
// www.phpBB-SEO.com SEO TOOLKIT BEGIN – TITLE
$lang['Page'] = ‘Page ‘;
// www.phpBB-SEO.com SEO TOOLKIT END – TITLE
#
#—–[ OPEN ]———————————————-
#
index.php
#
#—–[ FIND ]———————————————-
#
page_header($user->lang['INDEX']);
#
#—–[ REPLACE WITH ]——————————————
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN – TITLE
page_header($config['sitename']);
// www.phpBB-SEO.com SEO TOOLKIT END – TITLE
#
#—–[ OPEN ]———————————————-
#
language/en/common.php
#
#—–[ FIND ]———————————————-
#
?>
#
#—–[ BEFORE, ADD]——————————————
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN – TITLE
$lang['Page'] = ‘Page ‘;
// www.phpBB-SEO.com SEO TOOLKIT END – TITLE
#
#—–[ OPEN ]———————————————-
#
search.php
#
#—–[ FIND ]——————————————
#
$template->assign_vars(array(
‘SEARCH_TITLE’ => $l_search_title,
#
#—–[ BEFORE, ADD]——————————————
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN – TITLE
$l_search_title = empty($l_search_title) && !empty($author) ? $author . ‘ – ‘ . ($show_results != ‘posts’ ? $user->lang['TOPICS'] : $user->lang['POSTS']) : $l_search_title;
// www.phpBB-SEO.com SEO TOOLKIT END – TITLE
#
#—–[ FIND ]——————————————
#
page_header(($l_search_title) ? $l_search_title : $user->lang['SEARCH']);
#
#—–[ REPLACE WITH ]——————————————
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN – TITLE
$extra_title = ($start > 0) ? ‘ – ‘ . $user->lang['Page'] . ( floor( $start / $per_page ) + 1 ) : ”;
page_header( ( ($l_search_title) ? $l_search_title . (!empty($search->search_query) ? ‘ : ‘ . $search->search_query : ” ): $user->lang['SEARCH'] ) . $extra_title );
// www.phpBB-SEO.com SEO TOOLKIT END – TITLE
#
#—–[ OPEN ]——————————————
#
styles/prosilver/template/overall_header.html
#
#—–[ FIND ]——————————————
#
<meta http-equiv=”content-type” content=”text/html; charset={S_CONTENT_ENCODING}” />
#
#—–[ AFTER, ADD]——————————————
#
<title>{PAGE_TITLE}<!– IF S_IN_MCP –> • {L_MCP}<!– ELSEIF S_IN_UCP –> • {L_UCP}<!– ENDIF –></title>
#
#—–[ FIND ]——————————————
#
<title>{SITENAME} • <!– IF S_IN_MCP –>{L_MCP} • <!– ELSEIF S_IN_UCP –>{L_UCP} • <!– ENDIF –>{PAGE_TITLE}</title>
#
#—–[ REPLACE WITH ]——————————————
# EG Delete
#
#—–[ OPEN ]——————————————
#
styles/subsilver2/template/overall_header.html
#
#—–[ FIND ]——————————————
#
<meta http-equiv=”content-type” content=”text/html; charset={S_CONTENT_ENCODING}” />
#
#—–[ AFTER, ADD]——————————————
#
<title>{PAGE_TITLE}<!– IF S_IN_MCP –> • {L_MCP}<!– ELSEIF S_IN_UCP –> • {L_UCP}<!– ENDIF –></title>
#
#—–[ FIND ]——————————————
#
<title>{SITENAME} • <!– IF S_IN_MCP –>{L_MCP} • <!– ELSEIF S_IN_UCP –>{L_UCP} • <!– ENDIF –>{PAGE_TITLE}</title>
#
#—–[ REPLACE WITH ]——————————————
# EG Delete
#
#—–[ OPEN ]——————————————
#
viewforum.php
#
#—–[ FIND ]——————————————
#
page_header($user->lang['VIEW_FORUM'] . ‘ – ‘ . $forum_data['forum_name']);
#
#—–[ REPLACE WITH ]——————————————
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN – TITLE
$extra_title = ($start > 0) ? ‘ – ‘ . $user->lang['Page'] . ( floor( $start / $config['topics_per_page'] ) + 1 ) : ”;
page_header($forum_data['forum_name'] . $extra_title);
// www.phpBB-SEO.com SEO TOOLKIT END – TITLE
#
#—–[ OPEN ]——————————————
#
viewtopic.php
#
#—–[ FIND ]——————————————
#
page_header($user->lang['VIEW_TOPIC'] .’ – ‘ . $topic_data['topic_title']);
#
#—–[ REPLACE WITH ]——————————————
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN – TITLE
$extra_title = ($start > 0) ? ‘ – ‘ . $user->lang['Page'] . ( floor( ($start / $config['posts_per_page']) ) + 1 ) : ”;
page_header($topic_data['topic_title'] . ‘ : ‘ . $topic_data['forum_name'] . $extra_title);
// www.phpBB-SEO.com SEO TOOLKIT END – TITLE
#
#—–[ SAVE/CLOSE ALL FILES ]——————————————
#
# EoM