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  
 
   
modding my theme

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
::  
Author Message
chrishide87



Joined: 04 Mar 2008
Posts: 5

modding my themePosted: Tue Mar 04, 2008 3:05 pm    Post subject: modding my theme

i'm trying to mod bo2soft theme using the following code for prosilver/subsilver, but im having lots of problems...the code is as follows..



Code:
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

#
#-----[ OPEN ]------------------------------------------
## MOD Title:       Advanced phpBB3 SEO mod Rewrite
## MOD Title:       phpBB3 SEO Dynamic Meta tags
## MOD Title:       phpBB3 SEO Optimal titles
#

styles/prosilver/template/overall_header.html

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

<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

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

<head>
{SEO_BASE_HREF}
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF --></title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
{META_TAG}
{META}

#
#-----[ FIND ]------------------------------------------
## MOD Title:       Advanced phpBB3 SEO mod Rewrite
#

   var onload_functions = new Array();
   var onunload_functions = new Array();

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

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   var seo_delim_start = '{SEO_START_DELIM}';
   var seo_static_pagination = '{SEO_SATIC_PAGE}';
   var seo_ext_pagination = '{SEO_EXT_PAGE}';
   // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OPEN ]------------------------------------------
## MOD Title:       phpBB3 SEO No Duplicate
#

styles/prosilver/template/forumlist_body.html

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

                  <!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>

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

<!-- IF forumrow.LAST_POST_LINK --><i>{forumrow.LAST_POST_LINK}</i><br/><!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
## MOD Title:       Advanced phpBB3 SEO mod Rewrite
#

styles/prosilver/template/viewtopic_body.html

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

<a href="#p{postrow.POST_ID}">

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

<a href="{U_VIEW_TOPIC}#p{postrow.POST_ID}">

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

<a href="#wrap" class="top" title="{L_BACK_TO_TOP}">

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

<a href="{U_VIEW_TOPIC}#wrap" class="top" title="{L_BACK_TO_TOP}">

#
#-----[ OPEN ]------------------------------------------
## MOD Title:       Advanced phpBB3 SEO mod Rewrite
## MOD Title:       phpBB3 SEO Dynamic Meta tags
## MOD Title:       phpBB3 SEO Optimal titles
#

styles/subsilver2/template/overall_header.html

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

<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

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

<head>
{SEO_BASE_HREF}
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF --></title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
{META_TAG}
{META}

#
#-----[ FIND ]------------------------------------------
## MOD Title:       Advanced phpBB3 SEO mod Rewrite
#

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 ]------------------------------------------
## MOD Title:       phpBB3 SEO No Duplicate
#

styles/subsilver2/template/forumlist_body.html

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

            <!-- IF forumrow.LAST_POST_TIME -->

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

               <!-- IF forumrow.LAST_POST_LINK -->
               <p class="topicdetails"><i>{forumrow.LAST_POST_LINK}</i></p>
               <!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
## MOD Title:       Advanced phpBB3 SEO mod Rewrite
#

styles/subsilver2/template/viewtopic_body.html

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

<a href="#wrapheader">

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

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

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


i've read this - but i'm trying to mod bo2soft theme for phpbb 3.0, and i got to the first thing, which is to open forum_fn.js, and the theme doesn't have this file...it has an editor.js, so i opened that i couldn't find the code it was asking for me to...

any help?
Back to top
chrishide87



Joined: 04 Mar 2008
Posts: 5

modding my themePosted: Thu Mar 06, 2008 11:09 am    Post subject: Re: modding my theme

basically i've tried to do the changes mentioned in the subsilver theme as that has the same code as bo2soft which i want to implement.

i changed all the files, reuploaded them, and cleared the cache, and when i go to look at the board, the front page works with the bo2soft theme, but if i click any link, it goes to that page but without any theme whatsoever...

please help - i want to get this up and running again as soon as possible...its been down for around a month now..


any help would be greatly appreciated...

thanks


chris
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 829

modding my themePosted: Thu Mar 06, 2008 12:47 pm    Post subject: Re: modding my theme

chrishide87 wrote:
i changed all the files, reuploaded them, and cleared the cache, and when i go to look at the board, the front page works with the bo2soft theme, but if i click any link, it goes to that page but without any theme whatsoever...

If I understand you correctly, the page is not laid out... if so, then I suspect the path(s) to your CSS is incorrect. Look for statements like this:

Code:
<link href="<yourstyle.css" rel="stylesheet" type="text/css" media="screen, projection" />

The directory in href is probably incorrect. If you don't see images in your style, then check the background: attribute in your style sheet.

_________________
Dan Kehn
Back to top
Visit poster's website
chrishide87



Joined: 04 Mar 2008
Posts: 5

modding my themePosted: Thu Mar 06, 2008 1:33 pm    Post subject: Re: modding my theme

HB wrote:
chrishide87 wrote:
i changed all the files, reuploaded them, and cleared the cache, and when i go to look at the board, the front page works with the bo2soft theme, but if i click any link, it goes to that page but without any theme whatsoever...

If I understand you correctly, the page is not laid out... if so, then I suspect the path(s) to your CSS is incorrect. Look for statements like this:

Code:
<link href="<yourstyle.css" rel="stylesheet" type="text/css" media="screen, projection" />

The directory in href is probably incorrect. If you don't see images in your style, then check the background: attribute in your style sheet.


thanks for your reply HB, what file would this statement be in?

by the way - an example so you can see what i mean is here
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

modding my themePosted: Tue Mar 11, 2008 1:36 pm    Post subject: Re: modding my theme

Looks like it's sorted now.
phpBB's cache is tricky because data are stored in several type of cache : compiled template and db data are stored in physical files and the css theme is stored in the db, so you need to clear all type of cache to make sure you actually get the new data used in the end page.

++

_________________
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 SEO TooLKit  » phpBB SEO Premod
Page 1 of 1

Navigation Similar Topics

Jump to: