| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
rbb
Joined: 09 Oct 2007 Posts: 9
|
Posted: Fri Oct 12, 2007 2:55 am Post subject: adding new styles to the premod |
|
|
I had to get all the code together to do it so I thought I'd post it here so if anyone else has to do it they don't have to download all the features to find the changes to styles files
on V 3.0 RC7
I used the advanced rewrite so but I think it is the same as the mixed and simple for the styles files if someone can confirm that
| Code: | ##############################################################
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
#-----[ OPEN ]------------------------------------------
#
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 ]------------------------------------------
#
styles/prosilver/template/overall_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
#
#-----[ AFTER, ADD]------------------------------------------
#
{SEO_BASE_HREF}
#
#-----[ FIND ]------------------------------------------
#
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 ]------------------------------------------
#
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}">
##############################################################
## MOD Title: phpBB3 SEO Dynamic Meta tags
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/overall_header.html
#
#-----[ FIND ]------------------------------------------
#
<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}
#
#-----[ REPLACE WITH ]------------------------------------------
#
{META_TAG}
{META}
##############################################################
## MOD Title: phpBB3 SEO Optimal titles
#
#-----[ 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 ]------------------------------------------
# Delete |
|
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |