Black Pearl Template with this MOD help

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Black Pearl Template with this MOD help

Postby googleandroid » Wed Dec 05, 2007 2:53 am

Ok i have the black pearl template on my forum and when installing this mod my template does not have the following:

Code: Select all
var onload_functions = new Array();
   var onunload_functions = new Array();


I do not have this code in the overallheader


Code: Select all
<a href="#p{postrow.POST_ID}">


I do not have this code in viewtopic_body.html



So are there any workarounds to make this mod work without these codes? Or where can I find these codes or how can I add them and into where?

Thanks
googleandroid
 
Posts: 3
Joined: Tue Dec 04, 2007 11:35 pm

Advertisement

Postby Peter77 » Wed Dec 05, 2007 3:45 am

It might be best to wait for MM to update his template... since he is going to upgrade it to RC8, and the SEO MODs are not ready for RC8 just yet. soon for sure.
Peter77
phpBB SEO Team
phpBB SEO Team
 
Posts: 520
Joined: Wed May 10, 2006 9:46 am
Location: Michigan

Re: Black Pearl Template with this MOD help

Postby SeO » Wed Dec 05, 2007 2:14 pm

googleandroid wrote:I do not have this code in viewtopic_body.html


That's no big deal and can even not be required with your template.

Here is the code changes for subsilver2, that will be added in the next release :
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#

styles/subsilver2/template/overall_header.html

#
#-----[ FIND ]------------------------------------------
#

<head>

#
#-----[ AFTER, ADD ]------------------------------------------
#

{SEO_BASE_HREF}

#
#-----[ FIND ]------------------------------------------
#

function jumpto()
{
   var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
   var perpage = '{PER_PAGE}';
   var base_url = '{A_BASE_URL}';

   if (page !== null && !isNaN(page) && page > 0)
   {
      document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * perpage);
   }
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto()
{
   var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
   var perpage = '{PER_PAGE}';
   var base_url = '{A_BASE_URL}';
   var seo_delim_start = '{SEO_START_DELIM}';
   var seo_static_pagination = '{SEO_SATIC_PAGE}';
   var seo_ext_pagination = '{SEO_EXT_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(/&amp;/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/subsilver2/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#

<a href="#wrapheader">

#
#-----[ REPLACE WITH ]------------------------------------------
#

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


Can be useful in case your template is based on subsilver2 more than prosilver.

Hope this helps.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 7 guests