| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Sat Dec 22, 2007 1:41 pm Post subject: Prosilver / subsilver2 code changes |
|
|
Here are the code changes done to the prosilver and subsilver2 templates in the phpBB SEO premod.
They are of course included in the premod, but these may be useful in case you want to install a new style to your phpBB SEO premod installation.
Don't forget to clear phpBB's cache after you mod your templates.
| Code: | #
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#
Once you will have installed the mod, you will have toclear phpBB's cache.
Code change for prosilver and subsilver templates with the phpBB SEO premod 3.0.0 :
http://www.phpbb-seo.com/boards/phpbb-seo-premod/seo-url-premod-vt1549.html (en)
http://www.phpbb-seo.com/forums/premod-phpbb-seo/premod-referencement-phpbb-vt1951.html (fr)
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
styles/prosilver/template/forum_fn.js
#
#-----[ FIND ]------------------------------------------
#
function jumpto()
{
var page = prompt(jump_page, on_page);
if (page !== null && !isNaN(page) && page > 0)
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto() {
var page = prompt(jump_page, on_page);
if (page !== null && !isNaN(page) && page > 0) {
var seo_page = (page - 1) * per_page;
if ( base_url.indexOf('?') >= 0 ) {
document.location.href = base_url.replace(/&/g, '&') + '&start=' + seo_page;
} else if ( seo_page > 0 ) {
var seo_type1 = base_url.match(/\.[a-z0-9]+$/i);
if (seo_type1 !== null) {
document.location.href = base_url.replace(/\.[a-z0-9]+$/i, '') + seo_delim_start + seo_page + seo_type1;
}
var seo_type2 = base_url.match(/\/$/);
if (seo_type2 !== null) {
document.location.href = base_url + seo_static_pagination + seo_page + seo_ext_pagination;
}
} else {
document.location.href = base_url;
}
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
## MOD Title: phpBB3 SEO Dynamic Meta tags
## MOD Title: phpBB3 SEO Optimal titles
#
styles/prosilver/template/overall_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<head>
{SEO_BASE_HREF}
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF --></title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
{META_TAG}
{META}
#
#-----[ FIND ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
var onload_functions = new Array();
var onunload_functions = new Array();
#
#-----[ AFTER, ADD]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
var seo_delim_start = '{SEO_START_DELIM}';
var seo_static_pagination = '{SEO_SATIC_PAGE}';
var seo_ext_pagination = '{SEO_EXT_PAGE}';
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
## MOD Title: phpBB3 SEO No Duplicate
#
styles/prosilver/template/forumlist_body.html
#
#-----[ FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_LINK --><i>{forumrow.LAST_POST_LINK}</i><br/><!-- ENDIF -->
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
styles/prosilver/template/viewtopic_body.html
#
#-----[ FIND ]------------------------------------------
#
<a href="#p{postrow.POST_ID}">
#
#-----[ REPLACE WITH ]------------------------------------------
#
<a href="{U_VIEW_TOPIC}#p{postrow.POST_ID}">
#
#-----[ FIND ]------------------------------------------
#
<a href="#wrap" class="top" title="{L_BACK_TO_TOP}">
#
#-----[REPLACE WITH ]------------------------------------------
#
<a href="{U_VIEW_TOPIC}#wrap" class="top" title="{L_BACK_TO_TOP}">
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
## MOD Title: phpBB3 SEO Dynamic Meta tags
## MOD Title: phpBB3 SEO Optimal titles
#
styles/subsilver2/template/overall_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
#
#-----[REPLACE WITH ]------------------------------------------
#
<head>
{SEO_BASE_HREF}
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF --></title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
{META_TAG}
{META}
#
#-----[ FIND ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var perpage = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
if (page !== null && !isNaN(page) && page > 0)
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * perpage);
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var perpage = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
var seo_delim_start = '{SEO_START_DELIM}';
var seo_static_pagination = '{SEO_SATIC_PAGE}';
var seo_ext_pagination = '{SEO_EXT_PAGE}';
if (page !== null && !isNaN(page) && page > 0) {
var seo_page = (page - 1) * per_page;
if ( base_url.indexOf('?') >= 0 ) {
document.location.href = base_url.replace(/&/g, '&') + '&start=' + seo_page;
} else if ( seo_page > 0 ) {
var seo_type1 = base_url.match(/\.[a-z0-9]+$/i);
if (seo_type1 !== null) {
document.location.href = base_url.replace(/\.[a-z0-9]+$/i, '') + seo_delim_start + seo_page + seo_type1;
}
var seo_type2 = base_url.match(/\/$/);
if (seo_type2 !== null) {
document.location.href = base_url + seo_static_pagination + seo_page + seo_ext_pagination;
}
} else {
document.location.href = base_url;
}
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
## MOD Title: phpBB3 SEO No Duplicate
#
styles/subsilver2/template/forumlist_body.html
#
#-----[ FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_LINK -->
<p class="topicdetails"><i>{forumrow.LAST_POST_LINK}</i></p>
<!-- ENDIF -->
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
styles/subsilver2/template/viewtopic_body.html
#
#-----[ FIND ]------------------------------------------
#
<a href="#wrapheader">
#
#-----[ REPLACE WITH ]------------------------------------------
#
<a href="{U_VIEW_TOPIC}#wrapheader">
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
|
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |