Problem with "remove index from forum" fix iwth Ad

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

Moderator: Moderators

Problem with "remove index from forum" fix iwth Ad

Postby Peter77 » Tue Jan 23, 2007 8:00 am

If you remember the thread about the patch of removing index.php from the forum, there seems to be a conflict with that code. actually anything to do with seo_redirect()


Fatal error: Call to undefined function: seo_redirect() in /home/juarol3/public_html/sucasa/index.php on line 74

Or another words:
Code: Select all
$mark_read = '';
}
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$uri = $_SERVER['REQUEST_URI'];
If ($mark_read == '' && $viewcat == -1 && strpos($uri, "index.$phpEx")) {
seo_redirect(PHPBB_URL);
}
// www.phpBB-SEO.com SEO TOOLKIT END


This only happens when actually entering the URL with index.php included. But this can not be helped anyway since even our own ACP gives us the link.
Peter77
phpBB SEO Team
phpBB SEO Team
 
Posts: 524
Joined: Wed May 10, 2006 9:46 am
Location: Michigan

Advertisement

Postby dcz » Tue Jan 23, 2007 9:40 am

Well, all the SEO mods should be 0.2.x to work together, the 0.0.2 series is not compatible.

In this case you can juste replace :

Code: Select all
seo_redirect


with

Code: Select all
$phpbb_seo->seo_redirect


But the zero dupe 0.2.0 is taking care of this matter (index.php), so you'll soon have to update ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby tweety » Sun Mar 04, 2007 4:53 pm

THIS WAS ANSWER TO MY MANY QUESTIONS.

to help others not wasted time

please can you tell me what did I do wrong here, I follow your update from
Code: Select all
##############################################################
## MOD Title:       phpBB SEO Advanced Zero duplicate 0.2.0 => 0.2.2 update
## MOD Author:       dcz <n/a> http://www.phpbb-seo.com/
## MOD Description:    This are the update steps for the phpBB SEO Advanced Zero duplicate 0.2.0 => 0.2.2 update.
##          Check http://www.phpbb-seo.com/
##          for the latest version or to get help with this MOD
##
## MOD Version:    1.0
##
## Installation Level:    (Easy)
## Installation Time:    3 Minutes
## Files To Edit:    (4)
##         index.php,
##         viewforum.php,
##         viewtopic.php,
##         includes/usercp_viewprofile.php
## Included Files: n/a
##############################################################
## Author Notes:
## _____________
##
## This are the update steps for the phpBB SEO Advanced Zero duplicate 0.2.0 => 0.2.2 update.
##
## PLEASE NOTE :
## _____________
##
## The 0.2.0 version is been rewritten from scratch, and is really different from the 0.0.x.
## Mods should be patched in a similar manner, but previous patches won't work with this version.
## This means that you will have to make sure all the patches you're using are up to date before
## you update.
##
##
##
##############################################################
## MOD History:
##
##   2007-02-03 - 1.0
##      - First version released
##
##############################################################
## 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.

_________________________________________
>>>>   INSTALLATION INSTRUCTIONS    <<<<<
_________________________________________

This update procedure will keep the previous URL standard used.
No changes in .htaccess.

_________
WARNING :
_________

This update is mainly here to get rid of the PHPBB_URL constant.
You should now use :

$phpbb_seo->seo_path['phpbb_script'] instead of PHPBB_SCRIPT
$phpbb_seo->seo_path['root_url'] instead of ROOT_URL
$phpbb_seo->seo_path['phpbb_url'] instead of PHPBB_URL

everywhere you'll find these in phpBB code.

This version is compatible with the phpBB SEO mod rewrite 0.2.2 and above.

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

index.php


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

      $phpbb_seo->seo_redirect(PHPBB_URL . $phpbb_seo->page_url);


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

      $phpbb_seo->seo_redirect($phpbb_seo->seo_path['phpbb_url'] . $phpbb_seo->page_url);

#
#-----[ FIND ]------------------------------------------
#
      $phpbb_seo->seo_redirect(PHPBB_URL . $phpbb_seo->seo_static['index']);

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

      $phpbb_seo->seo_redirect($phpbb_seo->seo_path['phpbb_url'] . $phpbb_seo->seo_static['index']);

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

viewforum.php

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

   $phpbb_seo->seo_redirect( PHPBB_URL . $phpbb_seo->page_url );

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

   $phpbb_seo->seo_redirect( $phpbb_seo->seo_path['phpbb_url'] . $phpbb_seo->page_url );

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

   $phpbb_seo->seo_redirect( PHPBB_URL . $phpbb_seo->page_url );

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

   $phpbb_seo->seo_redirect( $phpbb_seo->seo_path['phpbb_url'] . $phpbb_seo->page_url );

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

viewtopic.php

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

   $phpbb_seo->seo_redirect( PHPBB_URL . $phpbb_seo->page_url . ( ( $post_id ) ? "#$post_id" : "" ) );

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

   $phpbb_seo->seo_redirect( $phpbb_seo->seo_path['phpbb_url'] . $phpbb_seo->page_url . ( ( $post_id ) ? "#$post_id" : "" ) );

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

includes/usercp_viewprofile.php

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

   $phpbb_seo->seo_redirect(PHPBB_URL . $phpbb_seo->page_url);

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

   $phpbb_seo->seo_redirect($phpbb_seo->seo_path['phpbb_url'] . $phpbb_seo->page_url);

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


maybe this is not clear

please accept this as positive, this board is the best seo phpbb in the www
tweety
PR0
PR0
 
Posts: 94
Joined: Wed Jan 24, 2007 1:29 am

Postby dcz » Sun Mar 04, 2007 8:23 pm

I did not understand what you mean here, do you have trouble updating ?

Are you sure this is the correct thread ? and why posting the update itself since we all know about it's content here, or at least can download the zip file when required ?

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 Advanced mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests