error after update

phpBB3 SEO Simple mod Rewrite support forum. This mods performs URL rewriting for phpBB3 in a static way.

Moderator: Moderators

error after update

Postby mhmdkhamis » Tue Sep 18, 2007 5:52 pm

welcome dcz

after i install new version of simple mod rewrite i have this error

in my index page

Code: Select all
Fatal error: Call to undefined function: seo_cond() in /home/mohamed/public_html/forum/index.php on line 27


:roll:
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Advertisement

Postby SeO » Tue Sep 18, 2007 6:11 pm

As always, you need to add the zero duplicate function in the phpbb_seo_class.php file again, since you overwrote the older one.


_________
WARNING :
_________

There is no step by step update of the phpbb_seo_class.php file, but the cached settings will remain untouched.
You will though have to mod this file again in case you added the zero duplicate as well as the delimiters static parts and etc ...
As well, you will have to empty the phpBB/cache/ folder before the mod will fully work,
just delete all files BUT the .htaccess.


Don't worry, it's only few code change.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby mhmdkhamis » Tue Sep 18, 2007 6:13 pm

SeO wrote:As always, you need to add the zero duplicate function in the phpbb_seo_class.php file again, since you overwrote the older one.


_________
WARNING :
_________

There is no step by step update of the phpbb_seo_class.php file, but the cached settings will remain untouched.
You will though have to mod this file again in case you added the zero duplicate as well as the delimiters static parts and etc ...
As well, you will have to empty the phpBB/cache/ folder before the mod will fully work,
just delete all files BUT the .htaccess.


Don't worry, it's only few code change.


thanks dcz it work fine now

but my forums links is working like

-http://www.paramegsoft.com/forum/forum1.html
it should be like

-http://www.paramegsoft.com/forum/forum1/

:roll:
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Postby SeO » Tue Sep 18, 2007 6:20 pm

It's only the default, you can change it :
=> The first setting to do is to select which static part to use in your URLs.

To do so, you can modify this in phpbb_seo/phpbb_seo_class.php :
=> the-team :
'leaders' => 'the-team'

=> announces :
'global_announce' => 'announces'


=> As well as forum ('forum' => 'forum'), topic ('topic' => 'topic'), post ('post' => 'post') and member ('user' = 'member')

=> And the suffixes, if you don not like .html :
Code: Select all
      $this->seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'index' => (!empty($this->seo_static['index']) ? '.html' : ''), 'global_announce' => '/', 'leaders' => '.html', 'gz_ext' => '');


You can thus replace :
Code: Select all
'forum' => '.html'


with :

Code: Select all
'forum' => '/'


And generate a new .htaccess.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby mhmdkhamis » Tue Sep 18, 2007 6:30 pm

thanks dcz i edited it from phpbb-seo_class.php file

but i stell have problem my old urls which

http://www.paramegsoft.com/forum/forum1.html


dont redirct now to

http://www.paramegsoft.com/forum/forum1/

i mean

i have two links to every forum :D
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Postby SeO » Tue Sep 18, 2007 6:37 pm

Replace :

Code: Select all
RewriteRule ^forum/forum([0-9]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]


With :

Code: Select all
RewriteRule ^forum/forum([0-9]+)(/|\.html)?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$1&start=$4 [QSA,L,NC]


In your .htaccess. This together with the zero duplicate will always be required in your case, since you played with more than one URL standard online.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby mhmdkhamis » Tue Sep 18, 2007 6:37 pm

after my edite the zero dupe not work

my forums links im my index page work like

-http://www.paramegsoft.com/forum/viewforum.php?f=1
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Postby SeO » Tue Sep 18, 2007 6:42 pm

Have you activated URL rewriting in ACP ?

I though it was working, was it at some point ?
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby mhmdkhamis » Tue Sep 18, 2007 6:44 pm

SeO wrote:Have you activated URL rewriting in ACP ?

I though it was working, was it at some point ?


yes i acivate it now

but i stell have no redirct from




-http://www.paramegsoft.com/forum/forum1.html
to
-http://www.paramegsoft.com/forum/forum1/

it was work in the smpl_phpbb3_mod_rewriteV0-2-0RC3INT01 :roll:
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Postby mhmdkhamis » Tue Sep 18, 2007 6:57 pm

i mean dcz i was have 301 redirct from my urls which i was use in PHPBB2

and when i used PHPBB3 my forums urls be like that

-http://www.paramegsoft.com/forum/forum1/

but it was making 301 redirct to my new urls after i used it

from

-http://www.paramegsoft.com/forum/forum1.html
to
-http://www.paramegsoft.com/forum/forum1/

this my .htacces codes

Code: Select all

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

#####################################################

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L]
# FORUM
RewriteRule ^forum/forum([0-9]+)(-([0-9]+))?/?$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM URLS
RewriteRule ^forum/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L]
# THE TEAM
RewriteRule ^forum/the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
# END PHPBB PAGES
#####################################################
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Postby mhmdkhamis » Tue Sep 18, 2007 7:01 pm

BIG OOPS dcz

i was not activate ZERO DUPE from my ACP

sorry dcz :oops:
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Postby dcz » Thu Sep 20, 2007 8:22 am

hey, no problem ;)

Happy you sorted this out.

++
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: 21325
Joined: Fri Apr 28, 2006 9:03 pm


Return to Simple SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests