Prosilver / subsilver2 code changes

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators


Prosilver / subsilver2 code changes

Postby dcz » Sat Dec 22, 2007 1:41 pm

Support for custom style implementation in the phpBB SEO premod :

You will find the complete code changes for prosilver and subsilver2 in the contrib/prosilver _subsilver2_code_changes.txt file of the full SEO premod Package.
These may be useful in case you want to install a new style to your phpBB SEO premod installation.
Don't forget to clear phpBB's cache after you mod your templates.

Code: Select all
#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#

Once you will have installed the mod, you will have to clear phpBB's cache.

Code change for prosilver and subsilver templates with the phpBB SEO premod 3.0.5 :
[url=http://www.phpbb-seo.com/en/phpbb-seo-premod/seo-url-premod-t1549.html]phpBB SEO Premod V 3.0.5[/url] (en)
http://www.phpbb-seo.com/fr/premod-phpbb-seo/premod-referencement-phpbb-t1951.html (fr)

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

styles/prosilver/template/attachment.html

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

         <dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>

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

         <dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / {_file.DOWNLOAD_NAME}<!-- ELSE -->{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}<!-- ENDIF -->" /></a></dt>

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

         <dt class="attach-image"><img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>

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

         <dt class="attach-image"><img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>

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

         <dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a></dt>

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

         <dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}">{_file.DOWNLOAD_NAME}</a></dt>

#
#-----[ 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 == Math.floor(page) && page > 0)
   {
      if (base_url.indexOf('?') == -1)
      {
         document.location.href = base_url + '?start=' + ((page - 1) * per_page);
      }
      else
      {
         document.location.href = base_url.replace(/&amp;/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 == Math.floor(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/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
## MOD Title:       phpBB3 SEO Dynamic Meta tags
## MOD Title:       phpBB3 SEO Optimal titles
## MOD Title:       GYM Sitempas & RSS
#

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 http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{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 --> &bull; {L_MCP}<!-- ELSEIF S_IN_UCP --> &bull; {L_UCP}<!-- 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 http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<!-- BEGIN gym_rsslinks -->
<link rel="alternate" type="application/rss+xml" title="{gym_rsslinks.TITLE}" href="{gym_rsslinks.URL}" />
<!-- END gym_rsslinks -->

#
#-----[ 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:       GYM Sitempas & RSS
#

styles/prosilver/template/overall_footer.html

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

      <ul class="linklist">

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

      <ul class="linklist<!-- IF GYM_LINKS --> navlinks<!-- ENDIF -->">

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

      </ul>

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

      <!-- IF GYM_LINKS -->
      <ul class="linklist">
         <!-- IF GYM_HTML_NEWS_URL --><li class="leftside">{GYM_HTML_NEWS_LINK}</li><!-- ENDIF -->
         <!-- IF GYM_HTML_MAP_URL --><li class="leftside">{GYM_HTML_MAP_LINK}</li><!-- ENDIF -->
         <li class="leftside">{GYM_GOOGLE_LINK}</li>
         <li class="leftside">{GYM_RSS_LINK}</li>
         <li class="leftside">{GYM_RSS_CHAN_LINK}</li>
      </ul>
      <!-- ENDIF -->
#
#-----[ OPEN ]------------------------------------------
## MOD Title:       Advanced phpBB3 SEO mod Rewrite
#

styles/prosilver/template/posting_editor.html

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

   <dl style="clear: left;">
      <dt><label for="subject">{L_SUBJECT}:</label></dt>
      <dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
   </dl>

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

      <!-- IF S_URL -->
      <dl style="clear: left;">
         <dt><label for="url">URL:</label></dt>
            <dd><input type="text" name="url" id="url" size="45" maxlength="250" tabindex="2" value="{TOPIC_URL}" class="inputbox autowidth" /></dd>
      </dl>
      <!-- ENDIF -->

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

styles/prosilver/template/simple_header.html

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

<head>

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

{SEO_BASE_HREF}
      
#
#-----[ OPEN ]------------------------------------------
## MOD Title:       GYM Sitempas & RSS
#

styles/prosilver/template/viewforum_body.html

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

<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>

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

<!-- IF GYM_LINKS_CAT --><h3>{GYM_HTML_FORUM_NEWS_LINK} {GYM_HTML_FORUM_MAP_LINK} {GYM_RSS_FORUM_LINK} {GYM_GOOGLE_FORUM_LINK}</h3><!-- 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:       GYM Sitempas & RSS
#

styles/prosilver/theme/common.css

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

.clear {
   display: block;
   clear: both;
   font-size: 1px;
   line-height: 1px;
   background: transparent;
}

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

/* GYM Sitemaps & RSS - www.phpbb-seo.com */
div.gymsublist {
   display:block;
   position:relative;
   padding-left:10px;
   padding-top:5px;
   padding-bottom:10px;
   padding-right:0;
   margin:0;
}
div.gymsublist ul {
   display:block;
   position:relative;
   height:1%;
   padding-left:30px;
}
div.gymsublist ul li {
   display:block;
   position:relative;
   line-height:18px;
   font-size:11px;
}
/* GYM Sitemaps & RSS - www.phpbb-seo.com */

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

styles/subsilver2/template/attachment.html

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

         <a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" /></a><br />

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

         <a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / {_file.DOWNLOAD_NAME}<!-- ELSE -->{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}<!-- ENDIF -->"/></a><br />

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

         <img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" /><br />

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

         <img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}"/><br />

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

            <a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [{_file.FILESIZE} {_file.SIZE_LANG}]

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

            <a href="{_file.U_DOWNLOAD_LINK}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}">{_file.DOWNLOAD_NAME}</a> [{_file.FILESIZE} {_file.SIZE_LANG}]

#
#-----[ 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
## MOD Title:       phpBB3 SEO Dynamic Meta tags
## MOD Title:       phpBB3 SEO Optimal titles
## MOD Title:       GYM Sitempas & RSS
#

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 http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{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 --> &bull; {L_MCP}<!-- ELSEIF S_IN_UCP --> &bull; {L_UCP}<!-- 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 http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<!-- BEGIN gym_rsslinks -->
<link rel="alternate" type="application/rss+xml" title="{gym_rsslinks.TITLE}" href="{gym_rsslinks.URL}" />
<!-- END gym_rsslinks -->

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

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

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

#
#-----[ 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 == Math.floor(page) && page > 0) {
      var seo_page = (page - 1) * perpage;
      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:       GYM Sitempas & RSS
#

styles/subsilver2/template/overall_footer.html

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

<div id="wrapfooter">

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

   <!-- IF GYM_LINKS --><span><!-- IF GYM_HTML_NEWS_URL -->{GYM_HTML_NEWS_LINK} <!-- ENDIF --><!-- IF GYM_HTML_MAP_URL -->{GYM_HTML_MAP_LINK} <!-- ENDIF -->{GYM_GOOGLE_LINK} {GYM_RSS_LINK} {GYM_RSS_CHAN_LINK}</span><br /><!-- ENDIF -->

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

styles/subsilver2/template/posting_body.html

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

<tr>
   <td class="row1" width="22%"><b class="genmed">{L_SUBJECT}:</b></td>
   <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
</tr>

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

<!-- IF S_URL -->
<tr>
   <td class="row1" width="22%"><b class="genmed">URL:</b></td>
   <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="url" size="45" maxlength="250" tabindex="2" value="{TOPIC_URL}" /></td>
</tr>
<!-- ENDIF -->

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

styles/subsilver2/template/simple_header.html

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

<head>

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

{SEO_BASE_HREF}

#
#-----[ OPEN ]------------------------------------------
## MOD Title:       GYM Sitempas & RSS
#

styles/subsilver2/template/viewforum_body.html

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

      <h2><a class="titles" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>

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

      <!-- IF GYM_LINKS_CAT --><h3>{GYM_HTML_FORUM_NEWS_LINK} {GYM_HTML_FORUM_MAP_LINK} {GYM_RSS_FORUM_LINK} {GYM_GOOGLE_FORUM_LINK}</h3><!-- 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">

#
#-----[ OPEN ]------------------------------------------
## MOD Title:       GYM Sitempas & RSS
#

styles/subsilver2/theme/stylesheet.css

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

.username-coloured {
   font-weight: bold;
}

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

/* GYM Sitemaps & RSS - www.phpbb-seo.com */
div.gymsublist {
   display:block;
   position:relative;
   padding-left:10px;
   padding-top:5px;
   padding-bottom:10px;
   padding-right:0;
   margin:0;
}
div.gymsublist ul {
   display:block;
   position:relative;
   height:1%;
   padding-left:30px;
}
div.gymsublist ul li {
   display:block;
   position:relative;
   line-height:18px;
   font-size:11px;
}
/* GYM Sitemaps & RSS - www.phpbb-seo.com */

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


French speaking support.

[EDIT]Updated for 3.0.5
Last edited by dcz on Sat Jan 10, 2009 9:53 am, edited 1 time in total.
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Postby dcz » Sat Jul 19, 2008 8:00 am

Updated to SEO premod 3.0.2. Only adds the required code for GYM sitemaps, no other changes.
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Other style?

Postby sovanndy » Sat Jul 19, 2008 9:56 am

If I will installe other style beside prosilver or subsilver2, will it work when I used it with premod rewrite 3.01?

if not and I will use it with premod rewrite 3.02 and GYM, what steps I have to do?

Could you explain me?
sovanndy
PR0
PR0
 
Posts: 74
Joined: Tue Jun 10, 2008 8:11 am

Postby dcz » Sat Jul 19, 2008 10:10 am

The idea is to check from which one of the two default style (prosilver and subsilver2) your theme is the closest, and then apply the code change to it.

Usually, the closest code change do match pretty well, if you have trouble with some part, please report about it and we'll find the solution.
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

invalide all url?

Postby sovanndy » Sat Jul 19, 2008 10:16 am

My style called Hestia, it's defferent far from prosilver or subsilver2 style. it's a new styles for phpbb3. It worked before I add your premod rewrite. But after I added premod rewrite, it doesn't work for all urls of images, stylesheet, other links to other pages.

My style have no forum_fn.js file in template folder but it work before I add premod rewrite.

In any category topic pages or other pages that is sublink pages, it always linked to invalid page url of images and styles. for instance, as I right-clicked on all invalid link items, it shown the path like this -http://vanndy-billing/phpbb/vpn/styles/hestia/imageset/site_logo.gif and other -http://vanndy-billing/phpbb/vpn/styles/hestia/imageset/newtopic_button.gif

but the real urls is not that. that is -http://vanndy-billing/phpbb/styles/hestia/imageset/site_logo.gif and other -http://vanndy-billing/phpbb/styles/hestia/imageset/newtopic_button.gif etc....

it mean that it always embeded category name or topic name in the next domain name. for example -http://vanndy-billing/phpbb/vpn/styles/hestia/imageset/site_logo.gif or -http://vanndy-billing/phpbb/network/styles/hestia/imageset/site_logo.gif. it make my topic page show only text.

Note : VPN or Netowrk is topic name and category name.

Could you help me correct it?
sovanndy
PR0
PR0
 
Posts: 74
Joined: Tue Jun 10, 2008 8:11 am

Postby dcz » Sat Jul 19, 2008 12:28 pm

Well, there is nothing more I can tell, if you have no forum_fn.js file, then try the subsilver2 code change on your theme, at least for overall_header.html.
The first code change matches all styles and is the one that will fix the problem you describe (after you'll have refreshed your theme and template in style acp).
Without a link to where your theme is officially released, I cannot go further in details.
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Glacier_Lite problems

Postby 2klix » Thu Aug 14, 2008 8:15 am

I am using the Glacier_Lite template and have tried using the closest code but it doesn't seem to work on a local instal. The problem I have is that the links on some of the menu show up as -http://localhost/ whatever when really they should show up as -http://localhost:8888/whatever does anyone else have a fix for this?
Thanks
Matt
2klix
 
Posts: 9
Joined: Fri Aug 01, 2008 9:21 am

Postby dcz » Mon Aug 18, 2008 8:37 am

The server port in url is not really related to the templates.
The phpbb_seo class does not use the server port since SEO goes with no port displayed (80) in links, but it's quite easy to add it back, in phpbb_seo_class.php, you can replace :
Code: Select all
      $this->seo_path['root_url'] =  $server_protocol . $server_name;

with :
Code: Select all
      $this->seo_path['root_url'] =  $server_protocol . $server_name . $server_port;


++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

A little confused. Help needed.

Postby microtekblue » Fri Sep 12, 2008 5:49 am

Hello.

Sorry but I am kind of confused.

Do we apply this mod onto our new Style or on one of the prosilver/subsilver styles?

Any suggestions would be greatly appreciated. The style in question is in my signature link.

Thanks. :D
microtekblue
 
Posts: 24
Joined: Mon Jul 28, 2008 4:20 pm

Postby dcz » Sat Sep 13, 2008 4:09 pm

This is only a compilation of the code changes performed in the style files by all the installed mods in the premod. You do not need to implement them in the provided subsilver2 and prosilver packages, it's only useful for other styles.

Just find which one of the two your theme is based on, and apply the corresponding code change, usually, it works, in case you have problems, please post a link to where your custom style is released ;)

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby teokolo » Mon Oct 13, 2008 11:30 pm

Hello,
I am running phpbb-seo premod 3.02 .
I was using the default template and everything worked fine, then I switched to another theme (proformell), I edited it as described in this post and the login to the acp doesn't work anymore.
I can make the first login, the second too, but after that i get logged out (if I proceed to the acp and if I go to the board index).
Now I cannot go to ACP and switch back to prosilver...
Any help?
teokolo
 
Posts: 6
Joined: Sun Sep 07, 2008 9:49 am

Postby teokolo » Tue Oct 14, 2008 10:50 am

The problem is solved. I think it was a cache issue.
teokolo
 
Posts: 6
Joined: Sun Sep 07, 2008 9:49 am

Postby microtekblue » Wed Oct 29, 2008 2:09 am

Hello,

I installed my new style..and I was going to do the code changes, but I noticed that my new style does NOT have the file forum_fn.js ?

What do I do if my new style is missing the forum_fn.js? What is that file for anyways?

Thanks for the help in advance.
microtekblue
 
Posts: 24
Joined: Mon Jul 28, 2008 4:20 pm

Postby Professional » Wed Oct 29, 2008 5:40 am

microtekblue wrote:Hello,

I installed my new style..and I was going to do the code changes, but I noticed that my new style does NOT have the file forum_fn.js ?

What do I do if my new style is missing the forum_fn.js? What is that file for anyways?

Thanks for the help in advance.


hi so your style is subsilver2 base,u shoud do that codes :wink:
User avatar
Professional
PR3
PR3
 
Posts: 371
Joined: Mon Apr 07, 2008 5:41 am
Location: 1/2 of the World

Postby microtekblue » Wed Oct 29, 2008 7:30 am

Professional wrote:
hi so your style is subsilver2 base,u shoud do that codes :wink:


Hi, sorry I am confused now.

Where is the subsliver2 code changes located?
microtekblue
 
Posts: 24
Joined: Mon Jul 28, 2008 4:20 pm

Next

Return to phpBB SEO Premod




  • Similar topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: ub3r and 4 guests