| :: |
| Author |
Message |
Nobby
Joined: 02 May 2008 Posts: 13
|
Posted: Thu Jun 26, 2008 10:40 am Post subject: Re: Really struggling with this, please help! |
|
|
Thanks for that, i think i have it all worked out, except for 1 issue, the part of the mod i show below, on my template, the file referred to does not exist:
| 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
# |
I am using the template: darkredsun
there is no file styles/darkredsun/template/forum_fn.js |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
|
| Back to top |
|
 |
Nobby
Joined: 02 May 2008 Posts: 13
|
Posted: Fri Jun 27, 2008 8:17 pm Post subject: Re: Really struggling with this, please help! |
|
|
Hey SEO, thanks for that, but for now at least i dont need that part, the trouble is, theses are just the beginings of the troubles, most of the rest of the MOD doesnt match the code in the files on the new template. This basically means that unless i know php inside out, it will be almost impossible to complete a simple template change.
Surely their has to be an easier way? Why does none of the code in my new template match that in the MOD?
I do not have enough understanding of php to work out the function of each part of the code and work out where the heck it might actually be, any ideas would be appreciated.
 |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
Nobby
Joined: 02 May 2008 Posts: 13
|
Posted: Sat Jun 28, 2008 8:38 pm Post subject: Re: Really struggling with this, please help! |
|
|
Hey dcz
I have rar'ed up the 3 files in question, the can be found here: http://www.pg03.com/nobbysmod.rar
If you want to visually see the theme its on the same test domain pg03.com/forum
many thanks for your assistance.
Nobby |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
|
| Back to top |
|
 |
Nobby
Joined: 02 May 2008 Posts: 13
|
Posted: Sun Jun 29, 2008 7:39 am Post subject: Re: Really struggling with this, please help! |
|
|
No, i dont really understand what that means, i was pointed here: http://www.phpbb-seo.com/boards/phpbb-seo-premod/discussions-vt1913.html
And so i just began at the top and started to work through, if you could point me in the right place for the mod version you suggest, i would be grateful.
many thanks |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Sun Jun 29, 2008 7:47 am Post subject: Re: Really struggling with this, please help! |
|
|
| In the simple SEO mod rewrite install (and in the Prosilver / subsilver2 code changes thread) you have two sets of code changes for themes, one for prosilver and the other one for subsilver2, try applying the subsilver2 ones (it's not asking for forum_fn.js for example). |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
Nobby
Joined: 02 May 2008 Posts: 13
|
Posted: Sun Jun 29, 2008 10:05 pm Post subject: Re: Really struggling with this, please help! |
|
|
Guys, thanks a lot for all the help. Forum now seems to be running good on new template.
Thanks again, i just needed to apply the subsilver rather than the prosilver, i hadnt realized there was more than one mod there......
 |
|
|
| Back to top |
|
 |
|
|