phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Trying to install advanced SEO URL but using Subsilver2

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
TerryTibbs



Joined: 14 Sep 2007
Posts: 1

Trying to install advanced SEO URL but using Subsilver2Posted: 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(/&amp;/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(/&amp;/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(/&amp;/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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Trying to install advanced SEO URL but using Subsilver2Posted: Sun Sep 16, 2007 12:27 pm    Post subject: Re: Trying to install advanced SEO URL but using Subsilver2

For the jumpto JS function, you are right, just perform the change in overall_header.html.

In viewtopic_body.html, you need to search for :

Code:
<a href="#wrapheader">


and change it to :

Code:
<a href="{U_VIEW_TOPIC}#wrapheader">


You should not need to change :

Code:
<a name="p{postrow.POST_ID}">


++

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: