Really struggling with this, please help!

phpBB3 SEO Simple mod Rewrite support forum. This mods performs URL rewriting for phpBB3 in a static way.

Moderator: Moderators


Postby Nobby » Thu Jun 26, 2008 10:40 am

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: Select all
#
#-----[ 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
Nobby
 
Posts: 13
Joined: Fri May 02, 2008 10:04 am

Advertisement

Postby SeO » Thu Jun 26, 2008 2:52 pm

Then the js could be in overall_header.html like with subsilver2, try the subsilver2 code change for overall_header.html to see if you get better matching.
SeO
Admin
Admin
 
Posts: 6012
Joined: Wed Mar 15, 2006 9:41 pm

Postby Nobby » Fri Jun 27, 2008 8:17 pm

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.


:roll:
Nobby
 
Posts: 13
Joined: Fri May 02, 2008 10:04 am

Postby dcz » Sat Jun 28, 2008 8:55 am

Please post here a zip of your theme's files, I'm pretty sure it's barely nothing to implement this last code change in it ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 19909
Joined: Fri Apr 28, 2006 9:03 pm

Postby Nobby » Sat Jun 28, 2008 8:38 pm

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
Nobby
 
Posts: 13
Joined: Fri May 02, 2008 10:04 am

Postby SeO » Sat Jun 28, 2008 9:59 pm

Your overall_header.html is very similar to subsilver2, have you tried to apply subsilver2 code change on it ?
SeO
Admin
Admin
 
Posts: 6012
Joined: Wed Mar 15, 2006 9:41 pm

Postby Nobby » Sun Jun 29, 2008 7:39 am

No, i dont really understand what that means, i was pointed here: http://www.phpbb-seo.com/boards/phpbb-s ... t1913.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
Nobby
 
Posts: 13
Joined: Fri May 02, 2008 10:04 am

Postby SeO » Sun Jun 29, 2008 7:47 am

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).
SeO
Admin
Admin
 
Posts: 6012
Joined: Wed Mar 15, 2006 9:41 pm

Postby Nobby » Sun Jun 29, 2008 10:05 pm

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......

:wink:
Nobby
 
Posts: 13
Joined: Fri May 02, 2008 10:04 am

Previous

Return to Simple SEO URL

Who is online

Users browsing this forum: No registered users and 3 guests


 
cron