Arama motorları için forumun optimize edilmesi

phpBB ile ilgili makaleler, yazılar.

Arama motorları için forumun optimize edilmesi

İleti

ALEXIS
17.04.2007, 06:59

Kod: Tümünü seç
##############################################################
## MOD ADI: Search Engine Optimization 2.0.0
## MOD YAZARI: Craven de Kere (N/A) http://www.Able2Know.com
## MOD TERCÜME: sabri ünal <sabriunal@tnn.net>
## MOD AÇIKLAMASI: SEO. Arama motorları için session_id değerlerini kaldırır ve kimi küçük değişikliklerle forumunuzu arama motorları için optimize edilir. Böylece page_rank / sayfa rütbe değeriniz arama motorlarında artar ve bulunurluluk oranınız arta.

## MOD Versiyon: 2.0.0
##
## KURULUM SEVİYESİ : (İLERİ DÜZEY)
## KURULUM SÜRESİ   : 15 DAKİKA
## İŞLENECEK DOSYALAR: index.php, sessions.php, viewforum.php, search.php,
   viewtopic_body.tpl, overall_header.tpl, lang_main.php, index_body.tpl

## yüklenecek dosyalar: yok
############################################################## 
## Yazar notları:
## Bu mod aşağıdaki değişiklikleri yapar.

1- Son mesaj iconunu ve linkini ana sayfadan kaldırır.

2- Son mesajın tarihinin son mesaj ikonunu yerine kullanılmasını sağlar.

3- Ana safyadaki son mesaj yazarından profiline giden linki kaldırır. / adı yine kalır.

4- Bölüm yetkililerinin ana sayfada listelenmesini kaldırır.

5- Bütün arama motorları için, oturum numarası (sesid) oluşturulmasını kaldırır.

6- forumlar sayfasındaki başlık yazarından profiline giden linki kaldırır. / adı yine kalır.

7- Son mesaj iconunu ve linkini forum sayfasından kaldırır.

8- Son mesajın tarihinin son mesaj ikonunu yerine kullanılmasını sağlar.

9- Forum sayfasından yazar adını kaldırır.

10- İmzaların misafir üyelerce görülmesini durdurur.

11- avatarların misafir üyelerce görülmesini durdurur.

12- Kişisel bilgilerin misafir üyelere listelenmesini durdurur.

13- Arama sayfası sonuçlarında, üye adından profile giden linki kaldırır.

14- Son mesajı göster linkini arama sayfasından kaldırır.

15- Son mesajın tarihinin arama sayfasında son mesaj ikonunu yerine kullanılmasını sağlar.

16- Yazar adından profiline giden linki arama sonuçları sayfasından kaldırır.

17- Yazar adını, yazar adından üye mesajlarını aratmaya yarayan bir linke çevirir.

18- Yetki listesini topic / başlık sayfasında arama motorlarından gizlenebilir bir şekilde yapar.

19- Önceki başlık ve sonraki başlık linklerini başlık sayfasında arama motorlarından gizli bir şekilde yapar.

20- Site adını sayfa başlıklarından siler, ağırlığı listelenen metne aktarır.

21- Ana sayfa başlığındaki title değerini standart kurulumdan değiştirir. böylece sitenin farklı olduğu arama motorlarınca daha belirgin hale getirilir.

22- Forum istatistiklerini / online ofline vs arama motorlarından ve misafir üyelerden gizler.

23- Statik URL sistemine geçmek. / Bu başlık için canverdeki SEO geliştirme başlığına bakınız.

##
##############################################################
## MOD Gelişimi:
- 2004-04-10 - Version 2.0.0
- Ana sayfa adı site adından değiştirildi.
- kimler online istatistiklerini ana sayfada misafir üyelerden gizlenmesi özelliği eklendi.
- premodlar ile ilgili dosyalar silindi

##############################################################
## Bu modu yüklemeden önce ilgili dosyalarınızın yedeğini almayı unutmayınız.
##############################################################

#
#-----[ AÇ ]------------------------------------------
#

index.php

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

   //
   // Obtain list of moderators of each forum
   // First users, then groups ... broken into two queries
   //

#
#-----[ ÖNCESİNE EKLE ]------------------------------------
#

/*/

#
#-----[ BUL ]------------------------------------------
#

   //
   // Find which forums are visible for this user
   //

#
#-----[ ÖNCESİNE EKLE ]------------------------------------
#

/*/

#
#-----[ BUL ]------------------------------------------
#

'L_MODERATOR' => $lang['Moderators'],

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

// 'L_MODERATOR' => $lang['Moderators'],

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

'MODERATORS' => $moderator_list,

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

// 'MODERATORS' => $moderator_list,

#
#-----[ BUL ]------------------------------------------
#

'L_MODERATOR' => $l_moderators,

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

// 'L_MODERATOR' => $l_moderators,

#
#-----[ AÇ ]------------------------------------------


includes/sessions.php

#
#-----[ BUL ]------------------------------------------
#

$SID = 'sid=' . $session_id;

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------
#

if ( $userdata['session_user_id'] != ANONYMOUS ){
   $SID = 'sid=' . $session_id;
} else {
   $SID = '';
}

#
#-----[ AÇ ]------------------------------------------
#

viewforum.php

#
#-----[ BUL ]------------------------------------------
#

$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

$page_title = $forum_row['forum_name'];

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : $topic_rowset[$i]['user2'];

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

      $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 ) ? '' : '';

#
#-----[ AÇ ]------------------------------------------
#

viewtopic.php

#
#-----[ BUL ]------------------------------------------
#

$page_title = $lang['View_topic'] .' - ' . $topic_title;

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

$page_title = $topic_title;


#
#-----[ BUL ]------------------------------------------
#

$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : '';


#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] && $userdata['session_logged_in'] ) ? $postrow[$i]['user_sig'] : '';

#
#-----[ BUL ]------------------------------------------
#

   if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

   if ( $userdata['session_logged_in'] && $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ AÇ ]------------------------------------------
#

search.php

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : $searchset[$i]['user2'];

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

            $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>' : '';
#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

            $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 ) ? '' : '';

#
#-----[ AÇ ]------------------------------------------
#

templates/subSilver/viewtopic_body.tpl

#
#-----[ BUL ]------------------------------------------
#

{postrow.POSTER_POSTS}

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

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

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#
<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>

#
#-----[ BUL ]------------------------------------------
#

<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>

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

<!-- 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 -->

#
#-----[ AÇ ]------------------------------------------
#

templates/subSilver/overall_header.tpl

#
#-----[ BUL ]------------------------------------------
#

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

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

<title>{PAGE_TITLE}</title>

#
#-----[ AÇ ]------------------------------------------
#

/language/lang_english/lang_main.php

#
#-----[ BUL ]------------------------------------------
#

$lang['Index'] = 'Index'; 

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

$lang['Index'] = 'YOUR SITE NAME';

#
#-----[ AÇ ]------------------------------------------
#

templates/subSilver/index_body.tpl

#
#-----[ BUL ]------------------------------------------
#

<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>

#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------
#

<!-- 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 -->

#-----[ DOSYALARI KAYDET / KAPAT ]------------------------------------------
#
# EoM
Kullanıcı avatarı
ALEXIS
Site Yöneticisi
Site Yöneticisi
 
İleti: 2563
Kayıt: 30.06.2005, 09:08

Makaleler



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron