Pagina 1 din 4

Search Engine Optimization

Scris: 21-Dec-2003, 16:40:41
de BuGsY
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 :wink: )
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 ]------------------------------------------ 
#
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 :wink: ) [20:05 21.12.2003]

Scris: 21-Dec-2003, 17:14:33
de S3anPaul
mda , interesant , dar defapt ce face el :?:

Scris: 21-Dec-2003, 19:40:50
de TIR
lols numele nu iti spune nimic ?

Scris: 21-Dec-2003, 20:17:11
de S3anPaul
ba da , dar intrebam daca l-a incercat cu ce ajuta mai mult deacat cum era inainte :!:

Scris: 21-Dec-2003, 21:14:43
de BuGsY
Jesus christ dude, 1st. in description este specificat 2nd. Mare pacat ca instalezi (vizualizezi) modurile por si simplu fara sa vezi ce fac acestea 3rd. Am editat postul meu si am specificat in LIMBA ROMANA ce face acesta inainte sa postezi tu al doi-lea raspuns "destept"
S3anPaul scrie:ba da , dar intrebam daca l-a incercat cu ce ajuta mai mult deacat cum era inainte :!:
Acuma CE CREZI TU CA FACE ACEST MOD????
____________________________________
Update: Pentru ca se pare ca prietenul nostru nu intelege treaba cu SEO uite am facut si "efortul" sa iti traduc descriptionul "Acest mod nu numai ca va scoate sesiunea ID pentru toate motoarele de cutare, dar include si alte schimbari care vor ajuta sa creasca gradul de indexare si imbunatatirea cautarii dupa cuvinte aferente."
Dupa modificarea codurilor www.able2know.com are 47,700 de pagini indexate de Google din tot cam atatea posturi.
Cam asta am precizat si la update-ul de la primul post.. dar se pare ca eshti indragostit sa trimiti mesaje (adica sa ai multe mesaje trimise) sa stea lumea sa scrolleze aiurea. [23:45 21.12.2003]

Scris: 21-Dec-2003, 21:41:32
de S3anPaul
pai dude , 1st vreau sa stiu daca merita sa ma chinui sa-l instalez , 2st ai pus doar la instalare in limba romana , n-ai pus si la descriere ,3st puteai sa razpunzi si in alt fel


Got It Dude

Scris: 22-Dec-2003, 09:04:13
de danielt
BuGsY si S3anPaul, atentie la limbaj :wink:

Scris: 22-Dec-2003, 10:09:10
de dorin
bugsy, tu l-ai instalat :?: cum a mers :?:

spune-ne mai multe detalii :idea:

Scris: 22-Dec-2003, 10:27:10
de S3anPaul
danielt scrie:BuGsY si S3anPaul, atentie la limbaj :wink:

oky :wink:

Scris: 22-Dec-2003, 14:26:51
de BuGsY
Datorita sesiunii ID cele mai multe forumuri nu sunt indexate asa cum trebuie de motoarele de cautare. Prima tinta a mod-ului este sa faca forumul prietenos pentru search engines, nu numai pentru Google. Facand url-urile prietenoase pentru motoarele de cautare nu este tot ce aveti necesar. Recent Google penalizeaza forumurile phpBB; viewforum.php si viewtopic.php, avand un grad mic de indexare.
Directionand motoarele de cautare direct catre pagini este foarte important; topicurile din pagini fiind ultimile chestii care ati vrea sa le indexati :) insa unele cuvinte, linkuri, imagini micsoreaza aceasta posibilitate. Acest MOD va ajuta focalizarea motoarelor de cautare direct catre paginile forumului si catre text.

1) Va scoate icon-ul "View Latest Post" si link-ul catre index.php (Craven de Kere)
Acesta este inca un motiv pentru indexarea scazuta. Link-ul este reintrodus, dar imaginea este scosa definitiv deoarece face pagina "busy", link-ul se va realiza acuma nu pe utilizator, ci pe ultimul post din acel forum.

2) Va scoate lista de moderatori din index.php (AbelaJohnB)
Acesta va face ca pagina sa fie mai putin "busy", directionand cautarea spre continut,NU catre profil; acest cod va imbunatati indexare de aproximatix 2x (asa ne spune John Abela)

3) Scoate sesiunea ID pentru motoarele de cautare (Darlantan?)
Este o parte cruciala pentru acest mod. Se bazeaza pe codul care a fost postat de un utilizator numit BuGsY, dar nu este clar cine a scris mesajul original.

Mai multe detalii despre acest MOD puteti obtine aici: http://www.able2know.com/forums/viewtopic.php?t=15132
Download la ultima versiune
_____________________________________________
De instalat este instalat pe local unde motorul meu il indexeaza f. bine.
Cum am mai zis un "demo" al acesuia poti sa vezi la http://www.able2know.com/forums/, iar rezultatul este de 47,700 de pagini indexate