APLY-ZONE
Bine ai venit vizitatorule, daca vrei sa ai acces la toate resursele forumului trebuie sa detii un cont. Daca nu detii unul deja iti poti face un cont nou aici : http://aply-zone.forumotion.com/register?agreed=true&step=2

[Tutorial]SEO Friendly Forum

In jos

[Tutorial]SEO Friendly Forum

Mesaj Scris de Castana xD la data de Mar Aug 13, 2013 8:50 pm

Autor : Castana xD
Descriere : Modificări format din titluri forum generate (tag <title>). Pune cele mai importante părţi ale titlului la primul loc, ceea ce face SEO mult mai prietenos şi util pentru utilizatorii care folosesc mai multe file.
Fisiere de modificat :
includes/mcp/mcp_main.php
language/en/common.php
styles/prosilver/template/overall_header.html
styles/prosilver/template/simple_header.html
index.php
memberlist.php
viewforum.php
viewtopic.php


Deschideti : includes/mcp/mcp_main.php

Cod:
Cautati : $this->page_title = 'MCP_MAIN';
Repuneti cu : $this->page_title = 'MCP_MAIN_FRONT';


Deschideti : language/en/common.php

Cod:
Cautati : 'PAGE_OF' => 'Page <strong>%1$d</strong> of <strong>%2$d</strong>',
Adaugati dupa : 'PAGE_NUMBER' => 'Page %s',


Deschideti : styles/prosilver/template/overall_header.html

Cod:
Cautati : <title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
Repuneti cu : <title>{PAGE_TITLE}<!-- IF PAGE_TITLE --> • <!-- ENDIF --><!-- IF S_IN_MCP -->{L_MCP} •<!-- ELSEIF S_IN_UCP -->{L_UCP} •<!-- ENDIF --> {SITENAME}</title>


Pentru ProSilver : styles/prosilver/template/simple_header.html

Cod:
Cautati : <title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
Repuneti cu : <title>{PAGE_TITLE}<!-- IF PAGE_TITLE --> • <!-- ENDIF --><!-- IF S_IN_MCP -->{L_MCP} •<!-- ELSEIF S_IN_UCP -->{L_UCP} •<!-- ENDIF --> {SITENAME}</title>


Deschideti : index.php

Cod:
Cautati : page_header($user->lang['INDEX']);
Inlocuiti cu : page_header();


Deschideti : memberlist.php

Cod:
Cautati si stergeti : // Send an email
$page_title = $user->lang['SEND_EMAIL'];
$template_html = 'memberlist_email.html';

Cautati : $template->assign_vars(array(
'ERROR_MESSAGE' => (sizeof($error)) ? implode('<br />', $error) : '',
'SUBJECT' => $subject,
'MESSAGE' => $message,
)
);

Adaugati dupa : // Send an email
$page_title = $user->lang['SEND_EMAIL_USER'] . ' ' . $row['username'];
$template_html = 'memberlist_email.html';

Cautati : unset($ip_forums);

$db->sql_freeresult($result);
}
}

Adaugati dupa : // Now generate search user page title
$page_title = $user->lang['FIND_USERNAME'];

Cautati : $sql_where .= " AND ug.user_pending = 0 AND u.user_id = ug.user_id AND ug.group_id = $group_id";
$sql_where_data = " AND u.user_id = ug.user_id AND ug.group_id = $group_id";

Adaugati dupa : // Now generate group page title
$page_title = ($group_row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $group_row['group_name']] : $group_row['group_name'];
$page_title .= ' • ' . $user->lang['GROUPS'];


Deschideti : viewforum.php

Cod:
Cautati : page_header($user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name'], true, $forum_id);
Repuneti cu : page_header($forum_data['forum_name'] . ($start ? ' • ' . sprintf($user->lang['PAGE_NUMBER'], floor($start / $config['topics_per_page']) + 1) : ''), true, $forum_id);


Deschideti : viewtopic.php

Cod:
Cautati : page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);
Inlocuiti cu : page_header($topic_data['topic_title'] . ($start ? ' • ' . sprintf($user->lang['PAGE_NUMBER'], floor($start / $config['posts_per_page']) + 1) : '') . ' • ' . $topic_data['forum_name'], true, $forum_id);


* Si asta a fost tot. Bafta
* Stergeti cache şi refresh la template-uri.
avatar
Castana xD
Membru
Membru

Mesaje : 54
Puncte : 160
Reputatie : 0
Data de inscriere : 13/08/2013

Vezi profilul utilizatorului

Sus In jos

Re: [Tutorial]SEO Friendly Forum

Mesaj Scris de SPeeDStriKe la data de Mier Aug 14, 2013 1:12 pm

Multumim !
avatar
SPeeDStriKe
Membru
Membru

Mesaje : 913
Puncte : 994
Reputatie : 13
Data de inscriere : 12/08/2013
Varsta : 23
Localizare : Bucuresti

Vezi profilul utilizatorului http://aply-zone.myfreeforum.ro/profile?mode=editprofile

Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum