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  
 
   
advanced rewrite phpbb3 global announcements links

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
mikeysun



Joined: 12 Aug 2007
Posts: 9

advanced rewrite phpbb3 global announcements linksPosted: Sat Aug 18, 2007 11:41 am    Post subject: advanced rewrite phpbb3 global announcements links

Hi,

It appears that advanced rewrite for phpbb3 does not rewrite global announcements links.

these are still displayed in a format of viewtopic.php?f=1&t=15 instead of announcement/title-whatever.html

Is this a know bug?

Thanks,
Mike
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3691

advanced rewrite phpbb3 global announcements linksPosted: Sat Aug 18, 2007 11:46 am    Post subject: Re: advanced rewrite phpbb3 global announcements links

Well it should (and is) : http://phpbb3.phpbb-seo.net/announces/a-global-announce-t8.html

We're pretty close to releasing 0.4.0RC1, so you may prefer to wait few more days.

By the way, welcome Very Happy

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
mikeysun



Joined: 12 Aug 2007
Posts: 9

advanced rewrite phpbb3 global announcements linksPosted: Sat Aug 18, 2007 12:10 pm    Post subject: Re: advanced rewrite phpbb3 global announcements links

SeO wrote:
Well it should (and is) : http://phpbb3.phpbb-seo.net/announces/a-global-announce-t8.html

We're pretty close to releasing 0.4.0RC1, so you may prefer to wait few more days.


ahem, well... http://forum.nowhere.us/freestuff-f1/ check it yourself, the first on the top link points to viewtopic.php... what that might be?

there is one more thing ...<base href="http://forum.nowhere.us/"> does cause some link being redirected to the index.php (root /)...not sure if you are aware of this... e.g. http://forum.nowhere.us/#wrap

Quote:
By the way, welcome Very Happy

Cheers Wink


Last edited by mikeysun on Sun Oct 28, 2007 10:54 am; edited 1 time in total
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3691

advanced rewrite phpbb3 global announcements linksPosted: Sat Aug 18, 2007 12:37 pm    Post subject: Re: advanced rewrite phpbb3 global announcements links

The #wrap link is fixed in 0.4.0RC1 as well as few more small bugs.

This fix is :
Code:

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

styles/prosilver/template/viewtopic_body.html

#
#-----[ 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}">



The announcement bug could be a typo while installing, the zero duplicate is redirecting properly though.

We'll investigate a bit more. By then, you can check the install, just check all the part dealing with :

Code:
$phpbb_seo->seo_opt['topic_type']


In phpBB files.

Talking about your forum, you may consider that HTTPS is not really bot friendly, I've not looked deeply into it, but the best would probably be to only use it for logged in users, and to let public content available with HTTP.

The phpbb_seo_class.php part would be pretty easy to tweak for this, but requires some checks with phpBB.

As well, do not forget about the last touch Wink

cheers.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
mikeysun



Joined: 12 Aug 2007
Posts: 9

advanced rewrite phpbb3 global announcements linksPosted: Sat Aug 18, 2007 8:50 pm    Post subject: Re: advanced rewrite phpbb3 global announcements links

SeO, mate you know what...

There is one more thing... some non ASCII symbols (e.g.: accented characters) are not being changed to their ASCII replacements, here is how I would solve this.

It might be ugly and everything, but I am sysadmin not a programmer...so as long as it does the trick for me I am happy w/this Wink

Code:

#
#-----[ OPEN ]------------------------------------------
#
phpbb_seo/phpbb_seo_class.php

#
#-----[ FIND ]------------------------------------------
#
                $url = htmlentities($url, ENT_COMPAT, $this->encoding);

#
#-----[ AFTER, ADD]------------------------------------------
#
                $url = preg_replace( '`ą`i', 'a', $url );
                $url = preg_replace( '`ć`i', 'c', $url );
                $url = preg_replace( '`ę`i', 'e', $url );
                $url = preg_replace( '`ł`i', 'l', $url );
                $url = preg_replace( '`ń`i', 'n', $url );
                $url = preg_replace( '`ó`i', 'o', $url );
                $url = preg_replace( '`ś`i', 's', $url );
                $url = preg_replace( '`ż`i', 'z', $url );
                $url = preg_replace( '`ź`i', 'z', $url );


SeO wrote:

We'll investigate a bit more. By then, you can check the install, just check all the part dealing with :

Code:
$phpbb_seo->seo_opt['topic_type']




I applied all the mods again to a fresh source, then did a diff against the working version on my forum, and it doesn't look like I missed anything. So would be great if you could investigate this issue some more.

EDIT: the list above contains all the Polish non ASCII national characters.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15135

advanced rewrite phpbb3 global announcements linksPosted: Sun Aug 19, 2007 2:29 pm    Post subject: Re: advanced rewrite phpbb3 global announcements links

The thing is many characters only have a decimal html/xml entity, but it's still faster to use the single preg_replace call for the others.

And these extra filtering are not useful to everybody.

We of course care about it, but obviously need reports about such exceptions for language we do not use ourselves. We already started to implement a bit more universal and optimised way to do this type of thing for Slovak and Turkish.
Adding Polish is just great Very Happy

It's starting in this post : http://www.phpbb-seo.com/boards/advanced-seo-url/discussions-vt1229-15.html#9596

Doing it the way you do it is a bit heavier and is not fully universal, since depending on your OS char-sets, you may not be able to use these chars and paste them properly.
As well, filtering them after the htmlentities() call is not the best place, we'd rather do this when UTF-8 chars are left untouched.

So you confirm these are all the required chars for a proper Polish title injection in URLs ?

would be greatly useful to post a new thread and find out how to bets deal with these.

The global announce rewriting bug is strange. I cannot reproduce the bug.

I suggest we wait until the next version is released before we really start to investigate further, unless off course you find more clues about it.

++

_________________
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
mikeysun



Joined: 12 Aug 2007
Posts: 9

advanced rewrite phpbb3 global announcements linksPosted: Wed Aug 22, 2007 10:28 pm    Post subject: Re: advanced rewrite phpbb3 global announcements links

dcz wrote:

I suggest we wait until the next version is released before we really start to investigate further, unless off course you find more clues about it.


Hi,

I only upgraded and the issue seems to persist, any idea?

More over after installing the last ver I am unable to login to adm/ I got redirected to index.php after specifying my password.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15135

advanced rewrite phpbb3 global announcements linksPosted: Sun Aug 26, 2007 10:15 am    Post subject: Re: advanced rewrite phpbb3 global announcements links

If only I could reproduce these bugs.

The adm access thing seems to suggest you did not mod properly the redirect function in includes/functions.php, or that you did not entered the proper domain for phpBB in acp.

But about the global announcement one, I just cannot reproduce it.

http://phpbb3.phpbb-seo.net is up to date with 0.4.0RC1 and global announces are working great.

We'll be releasing a premodded version soon.

++

_________________
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
mikeysun



Joined: 12 Aug 2007
Posts: 9

advanced rewrite phpbb3 global announcements linksPosted: Mon Aug 27, 2007 8:04 pm    Post subject: Re: advanced rewrite phpbb3 global announcements links

Hi,

I managed to apply everything again on phpbbRC5 and it seems to be all ok... will try to investigate the problem I had with phpbbRC4 on weekend.

thanks
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15135

advanced rewrite phpbb3 global announcements linksPosted: Sun Sep 02, 2007 11:46 am    Post subject: Re: advanced rewrite phpbb3 global announcements links

Great Very Happy

_________________
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 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: