Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Sorting Portal links ??
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2, 3, 4, 5  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 8:26 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 4:35 PM
Location: Birmingham, UK.
greatbrE.gif
my overall_footer.tpl


Code:
<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
<!--
   We request you retain the full copyright notice below including the link to www.phpbb.com.
   This not only gives respect to the large amount of time given freely by the developers
   but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
   reason) retain the full copyright we request you at least leave in place the
   Powered by phpBB line, with phpBB linked to www.phpbb.com. If you refuse
   to include even this then support on our forums may be affected.

   The phpBB Group : 2002
// -->
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a>
      </td>
   </tr>
</table>

</body>
</html>
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 8:38 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 4:35 PM
Location: Birmingham, UK.
greatbrE.gif
I've done it. I just added this to the overall.footer.tpl

Code:
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB<br /><a href="http://www.phpbb-seo.com/" title="Search Engine Optimization" target="_phpBBSEO">phpBB SEO</a><br />{TRANSLATION_INFO}


then changed the rewrite mod install.txt file to this

Code:
##############################################################
## MOD Title:       phpBB SEO Advanced mod Rewrite
## MOD Author:       dcz <n/a> http://www.phpbb-seo.com/
## MOD Description:    This mod will URL rewrite phpBB URLs, injecting
##         categories, forums and topic titles in their URLS.
##          Please read the author notes BEFORE using this mod.
##          Check http://www.phpbb-seo.com/
##          for the latest version or to get help with this MOD.
##
## MOD Version:    0.2.2
##
## Installation Level:    (ADVANCED)
## Installation Time:    10 Minutes
## Files To Edit:    (10)
##         .htaccess,
##         common.php,
##         index.php,
##         posting.php,
##         viewforum.php,
##         viewtopic.php,
##         search.php,
##         includes/functions.php,
##         includes/sessions.php,
##         overall_footer.tpl
## Included Files:   (2)
##         phpbb_seo/phpbb_seo_class.php
##         phpbb_seo/.htaccess
##
##############################################################
## Author Notes:
## _____________
##
## This is the phpBB SEO Advanced mod_rewrite core.
## Please note that this version will not inject topic titles in post's URLS. This is to make it easier
## to disallow them with our robots.txt file, since those are duplicates any way.
##
## This mod requires running Apache Server with mod_Rewrite module loaded, or IIS server running isapi_rewrite.
##
## This mod requires the Cyber Alien guest session mod ( http://www.phpbbstyles.com/viewtopic.php?t=357 )
## or any other SID removal method you may prefer.
##
## With this mod, phpBB URL will transformed this way :
##
##   index.php?c=xx               =>   cat-title-cxx.html
##
##   viewforum.php?t=xx            =>   forum-title-fxx.html
##
##   viewforum.php?t=xx&start=xx         =>   forum-title-fxx-yy.html
##
##   viewtopic.php?t=xx               =>   topic-title-txx.html
##
##   viewtopic.php?t=xx&start=xx         =>   topic-title-txx-yy.html
##
##   viewtopic.php?p=xx               =>   postxx.html
##
##   profile.php?mode=viewprofile&u=xx    =>   memberxx.html
##
## This mod has nothing in common with other phpBB mod rewrite, it will perform the URL rewriting
## without using ob_start() nor adding any SQL. It is thus faster and not messing anymore with Gun-Zip
## or with the html link format, and will not output any pagination duplicates.
##
## The process is optimized, titles are formatted once, even if the url is called many times.
##
## Short URL feature : everything in topic title in between "[" and "]" won't be injected in URL.
##   Example :
##   This topic title : "[SOMETHING] The Topic Title" will correspond to this URL : "the-topic-title-vtxx.html"
##
## Bad Title handling :
##   Example :
##   This topic title : """"??Véry bâd tïtle handling"[hehe]!!!" will correspond to this URL : "very-bad-title-handling-vtxx.html"
##
## WARNING : Topic title injection in URL can be hard to deal with depending on the type of subjects your
## forum is about. In most cases phpBB SEO recommend the use of the phpBB SEO mixed mod Rewrite instead.
## Please read : http://boards.phpbb-seo.com/phpbb-seo-toolkit/phpbb-seo-mod-rewrites-v t66.html
##
## This mod is and will be compatible to all phpBB SEO modules, specific install instructions may apply.
## phpBB SEO will provide patches to allow for other URL standards support upon request,
## so that everyone can take advantage of the phpBB mod Rewrites enhancement without jeopardising his Page-Ranking.
##
## Migration :
## ___________
##
## If you are migration, eg if your forum is already indexed using different URLs,
## you'll have to use another robots.txt and install the zero duplicate.
## The migrating procedure will allow you to migrate and keep your previously indexed pages.
## Older links will be HTTP 301 redirected to the new ones. It is rather simple, but the solution depends on cases.
## Let's meet in the migration forum.
##
##
####
## 0.0.1 => 0.0.2 Update : Required changes to be found in contrib/0.0.1_0.0.2_Advanced_Update.txt
## 0.0.2 => 0.2.0 Update : Required changes to be found in contrib/0.0.2_0.2.0_Advanced_Update.txt
## 0.2.0 => 0.2.2 Update : Required changes to be found in contrib/0.2.0_0.2.2_Advanced_Update.txt
####
##
## LICENSE:
##
## We, phpBB SEO, have decided to license this mod under the RPL Licence ( http://www.opensource.org/licenses/rpl.php )
## which states you cannot remove the phpBB SEO credits and if you make any modifications you have to resubmit them
## to phpBB SEO for inclusion into this package again. You can read the license for yourself for further info.
##
## You can of course use this mod without any more limitations than those stated here and in the licence.
##
## At least a link ( http://www.phpbb-seo.com/ ) is required on every web site using this mod, or,
## if your web site does not comply with what phpBB SEO can link to, one proven link within a
## general audience hard link directory of your choice not already listing phpBB SEO.
## For more details about possible exceptions, please contact a phpBB SEO administrator (primarily SeO or dcz).
##
## Failure to comply will jeopardize support.
##
##############################################################
## MOD History:
##
##   2007-02-03 - 0.2.2
##      - Got rid of the PHPBB_URL buggy constant
##      - added a bit of support for multi paths
##   2006-12-26 - 0.2.0
##      - New URL rewriting architecture, the code is rewritten from scratch, fully OO now for a better integration.
##        Now supports unlimited mods and modules URL rewriting.
##      - Optimized the format_url() function, just doing the same job faster (again).
##   2006-06-20 - 0.0.2
##      - Will NOT inject topic titles in post(viewtopic.php?p=xx) URLs, to make it possible to disallow
##        with robots.txt. Will be mod rewritten in a static manner instead.
##      - Optimized the format_url() function, just doing the same job faster.
##      - Added highlight fix in search.php adn fixed a small bug in search results (results posts)
##      - Optimized the append_sid() filtering.
##
##   2006-05-25 - 0.0.1
##      - First Beta Version
##
##   2006-03-01 - 0.0.0
##      - Initial beta testing phase
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#
______________________________
NOTE : VERSION UPDATE CHECKING
______________________________
if you are using XS mod ( http://www.phpbbstyles.com/viewtopic.php?t=356 ), by the way you should,
Upload :

contrib/xs_advanced_mod_rewrite.cfg

in your forum's admin/ folder, XS mod version checking will be extended to this mod.


_______________________
0.2.0 => 0.2.2 Update :
_______________________

To update from 0.2.0, just only apply the code changes in contrib/0.2.0_0.2.2_Advanced_Update.txt.

In case you are using the version update checking, you'll need to upload again :

contrib/xs_advanced_mod_rewrite.cfg

in your forum's admin/ folder, to make sure version update will look for the correct version.

________________________________________
>>>>   INSTALLATION INSTRUCTION    <<<<<
________________________________________

By Default, this mod will get rid of index.php for phpBB's index.
You can change this in phpbb_seo/phpbb_seo_class.php if you prefer.
Look for :

         'index' => ''

And replace with  :

         'index' => 'index.html'

or whatever you prefer.
This is mostly useful if you're running a portal in the folder where phpBB is installed.
You'll have to un-comment (get rid of the '#' at the beginning of the line) the FORUM INDEX rewriterule in the following .htaccess.
Remember you have to change index\.html in case you changed the above index.html to something else.

________________
NOTE : .htaccess
________________

You'll find ready to use .htaccess files in contrib/htaccess/english/
If your forum is not installed in the domain's root, you will have to
open the .htaccess and replace 'phpbb' with the phpBB's folder name.

Put the .htaccess file at the root level of your server.
If you have any other rewriterules there, just put the rules in it (be careful about the order!).
Should be after the forum rewriterules.
Please take a look at : http://www.phpbb-seo.com/boards/seo-principles/locking-the-www-in-urls -vt30.html
to find out how to lock the use (or un use) of the www prefix in your domain's url.
This is a major Search Engine Optimisation issue to take care of the www prefix.

___________________________________________

>>-->> Here is the .htaccess content <<--<<
___________________________________________

Two possibilities : If your phpBB is installed in root then use the proper .htaccess code without changing it.
If your phpBB is installed in a folder, replace 'phpBB' with the name of the folder that contains your phpBB forum.
According to the specific hoster you are using, you might have to get rid of the "/" at the beginning
of the right part of each rewriterules eg : RewriteRule ^.+-c([0-9]+)\.html$ index.php?c=$1 [QSA,L]

NOTE : These two lines should only be added if not already done in the .htaccess
________________________
RewriteEngine On
RewriteBase /
________________________

______
OPEN :
______


.htaccess

____________________________________________________
>>> YOUR FORUM IS INSTALLED AT THE DOMAIN'S ROOT <<<
____________________________________________________
ADD :
____________________________________________________

RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^index\.html$ /index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.*-c([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^.*-t([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^.*-t([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

___________________________________________
>>> YOUR FORUM IS INSTALLED IN A FOLDER <<<
___________________________________________
ADD :
___________________________________________

RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^phpbb/.*/([^/]+\.html)$ /phpbb/index.php [R=301,L]
# CATEGORIES
RewriteRule ^phpbb/.*-c([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^phpbb/.*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/.*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^phpbb/.*-t([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^phpbb/.*-t([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

#
#-----[ COPY ]--------------------------------------------------
#

copy phpbb_seo/*.* to phpbb_seo/*.*

#
#-----[ OPEN ]------------------------------------------
#

common.php

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

if (file_exists('install') || file_exists('contrib'))
{
   message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib');
}

#
#-----[ BEFORE, ADD ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
include($phpbb_root_path . 'phpbb_seo/phpbb_seo_class.'.$phpEx);
$phpbb_seo = new phpbb_seo();
// www.phpBB-SEO.com SEO TOOLKIT END



#
#-----[ OPEN ]------------------------------------------
#


index.php

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

      if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
      {

#
#-----[ AFTER, ADD ]------------------------------------------
#
         // www.phpBB-SEO.com SEO TOOLKIT BEGIN
         $phpbb_seo->seo_url['cat'][$cat_id] = $phpbb_seo->format_url($category_rows[$i]['cat_title'], $phpbb_seo->seo_static['cat']);
         // www.phpBB-SEO.com SEO TOOLKIT END

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

                  if ( $is_auth_ary[$forum_id]['auth_view'] )
                  {

#
#-----[ AFTER, ADD ]------------------------------------------
#
                     // www.phpBB-SEO.com SEO TOOLKIT BEGIN
                     if ( !isset($phpbb_seo->seo_url['forum'][$forum_id]) ) {
                        $phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_data[$j]['forum_name'], $phpbb_seo->seo_static['forum']);
                     }
                     // www.phpBB-SEO.com SEO TOOLKIT END



#
#-----[ OPEN ]------------------------------------------
#

posting.php

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

   $forum_name = $post_info['forum_name'];

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

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   $phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_name, $phpbb_seo->seo_static['forum']);
   // www.phpBB-SEO.com SEO TOOLKIT EN

#
#-----[ OPEN ]------------------------------------------
#

viewforum.php

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

//
// If the query doesn't return any rows this isn't a valid forum. Inform
// the user.
//
if ( !($forum_row = $db->sql_fetchrow($result)) )
{
   message_die(GENERAL_MESSAGE, 'Forum_not_exist');
}

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

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_row['forum_name'], $phpbb_seo->seo_static['forum']);
// www.phpBB-SEO.com SEO TOOLKIT END


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

      if( ( $replies + 1 ) > $board_config['posts_per_page'] )
      {

#
#-----[ BEFORE, ADD ]------------------------------------------
#

      // www.phpBB-SEO.com SEO TOOLKIT BEGIN
      $phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($topic_title);
      // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

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

if ($post_id)
{
   $start = floor(($forum_topic_data['prev_posts'] - 1) / intval($board_config['posts_per_page'])) * intval($board_config['posts_per_page']);
}

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

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->seo_url['forum'][$forum_topic_data['forum_id']] = $phpbb_seo->format_url($forum_name, $phpbb_seo->seo_static['forum']);
// www.phpBB-SEO.com SEO TOOLKIT END


#
#-----[ FIND ]------------------------------------------
#
if ( count($orig_word) )
{
   $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}


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

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($topic_title);
// www.phpBB-SEO.com SEO TOOLKIT END


#
#-----[ OPEN ]------------------------------------------
#

includes/functions.php

#
#-----[ FIND ]------------------------------------------
#
#function make_jumpbox($action, $match_forum_id = 0)
#{
   global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID;

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

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
   // www.phpBB-SEO.com SEO TOOLKIT END

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

                  $nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
                     'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
                     'title' => $forum_rows[$j]['forum_name']
                  );

#
#-----[ REPLACE WITH ]------------------------------------------
#
                  // www.phpBB-SEO.com SEO TOOLKIT BEGIN
                  if ( !isset($phpbb_seo->seo_url['forum'][$forum_rows[$j]['forum_id']]) ) {
                     $phpbb_seo->seo_url['forum'][$forum_rows[$j]['forum_id']] = $phpbb_seo->format_url($forum_rows[$j]['forum_name'], $phpbb_seo->seo_static['forum']);
                  }
                  $nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
                  //   'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
                     'url' => $phpbb_seo->seo_url['forum'][$forum_rows[$j]['forum_id']] . $phpbb_seo->seo_delim['forum'] . $forum_rows[$j]['forum_id'] . $phpbb_seo->seo_ext['forum'],
                     'title' => $forum_rows[$j]['forum_name']
                  );
                  // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OPEN ]------------------------------------------
#


search.php

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

      for($i = 0; $i < count($searchset); $i++)
      {


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

         // www.phpBB-SEO.com SEO TOOLKIT BEGIN
         $topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']) : $searchset[$i]['topic_title'];
         if ( !isset($phpbb_seo->seo_url['topic'][$searchset[$i]['topic_id']]) ) {
            $phpbb_seo->seo_url['topic'][$searchset[$i]['topic_id']] = $phpbb_seo->format_url($topic_title);
         }
         if ( !isset($phpbb_seo->seo_url['forum'][$searchset[$i]['forum_id']]) ) {
            $phpbb_seo->seo_url['forum'][$searchset[$i]['forum_id']] = $phpbb_seo->format_url($searchset[$i]['forum_name'], $phpbb_seo->seo_static['forum']);
         }
         // www.phpBB-SEO.com SEO TOOLKIT END

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

         $topic_title = $searchset[$i]['topic_title'];

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

         // www.phpBB-SEO.com SEO TOOLKIT BEGIN
         // Moved above
         //$topic_title = $searchset[$i]['topic_title'];
         // www.phpBB-SEO.com SEO TOOLKIT END

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

                  $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);

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

                  // www.phpBB-SEO.com SEO TOOLKIT BEGIN
                  // Moved above
                  //$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
                  // www.phpBB-SEO.com SEO TOOLKIT END


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

            if ( count($orig_word) )
            {
               $topic_title = preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']);
            }

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

            // www.phpBB-SEO.com SEO TOOLKIT BEGIN
            // Moved above
            //if ( count($orig_word) )
            //{
            //   $topic_title = preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']);
            //}
            // www.phpBB-SEO.com SEO TOOLKIT END


#
#-----[ OPEN ]------------------------------------------
#


includes/sessions.php

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

function append_sid($url, $non_html_amp = false)
{
   global $SID;

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

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
   $url = $phpbb_seo->url_rewrite($url, $non_html_amp);
   // www.phpBB-SEO.com SEO TOOLKIT END


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


The mod now processes properly

Quote:
Final Step
'Do it yourself' Instructions
'Do it yourself' instructions need to be executed by you manually, EasyMOD can not perform these actions

Notice
'Do it yourself' instructions need to be executed by you manually, EasyMOD can not perform these actions
______________________________
NOTE : VERSION UPDATE CHECKING
______________________________
if you are using XS mod ( http://www.phpbbstyles.com/viewtopic.php?t=356 ), by the way you should,
Upload :
contrib/xs_advanced_mod_rewrite.cfg
in your forum's admin/ folder, XS mod version checking will be extended to this mod.
_______________________
0.2.0 => 0.2.2 Update :
_______________________
To update from 0.2.0, just only apply the code changes in contrib/0.2.0_0.2.2_Advanced_Update.txt.
In case you are using the version update checking, you'll need to upload again :
contrib/xs_advanced_mod_rewrite.cfg
in your forum's admin/ folder, to make sure version update will look for the correct version.
________________________________________
>>>> INSTALLATION INSTRUCTION <<<<<
________________________________________
By Default, this mod will get rid of index.php for phpBB's index.
You can change this in phpbb_seo/phpbb_seo_class.php if you prefer.
Look for :
'index' => ''
And replace with :
'index' => 'index.html'
or whatever you prefer.
This is mostly useful if you're running a portal in the folder where phpBB is installed.
You'll have to un-comment (get rid of the '#' at the beginning of the line) the FORUM INDEX rewriterule in the following .htaccess.
Remember you have to change index\.html in case you changed the above index.html to something else.
________________
NOTE : .htaccess
________________
You'll find ready to use .htaccess files in contrib/htaccess/english/
If your forum is not installed in the domain's root, you will have to
open the .htaccess and replace 'phpbb' with the phpBB's folder name.
Put the .htaccess file at the root level of your server.
If you have any other rewriterules there, just put the rules in it (be careful about the order!).
Should be after the forum rewriterules.
Please take a look at : http://www.phpbb-seo.com/boards/seo-principles/locking-the-www-in-urls -vt30.html
to find out how to lock the use (or un use) of the www prefix in your domain's url.
This is a major Search Engine Optimisation issue to take care of the www prefix.
___________________________________________
>>-->> Here is the .htaccess content <<--<<
___________________________________________
Two possibilities : If your phpBB is installed in root then use the proper .htaccess code without changing it.
If your phpBB is installed in a folder, replace 'phpBB' with the name of the folder that contains your phpBB forum.
According to the specific hoster you are using, you might have to get rid of the "/" at the beginning
of the right part of each rewriterules eg : RewriteRule ^.+-c([0-9]+)\.html$ index.php?c=$1 [QSA,L]
NOTE : These two lines should only be added if not already done in the .htaccess
________________________
RewriteEngine On
RewriteBase /
________________________
______
OPEN :
______
.htaccess
____________________________________________________
>>> YOUR FORUM IS INSTALLED AT THE DOMAIN'S ROOT <<<
____________________________________________________
ADD :
____________________________________________________
RewriteEngine On
RewriteBase /

 



Installation Complete


Now for the DIY instructions (I think)  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 8:51 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:35 AM
Location: St Pete, FL
peace.gif
The {TRANSLATION_INFO} code has been in phpBB since at least 2.0.11.  Was your template designed for an earlier version or have you removed this part from your overall_footer.tpl file???

Ok, try this:

OPEN
phpBB-SEO-Advanced-mod-Rewrite_V_0.2.2.txt

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#

Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group

#
#-----[ IN-LINE FIND ]------------------------------------------
#

<br />{TRANSLATION_INFO}

#
#-----[ IN-LINE BEFORE, ADD]------------------------------------------
#

<br /><a href="http://www.phpbb-seo.com/" title="Search Engine Optimization" target="_phpBBSEO">phpBB SEO</a>

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
phpBB</a>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
phpBB</a>
#
#-----[ IN-LINE AFTER, ADD]------------------------------------------
#
<br /><a href="http://www.phpbb-seo.com/" title="Search Engine Optimization" target="_phpBBSEO">phpBB SEO</a>

Save, upload, and try again using EM...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 9:06 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 4:35 PM
Location: Birmingham, UK.
greatbrE.gif
Maybe another mod removed the translation bit... I know I never anyway.

I got it working though… see above Nightrider.

Sorry, for me going on a posting frenzy back then hehe headbang

You missed some of my posts no doubt...  headbang
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 9:20 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:35 AM
Location: St Pete, FL
peace.gif
So what template are you using???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 9:29 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 4:35 PM
Location: Birmingham, UK.
greatbrE.gif
Err subsilver innit...? dontknow

I know I'm using phpBB-2.0.22 but that's about it

I'm going out now... shall carry on with this when I get back...

I've processed the mod but when I check here http://www.djpassions.com/test and use the forum link it just refreshes the page and when I try to click on a thread http://djpassions.com/test/index.php I get a 500 error.

I suppose I just need to do the DIY instructions now but they seem way too tricky for me. If you haven't had a go by the time I'm back though Nightrider I’ll give it a go... Wink
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 9:43 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:35 AM
Location: St Pete, FL
peace.gif
These Internal Server errors are generally caused by one of two different reasons.  Either the parent permissions of the phpBB folder are not set to 755 or one or more php files has code or space above the <?php at the top of the file.  There should never be anything above that line.  So if this started after installing the MOD, check every file that was modified to make sure there is nothing above the <?php code...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 12:04 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 4:35 PM
Location: Birmingham, UK.
greatbrE.gif
Well I haven't gone through the DIY instructions yet that's why...

All I’ve done is copied the files and edited the ones that needed editing...

The .htacces will correct the threads to open up correctly but I don’t have any set. I’m not sure how to set them etc Sad
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 12:13 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 4:35 PM
Location: Birmingham, UK.
greatbrE.gif
If I didn't have EzPortal installed and was using the modrewitre mod on the main phpbb coming of the /root folder I wouldn’t have much trouble installing this but because I'm using the test folder to try this mod out it's a little more difficult to get working.....

I haven't done any of this...

Code:
#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#
______________________________
NOTE : VERSION UPDATE CHECKING
______________________________
if you are using XS mod ( http://www.phpbbstyles.com/viewtopic.php?t=356 ), by the way you should,
Upload :

contrib/xs_advanced_mod_rewrite.cfg

in your forum's admin/ folder, XS mod version checking will be extended to this mod.


_______________________
0.2.0 => 0.2.2 Update :
_______________________

To update from 0.2.0, just only apply the code changes in contrib/0.2.0_0.2.2_Advanced_Update.txt.

In case you are using the version update checking, you'll need to upload again :

contrib/xs_advanced_mod_rewrite.cfg

in your forum's admin/ folder, to make sure version update will look for the correct version.

________________________________________
>>>>   INSTALLATION INSTRUCTION    <<<<<
________________________________________

By Default, this mod will get rid of index.php for phpBB's index.
You can change this in phpbb_seo/phpbb_seo_class.php if you prefer.
Look for :

         'index' => ''

And replace with  :

         'index' => 'index.html'

or whatever you prefer.
This is mostly useful if you're running a portal in the folder where phpBB is installed.
You'll have to un-comment (get rid of the '#' at the beginning of the line) the FORUM INDEX rewriterule in the following .htaccess.
Remember you have to change index\.html in case you changed the above index.html to something else.

________________
NOTE : .htaccess
________________

You'll find ready to use .htaccess files in contrib/htaccess/english/
If your forum is not installed in the domain's root, you will have to
open the .htaccess and replace 'phpbb' with the phpBB's folder name.

Put the .htaccess file at the root level of your server.
If you have any other rewriterules there, just put the rules in it (be careful about the order!).
Should be after the forum rewriterules.
Please take a look at : http://www.phpbb-seo.com/boards/seo-principles/locking-the-www-in-urls -vt30.html
to find out how to lock the use (or un use) of the www prefix in your domain's url.
This is a major Search Engine Optimisation issue to take care of the www prefix.

___________________________________________

>>-->> Here is the .htaccess content <<--<<
___________________________________________

Two possibilities : If your phpBB is installed in root then use the proper .htaccess code without changing it.
If your phpBB is installed in a folder, replace 'phpBB' with the name of the folder that contains your phpBB forum.
According to the specific hoster you are using, you might have to get rid of the "/" at the beginning
of the right part of each rewriterules eg : RewriteRule ^.+-c([0-9]+)\.html$ index.php?c=$1 [QSA,L]

NOTE : These two lines should only be added if not already done in the .htaccess
________________________
RewriteEngine On
RewriteBase /
________________________

______
OPEN :
______


.htaccess

____________________________________________________
>>> YOUR FORUM IS INSTALLED AT THE DOMAIN'S ROOT <<<
____________________________________________________
ADD :
____________________________________________________

RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^index\.html$ /index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.*-c([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^.*-t([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^.*-t([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

___________________________________________
>>> YOUR FORUM IS INSTALLED IN A FOLDER <<<
___________________________________________
ADD :
___________________________________________

RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^phpbb/.*/([^/]+\.html)$ /phpbb/index.php [R=301,L]
# CATEGORIES
RewriteRule ^phpbb/.*-c([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^phpbb/.*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/.*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^phpbb/.*-t([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^phpbb/.*-t([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

#
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Sorting Portal links ??
PostPosted: 04/06/2007 12:14 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:35 AM
Location: St Pete, FL
peace.gif
I can't imagine that the .htaccess files would cause Internal Server errors though.  Did you check all the modified files to see if any code or space was added above the <?php line at the top???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2, 3, 4, 5  Next
Page 4 of 5


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1948s (PHP: 77% - SQL: 23%) - SQL queries: 57 - GZIP disabled - Debug on