| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
TerryTibbs
Joined: 14 Sep 2007 Posts: 1
|
Posted: Fri Sep 14, 2007 9:32 pm Post subject: Trying to install advanced SEO URL but using Subsilver2 |
|
|
Hi,
I'm using Phpbb3 RC5 and am currently trying to install this rewrite mod. Everything so far is going great but i'm using subsilver2 not prosilver.
I was just going to try and apply the same changes mentioned to the subsilver2 files instead but cannot find the following:
in styles/subsilver2/template/viewtopic_body.html - i can't find:
| Code: | | <a href="#p{postrow.POST_ID}"> |
or
| Code: | | <a href="#wrap" class="top" title="{L_BACK_TO_TOP}"> |
and i have no forum_fn.js in subsilver2 so i cannot find this line:
| Code: | 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);
}
} |
I have seen a post that says the above line can be found in overall_header instead of forum_fn.js but it's not exactly the same line, in there it's actually:
| Code: | function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var perpage = '{PER_PAGE}';
var base_url = '{BASE_URL}';
if (page !== null && !isNaN(page) && page > 0)
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * perpage);
}
} |
Should i still just replace it with this:
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto()
{
var page = prompt(jump_page, on_page);
var seo_ext_html = '.html';
var seo_ext_htm = '.htm';
var seo_ext_slash = '/';
var seo_delim_start = '-';
if (page !== null && !isNaN(page) && page > 0)
{
base_url = base_url.replace(/&/g, '&');
if ( ((page - 1) * per_page) > 0 ) {
if (base_url.indexOf(seo_ext_html) >0 && base_url.indexOf('?') < 0) {
document.location.href = base_url.replace(/.html/, '') + seo_delim_start + ((page - 1) * per_page) + seo_ext_html;
} else if (base_url.indexOf(seo_ext_htm) >0 && base_url.indexOf('?') < 0) {
document.location.href = base_url.replace(/.htm/, '') + seo_delim_start + ((page - 1) * per_page) + seo_ext_htm;
} else if (base_url.indexOf(seo_ext_slash) >0 && base_url.indexOf('?') < 0) {
document.location.href = base_url.replace(new RegExp(/\/$/),"") + seo_delim_start + ((page - 1) * per_page) + seo_ext_slash;
} else {
document.location.href = base_url + '&start=' + ((page - 1) * per_page);
}
} else {
document.location.href = base_url;
}
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
|
Hope this makes sense, sorry it's long winded. Any help you can provide is very much appreciated.
Thank you for your time. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

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