Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
Forum kuralları
- Yeni bir başlık açarken lütfen konu başlığına "Acil yardım", "Acele yardım" tarzlarında içerisinde "yardım" kelimesi geçen cümleler yazmayınız. Bu tip başlıklara kesinlikle cevap verilmeyecektir. Lütfen konu başlığına içeriği en iyi özetleyen anlaşılabilir bir cümle yazınız.
- Ayrıca yeni başlıklarınızı kesinlikle ilgili forumlara açınız. Örneğin, phpBB3 kurulum ve çalıştırması hakkında bir sorununuz varsa "3.0.x Destek Forumu" forumuna başlık açınız; phpBB3 temasından kaynaklı bir sorunuz varsa "3.0.x Stil/Tema Geliştirme & Tartışma & Yardım" forumuna başlık açınız; phpBB3 mod/eklentileriyle ilgili sorununuz varsa "3.0.x MOD Destek" forumuna başlık açınız. Bu kurala uymayan kullanıcıların başlıkları silinebilir ve kullanıcı uyarı alabilir ya da süresiz uzaklaştırılabilir.
- Site kurallarımızı okumadan kesinlikle forumlarımıza herhangi bir katılım yapmayınız.
- Yeni bir başlık açarken lütfen konu başlığına "Acil yardım", "Acele yardım" tarzlarında içerisinde "yardım" kelimesi geçen cümleler yazmayınız. Bu tip başlıklara kesinlikle cevap verilmeyecektir. Lütfen konu başlığına içeriği en iyi özetleyen anlaşılabilir bir cümle yazınız.
- Ayrıca yeni başlıklarınızı kesinlikle ilgili forumlara açınız. Örneğin, phpBB3 kurulum ve çalıştırması hakkında bir sorununuz varsa "3.0.x Destek Forumu" forumuna başlık açınız; phpBB3 temasından kaynaklı bir sorunuz varsa "3.0.x Stil/Tema Geliştirme & Tartışma & Yardım" forumuna başlık açınız; phpBB3 mod/eklentileriyle ilgili sorununuz varsa "3.0.x MOD Destek" forumuna başlık açınız. Bu kurala uymayan kullanıcıların başlıkları silinebilir ve kullanıcı uyarı alabilir ya da süresiz uzaklaştırılabilir.
- Site kurallarımızı okumadan kesinlikle forumlarımıza herhangi bir katılım yapmayınız.
Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
kurulumunu anlatabilirmisiniz
teşekürler,
teşekürler,
- Özcan Akbulut
- Kayıtlı Kullanıcı
- Mesajlar: 2426
- Kayıt: 14.06.2008, 16:52
- Konum: Nürnberg
- İletişim:
Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
webmastertools da meta var dedigim gibi onu overall headere metalarin oldugu yere yazicaksiniz
daha sonra html olusturmalisiniz orda googlede anlatiliyor zaten nasil yapildigi bi .html dosyasi acin icini silin sonra ismini googleDOGRULAMAKOD.html olarak degistirin ftpnize attin sonra google girdiginde görür
googleDOGRULAMAKOD.html .html dosyasinin ismini webmasters toolsda ne yazyiorsa ona göre yazcaksiniz kaydet edin ftpnize attin...
daha sonra html olusturmalisiniz orda googlede anlatiliyor zaten nasil yapildigi bi .html dosyasi acin icini silin sonra ismini googleDOGRULAMAKOD.html olarak degistirin ftpnize attin sonra google girdiginde görür
googleDOGRULAMAKOD.html .html dosyasinin ismini webmasters toolsda ne yazyiorsa ona göre yazcaksiniz kaydet edin ftpnize attin...
Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
oldu
bende ne zamandır yapamıodum sorun şuymuş ya ben hackedmaster.com.tr.tc için doğrulama yapmaya çalışıodum meyer hostu aldıgım siteyi yapıcakmışım
hackedmaster.awardspace.com bunu denedim oldu ftp de " hackedmaster.awardspace.com" die gözüküo
aklıma geldi birdenbire. bunu denedim 404 hatası vermedi . yaptım yani doğruladım siteyi
yalnız ben seo 0.4.4 indirdim bunla ne alakası var anlamadım
biraz açıklarmısın
bu googlemastere siteni kayıt ettirmek olmuoduydu ?

hackedmaster.awardspace.com bunu denedim oldu ftp de " hackedmaster.awardspace.com" die gözüküo
aklıma geldi birdenbire. bunu denedim 404 hatası vermedi . yaptım yani doğruladım siteyi
yalnız ben seo 0.4.4 indirdim bunla ne alakası var anlamadım

bu googlemastere siteni kayıt ettirmek olmuoduydu ?
- Özcan Akbulut
- Kayıtlı Kullanıcı
- Mesajlar: 2426
- Kayıt: 14.06.2008, 16:52
- Konum: Nürnberg
- İletişim:
Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
simdi konu basliginizi degistirmisiniz ilk mesajinizi felan... bende webamsterden yazdim baya bi karisiklik oldu 
ilk konunuz google webmastere nasil kayit ediliyor ? bunu hallettiniz
ikinci sorunuz seo kurulum...
indirdiginiz dosyanin icinte install.txt dosyasi var onu acin ve okuyun hersey yaziyor ii okumalar

ilk konunuz google webmastere nasil kayit ediliyor ? bunu hallettiniz
ikinci sorunuz seo kurulum...
indirdiginiz dosyanin icinte install.txt dosyasi var onu acin ve okuyun hersey yaziyor ii okumalar

Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
öyle bi dosya yok
ben başlıkta yazdıgım dosyayı indirdim
http://www.phpbb-seo.com/ sitesinden ve öle bi dosya yok az daha yardım

http://www.phpbb-seo.com/ sitesinden ve öle bi dosya yok az daha yardım

- Özcan Akbulut
- Kayıtlı Kullanıcı
- Mesajlar: 2426
- Kayıt: 14.06.2008, 16:52
- Konum: Nürnberg
- İletişim:
Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
bende bu seoyu kullandigim icin hangi dosyalar var biliyorum 
her mod un icinde bi install dosyasi vardir dosyayi tekrar indirin orda install dosyasi var

her mod un icinde bi install dosyasi vardir dosyayi tekrar indirin orda install dosyasi var
Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
files die bi dosya var oda tek satır anlatıo bişeler
onumu dion bide ben yaptım kendimce oradaki dosyalarla kendi php dosyalarımı deiştim önbellek temizledim bişey olmadı foruma yönetim panelinde değişiklik oldu bitek bu normalmi yoksa yalnışmı yapmışım

- Özcan Akbulut
- Kayıtlı Kullanıcı
- Mesajlar: 2426
- Kayıt: 14.06.2008, 16:52
- Konum: Nürnberg
- İletişim:
Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
bende v 0.4.4 indirdim icinden root, contrib, translations, install felan cikti ama galiba sen premod indirdin sadece dosyalari atacaksin okadar yani bu premod oluyor sonunda install yapmalisiniz
www.siteadi.com/phpbb_seo/phpbb_seo_install.php internete calistirin sonra kurulum sayfasi gelir orda install yazar oraya tiklayin sonra bittimi önbellek temizleyin YKP de PHPBB SEO diye bi bölüm olur...
bak buda install dosyasinin icinden ama siz premod kurdunuz icin belki icinde olmayabilir....
www.siteadi.com/phpbb_seo/phpbb_seo_install.php internete calistirin sonra kurulum sayfasi gelir orda install yazar oraya tiklayin sonra bittimi önbellek temizleyin YKP de PHPBB SEO diye bi bölüm olur...
bak buda install dosyasinin icinden ama siz premod kurdunuz icin belki icinde olmayabilir....
Kod: Tümünü seç
##############################################################
## MOD Title: Simple phpBB3 SEO mod Rewrite
## MOD Author: dcz / www.phpbb-seo.com
## MOD Description: This mod will URL rewrite phpBB URLs in a static way.
## Please read the author notes BEFORE using this mod.
## Check http://www.phpbb-seo.com/boards/simple-seo-url/simple-phpbb3-seo-url-vt1566.html
## for the latest version or to get help with this MOD.
##
## MOD Version: 0.4.4
##
## Installation Level: ADVANCED
## Installation Time: 20 Minutes
## Files To Edit: 19
## .htaccess,
## common.php,
## includes/db/dbal.php,
## includes/functions.php,
## includes/functions_content.php,
## includes/functions_display.php,
## index.php,
## language/en/acp/common.php,
## memberlist.php,
## search.php,
## styles/prosilver/template/forum_fn.js,
## styles/prosilver/template/overall_header.html,
## styles/prosilver/template/simple_header.html,
## styles/prosilver/template/viewtopic_body.html,
## styles/subsilver2/template/overall_header.html,
## styles/subsilver2/template/simple_header.html,
## styles/subsilver2/template/viewtopic_body.html,
## viewforum.php,
## viewtopic.php
##
## Included Files: (8)
## includes/acp/acp_phpbb_seo.php
## includes/acp/info/acp_phpbb_seo.php
## images/phpbb-seo.png
## language/en/acp/phpbb_seo.php
## phpbb_seo/.htaccess
## phpbb_seo/docs/COPYING
## phpbb_seo/phpbb_seo_class.php
## phpbb_seo/phpbb_seo_install.php
##
## License: http://www.opensource.org/licenses/rpl.php Reciprocal Public License
##############################################################
## 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 these are duplicates any way.
##
## You can insall the No Duplicate mod ( http://www.phpbb-seo.com/boards/advanced-seo-url/advanced-phpbb3-seo-url-vt1219.html )
## if you want to replace post URL with their corresponding topic URL.
##
## This mod requires running Apache Server with mod_Rewrite module loaded, or IIS server running isapi_rewrite.
##
## This mod no longer requires any other SID removal method, phpBB is doing it by itself as long as you set it up properly.
##
## With this mod, phpBB URL will transformed this way :
##
## viewforum.php?f=xx => forumxx.html (by default),
## forumxx/ (optional)
##
## viewforum.php?f=xx&start=yy => forumxx-yy.html (by default),
## forumxx/pageyy.html (optional)
##
## viewtopic.php?f=xx&t=yy => topicyy.html (by default),
## forumxx/topicyy.html (optional)
##
## viewtopic.php?f=xx&t=yy&start=zz => topicyy-zz.html (by default),
## forumxx/topicyy-zz.html (optional)
##
## viewtopic.php?p=xx => postxx.html (by default)
##
## memberlist.php?mode=viewprofile&u=xx => memberxx.html (by default),
## nickname-uxx.html (optional),
## member/nickname (optional)
##
## memberlist.php?mode=group&g=xx => groupxx.html (by default),
## groupe-name-gxx.html (optional)
##
## memberlist.php?mode=group&g=xx&start=yy => groupxx-yy.html (by default),
## groupe-name-gxx-yy.html (optional),
## groupxx/pageyy.html (optional),
## groupe-name-gxx/pageyy.html (optional)
##
## memberlist.php?mode=leaders => the-team.html (by default)
##
## search.php?author_id=xx&sr=post|topics => memberxx-posts|topics.html (optional),
## search_id=egosearch memberxx/posts|topics/ (optional),
## search.php?author=nickname&sr=post|topics nickname-uxx-posts|topics.html (optional),
## if possible nickname-uxx/posts|topics/ (optional),
## member/nickname/posts|topics/ (optional)
##
## search.php?author_id=xx&sr=post|topics&start=yy => memberxx-posts|topics-yy.html (optional),
## search.php?author=nickname&sr=post|topics&start=yy memberxx/posts|topics/pageyy.html (optional),
## if possible nickname-uxx-posts|topics-yy.html (optional),
## nickname-uxx/posts|topics/pageyy.html (optional),
## member/nickname/posts|topics/pageyy.html (optional)
##
## search_id=active_topics => active-topics.html
##
## search_id=active_topics&start=xx => active-topics-xx.html
##
## search_id=unanswered&sr=topics => unanswered.html,
##
## search_id=unanswered&start=xx&sr=topics => unanswered-xx.html,
##
## search_id=newposts&sr=topics => newposts.html,
##
## search_id=newposts&start=xx&sr=topics => newposts-xx.html,
##
## If the virtual folder is turned on, global announces will be treated in a separate virtual folder :
##
## viewtopic.php?f=xx&t=yy => announces/announces-title-tyy.html
##
## viewtopic.php?f=xx&t=yy&start=zz => announces/announces-title-tyy-zz.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 and URLs are transformed once, even if the url is called and outputted many times.
##
## 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-vt66.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.
##
##
## Char-sets :
## ___________
##
## phpBB3 uses UTF-8 as final encoding, and this should be enough to handle all cases.
## UTF-8 is fully supported by this mod.
## The mod rewrite will only inject the ASCII Chars ( after removing all accents ) available in the titles.
##
## For example : "[non ASCII chars] Software niño" will be formated this way prior to injection : "software-nino".
## It is still possible that some characters only having a decimal HTML/XML entity won't be handled properly at first.
## The method to filter these is simple, please ask for help in our forums.
## Please note that this would only concern the modules using title injection, not the forum's URLs in simple mod.
##
## 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 Advanced mod rewrite forum ( http://www.phpbb-seo.com/boards/advanced-seo-url-vf54/ ).
##
#### UPDATE
## 0.4.2 => 0.4.4 Update : Required changes to be found in contrib/0.4.2_0.4.4_Simple_Update.txt
## Previous updates are to be found in the contrib/old/ folder.
####
##
## 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 and developments.
##
##############################################################
## MOD History:
##
## 2008-07-14 - 0.4.4
## - Fixed the update bug caused by the empty phpbb_seo class,
## - Fixed pagination rewriterules for forum url without id and with a suffixe different that "/",
## - Fixed install script for no MYSQL DB,
## - Fixed search for word startting / ending with a,m or p,
## - Fixed various virtual root wrong links,
## - Various optimization in phpbb_seo_class.php
## 2008-04-14 - 0.4.2
## - Updated : User messages pages URLs structure,
## - Added : virtual folder option for user messages pages,
## - Added : copyright link formatting options,
## - Added : support for active_topics link,
## - Added : support for unanswered link,
## - Added : support for newposts link,
## - Added : support for egosearch link,
## - Added : support for most active topic link on profile view,
## - Fixed : group sort option links,
## - Fixed : unread link it topic view,
## - Fixed : Session tracking : Sessions tracking is now fully fixed for viewforum,
## but will only work with virtual folder trick in viewtopic,
## - Various optimizations in phpbb_seo_class.php and acp_phpbb_seo.php.
## 2007-12-18 - 0.4.0
## - Added : Group URL rewriting, with optional group name injection,
## - Added : profile URL can use nickname injection (optional),
## - Added : profile URL can use nickname injection without ID (optional),
## - Added : User messages URL can use nickname injection (optional),
## - Added : User messages URL can use nickname injection without ID (optional),
## - Added : 404 header is now returned for forums that do not exist (both rewritten and vanilla URLs),
## - Added : subsilver2 code changes,
## - Fixed : Usage of a slash as a suffix is now fully supported for all rewritten URLs,
## - Fixed : Base href handling (bug with virtual root option),
## - Fixed : 100% XHTML valid output,
## - Updated to comply with phpBB3.0.0.
## 2007-10-15 - 0.4.0RC2
## - Fixed JS jump to page script,
## - Updated to comply with phpBB3.0.RC7.
## 2007-09-08 - 0.4.0RC1
## - First public Version, based on the 0.4.0RC3 Advanced mod rewrite core.
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#
________________________________________
>>>> INSTALLATION INSTRUCTION <<<<<
________________________________________
You will find the premodded phpBB 3.0.2 files in contrib/phpBB_3.0.2_modified_files/root/,
you can safely overwrite the phpBB 3.0.2 files with these and skip the file editing part of this install
if you did not modify these before you install this mod.
Additional language files modified by this mod are to be found in
contrib/phpBB_3.0.2_modified_files/translations/.
A phpBB 3.0.2 => simple mod rewrite 0.4.4 diff file is as well available in the
contrib/ directory of this release.
___________
IMPORTANT :
________________________________________
Before you start, read this with caution.
=> For a smooth install :
1) Backup all your files;
2) Apply the mod code changes on copies of your files;
3) Upload all files;
4) CHMOD the phpbb_seo/cache/ folder to 0777;
5) Empty the phpBB/cache/ folder : just delete all files EXCEPTS the .htaccess.
6) Go to www.yoursite.com/phpBB/phpbb_seo/phpbb_seo_install.php and follow the install instruction
7) Go to phpBB ACP : It's now time to play with settings described bellow;
8) Generate your personalized .htaccess and upload or move it following the instructions;
9) Test a rewritten URL, such as www.yoursite.com/phpBB/post1.html, if you end up with a 404 (not a phpBB message), go back to step 8;
10) Activate URL rewriting in phpBB ACP and allow yourself some auto-congratulation :D
________________________________________
Once you will have installed the mod, you will have to refresh your theme's cache as well as phpBB's cache (ACP => STYLE, Themes => Refresh).
__________
Settings :
__________
The settings must be done before step 7 above for the generated .htaccess to be up to date.
Later modification will most likey require a new .htaccess as well as personalized redirections.
=> 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' => ''
In this line of code :
$this->seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => '', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'pagination' => 'page', 'gz_ext' => '.gz' );
And replace with :
'index' => 'forum'
or whatever you may prefer.
This is mostly useful if you're running a portal in the folder where phpBB is installed.
=> The first setting to do is to select which static part to use in your URLs.
To do so, you can modify this line in phpbb_seo/phpbb_seo_class.php :
$this->seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => '', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'pagination' => 'page', 'gz_ext' => '.gz' );
=> the-team :
'leaders' => 'the-team'
=> announces :
'global_announce' => 'announces'
=> Active topics :
'atopic' => 'active-topics'
=> Unaswered :
'utopic' => 'unanswered'
=> Newposts :
'npost' => 'newposts'
=> As well as forum ('forum' => 'forum'), topic ('topic' => 'topic'), post ('post' => 'post'),
member ('user' => 'member'), groups ('group' => 'group') and virtual folder pagination ('pagination' => 'page')
=> And the suffixes, if you do not like .html :
$this->seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'group' => '.html', 'index' => '', 'global_announce' => '/', 'leaders' => '.html', 'atopic' => '.html', 'utopic' => '.html', 'npost' => '.html', 'pagination' => '.html', 'gz_ext' => '');
Please note that suffixes may not be ".php" or empty, if you set a suffix to "/",
it will automatically activate the pagexx.html pagination.
Once set, these settings will be taken into account while generating the .htaccess.
=> Other options are configurable on the setting page (step 7 of the above list).
Go to the "phpBB SEO Class Settings" page, and take your time to set up the class as you whish.
___________
NOTE: Cache
___________
The cache files are in the phpbb_seo_/cache/ folder.
phpbb_cache.php is the cached file containing both your settings and forum URLs.
The mod always creates a backups of the current cached file :
=> phpbb_cache.php.current is a copy of the phpbb_cache.php file.
It will automatically be used in case phpbb_cache.php is deleted or corrupted (which should not occur but).
=> phpbb_cache.php.old is a copy of the previous settings you had set, before the last update you performed.
You should backup these file when you update them, they are as crucial as you data base for your forum
since they are required for your forum URL to work properly.
So relax, this is just a basic precaution, you should not have trouble with these,
but never is better, hence the backup.
_________________
NOTE: .htaccess :
_________________
On the phpBB SEO ACP module, go to the ".htaccess" page.
A personalised .htaccess will be generated. It's the first one to consider trying.
If the default suggestion does not work, you will be to try more options, and generate several alternative.
You'll find an empty .htaccess file in this mod's archive contrib/ folder, you can use it to paste the .htaccess content generated on the htaccess page or save it directly on the server.
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 issue.
__________________
NOTE: robots.txt :
__________________
You will find a sample robots.txt file in the contrib/ folder of this package.
The robots.txt file must be uploaded in your domain's root folder (can be different from the phpBB one).
You must obviously replace phpbb/ with your real phpBB installation folder (or with nothing if it's installed in the domain's root).
IMPORTANT :
If your forum previously was indexed with the natural urls (viewtopic.php etc...), then you must make sure
that the robots.txt advised for our mod rewrite is not installed, if so delete it from the server.
This because we want to redirect old urls before we disallow them, it's crucial!
In such case, a month or two after you activated the zero duplicate, you can safely implement the robots.txt.
__________________________________________________
NOTE: profile and user messages pages ID removing:
__________________________________________________
phpBB/member/nicknames VS phpBB/nicknames-uxx.html
If you use profile and / or user messages pages ID removing, you should know that a custom urlencode
will be used to circumvent a bug with mod_rewrite.
This imply that some chars like "&", "/", "#" and spaces will always be double encoded.
For example a user named rock&roll will require rock%2526roll (double urlencoded &) to be usable.
( http://www.php.net/urlencode => http://issues.apache.org/bugzilla/show_bug.cgi?id=34602 )
There are other issues with custom characters, like accents, which will add some urlencoded chars in urls.
It's not an SEO issue, since bots knows about urlencoding, but it can end up building pretty long url with multi byte characters.
This does not concern the a-zA-Z0-9 chars, underscore ("_"), hyphen ("-") and dot (".") included.
In phpbb_seo/phpbb_seo_class.php, you will no longer see different methods.
This of course means that the ID removing on profile and user messages pages is more comfy and universally efficient
to use with alphanumeric chars user names (without accents).
If you only allow alphanumeric chars for your user nicknames, then you can make the injection process faster by adding :
return $url;
right after :
function seo_url_encode( $url ) {
Remember that keeping the ID here will always work and that you still can simulate a folder structure for user messages pages.
#
#-----[ COPY ]--------------------------------------------------
#
copy root/*.* to root/*.*
#
#-----[ OPEN ]------------------------------------------
#
common.php
#
#-----[ FIND ]------------------------------------------
#
// Grab global variables, re-cache if necessary
$config = $cache->obtain_config();
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (empty($phpbb_seo) ) {
require_once($phpbb_root_path . 'phpbb_seo/phpbb_seo_class.'.$phpEx);
$phpbb_seo = new phpbb_seo();
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
includes/db/dbal.php
#
#-----[ FIND ]------------------------------------------
#
function sql_report($mode, $query = '')
{
global $cache, $starttime, $phpbb_root_path, $user;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
<link href="' . $phpbb_root_path . 'adm/style/admin.css" rel="stylesheet" type="text/css" media="screen" />
#
#-----[ REPLACE WITH ]------------------------------------------
#
<link href="' . $phpbb_seo->seo_path['phpbb_url'] . 'adm/style/admin.css" rel="stylesheet" type="text/css" media="screen" />
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = false, $tpl_prefix = '')
{
global $template, $user;
#
#-----[ AFTER, ADD]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo, $phpEx;
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
$tpl_prefix . 'BASE_URL' => $base_url,
'A_' . $tpl_prefix . 'BASE_URL' => addslashes($base_url),
$tpl_prefix . 'PER_PAGE' => $per_page,
$tpl_prefix . 'PREVIOUS_PAGE' => ($on_page == 1) ? '' : $base_url . "{$url_delim}start=" . (($on_page - 2) * $per_page),
$tpl_prefix . 'NEXT_PAGE' => ($on_page == $total_pages) ? '' : $base_url . "{$url_delim}start=" . ($on_page * $per_page),
$tpl_prefix . 'TOTAL_PAGES' => $total_pages,
));
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$prev = ($on_page == 1) ? '' : $base_url . "{$url_delim}start=" . (($on_page - 2) * $per_page);
$next = ($on_page == $total_pages) ? '' : $base_url . "{$url_delim}start=" . ($on_page * $per_page);
if (!empty($phpbb_seo->seo_opt['url_rewrite'])) {
static $pagin_find = array();
static $pagin_replace = array();
static $prev_find = array();
if (empty($pagin_replace)) {
$pagin_find = array('`(\.(?!' . $phpEx . ')[a-z0-9]+)([\w\#$%&~\-;:=,?@+]*)(&|\?)start=([0-9]+)`i', '`/([\w\#$%&~\-;:=,?@+]*)(&|\?)start=([0-9]+)`i' );
$pagin_replace = array( $phpbb_seo->seo_delim['start'] . '\\4\\1\\2', '/' . $phpbb_seo->seo_static['pagination'] . '\\3' . $phpbb_seo->seo_ext['pagination'] . '\\1' );
$prev_find = array($phpbb_seo->seo_delim['start'] . '0', $phpbb_seo->seo_static['pagination'] . '0' . $phpbb_seo->seo_ext['pagination']);
}
$page_string = str_replace($url_delim . 'start=0', '', $page_string);
$page_string = preg_replace($pagin_find, $pagin_replace, $page_string);
$prev = preg_replace($pagin_find, $pagin_replace, $prev);
$prev = str_replace($prev_find, '', $prev);
$next = preg_replace( $pagin_find, $pagin_replace, $next);
}
$template->assign_vars(array(
$tpl_prefix . 'BASE_URL' => $base_url,
'A_' . $tpl_prefix . 'BASE_URL' => addslashes($base_url),
$tpl_prefix . 'PER_PAGE' => $per_page,
$tpl_prefix . 'PREVIOUS_PAGE' => $prev,
$tpl_prefix . 'NEXT_PAGE' => $next,
$tpl_prefix . 'TOTAL_PAGES' => $total_pages)
);
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
function append_sid($url, $params = false, $is_amp = true, $session_id = false)
{
global $_SID, $_EXTRA_URL, $phpbb_hook;
#
#-----[ AFTER, ADD]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
// We bypass the hook function here, the same effect as a standalone hook, which we want, but faster ;-)
global $phpbb_seo;
if (!empty($phpbb_seo->seo_opt['url_rewrite'])) {
return $phpbb_seo->url_rewrite($url, $params, $is_amp, $session_id);
} else
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
return $phpbb_root_path . str_replace('&', '&', $redirect);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
return strpos($redirect, 'http://') !== false ? trim($redirect, '?') : reapply_sid(str_replace('&', '&', $redirect));
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
function page_header($page_title = '', $display_online_list = true)
{
global $db, $config, $template, $SID, $_SID, $user, $auth, $phpEx, $phpbb_root_path;
if (defined('HEADER_INC'))
{
return;
}
#
#-----[ AFTER, ADD]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
$template->assign_vars( array( 'PHPBB_FULL_URL' => $phpbb_seo->seo_path['phpbb_url'],
'SEO_BASE_HREF' => $phpbb_seo->seo_opt['seo_base_href'],
'SEO_START_DELIM' => $phpbb_seo->seo_delim['start'],
'SEO_SATIC_PAGE' => $phpbb_seo->seo_static['pagination'],
'SEO_EXT_PAGE' => $phpbb_seo->seo_ext['pagination'])
);
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
/**
* Generate page footer
*/
function page_footer($run_cron = true)
{
global $db, $config, $template, $user, $auth, $cache, $starttime, $phpbb_root_path, $phpEx;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
if (!empty($phpbb_seo)) {
$phpbb_seo->seo_end();
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$debug_output .= ' | <a href="' . build_url() . '&explain=1">Explain</a>';
#
#-----[REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$url_prefix = build_url();
$debug_output .= ' | <a href="' . $url_prefix . ((strpos($url_prefix, '?') === false) ? '?' : '&') . 'explain=1">Explain</a>';
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_content.php
#
#-----[ FIND ]------------------------------------------
#
function get_username_string($mode, $user_id, $username, $username_colour = '', $guest_username = false, $custom_profile_url = false)
{
global $phpbb_root_path, $phpEx, $user, $auth;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . (int) $user_id);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_user_url( strip_tags($username), $user_id );
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_display.php
#
#-----[ FIND ]------------------------------------------
#
/**
* Generate topic pagination
*/
function topic_generate_pagination($replies, $url)
{
global $config, $user;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo, $phpEx;
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
}
else
{
$pagination = '';
}
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (!empty($phpbb_seo->seo_opt['url_rewrite'])) {
static $pagin_find = array();
static $pagin_replace = array();
if (empty($pagin_find)) {
$pagin_find = array( '`(\.(?!' . $phpEx . ')[a-z0-9]+)([\w\#$%&~\-;:=,?@+]*)&start=([0-9]+)`i', '`/([\w\#$%&~\-;:=,?@+]*)&start=([0-9]+)`i' );
$pagin_replace = array( $phpbb_seo->seo_delim['start'] . '\\3\\1\\2', '/' . $phpbb_seo->seo_static['pagination'] . '\\2' . $phpbb_seo->seo_ext['pagination'] .'\\1' );
}
$pagination = str_replace( '&start=0', '', $pagination );
$pagination = preg_replace( $pagin_find, $pagin_replace, $pagination );
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
function get_moderators(&$forum_moderators, $forum_id = false)
{
global $config, $template, $db, $phpbb_root_path, $phpEx;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$forum_moderators[$row['forum_id']][] = '<a' . (($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . ';"' : '') . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( $phpbb_seo->seo_opt['profile_inj'] && empty($phpbb_seo->seo_url['group'][$row['group_id']]) ) {
$phpbb_seo->seo_url['group'][$row['group_id']] = $phpbb_seo->format_url($row['group_name'], $phpbb_seo->seo_static['group']);
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
$legend .= (($legend != '') ? ', ' : '') . '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( $phpbb_seo->seo_opt['profile_inj'] && empty($phpbb_seo->seo_url['group'][$row['group_id']]) ) {
$phpbb_seo->seo_url['group'][$row['group_id']] = $phpbb_seo->format_url($row['group_name'], $phpbb_seo->seo_static['group']);
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
language/en/acp/common.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$lang = array_merge($lang, array(
'ACP_CAT_PHPBB_SEO' => 'phpBB SEO',
'ACP_MOD_REWRITE' => 'URL Rewriting settings',
'ACP_PHPBB_SEO_CLASS' => 'phpBB SEO Class settings',
'ACP_FORUM_URL' => 'Forum URL Management',
'ACP_HTACCESS' => '.htaccess',
'ACP_PREMOD_UPDATE' => '<h1>Release announcement</h1>
<p>This update does only concern the premod, not the phpBB core.</p>
<p>A new version of the phpBB SEO premod is thus available : %1$s<br/>Make sure you visit<a href="%2$s" title="The release thread"><b>the release thread</b></a> and update your installation.</p>',
'SEO_LOG_INSTALL_PHPBB_SEO' => '<strong>phpBB SEO mod rewrite installed</strong>',
'SEO_LOG_INSTALL_PHPBB_SEO_FAIL' => '<strong>phpBB SEO mod rewrite install attempt failed</strong>',
'SEO_LOG_UNINSTALL_PHPBB_SEO' => '<strong>phpBB SEO mod rewrite uninstalled</strong>',
'SEO_LOG_UNINSTALL_PHPBB_SEO_FAIL' => '<strong>phpBB SEO mod rewrite uninstall attempts failed</strong>',
'SEO_LOG_CONFIG_SETTINGS' => '<strong>Altered phpBB SEO Class settings</strong>',
'SEO_LOG_CONFIG_FORUM_URL' => '<strong>Altered Forum URLs</strong>',
'SEO_LOG_CONFIG_HTACCESS' => '<strong>Generated new .htaccess</strong>',
));
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup(array('memberlist', 'groups'));
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (!empty($_REQUEST['un'])) {
$_REQUEST['un'] = rawurldecode($_REQUEST['un']);
if (!$phpbb_seo->is_utf8($_REQUEST['un']) && function_exists('utf8_encode')) {
$_REQUEST['un'] = utf8_normalize_nfc(utf8_encode($_REQUEST['un']));
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$user_id = (int) $member['user_id'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_user_url( $member['username'], $user_id );
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
// Generate page
$template->assign_vars(array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_sep = strpos($sort_url, '?') === false ? '?' : '&';
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_SORT_USERNAME' => $sort_url . '&sk=a&sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_FROM' => $sort_url . '&sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_JOINED' => $sort_url . '&sk=c&sd=' . (($sort_key == 'c' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_POSTS' => $sort_url . '&sk=d&sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_EMAIL' => $sort_url . '&sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_WEBSITE' => $sort_url . '&sk=f&sd=' . (($sort_key == 'f' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_LOCATION' => $sort_url . '&sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_ICQ' => $sort_url . '&sk=g&sd=' . (($sort_key == 'g' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_AIM' => $sort_url . '&sk=h&sd=' . (($sort_key == 'h' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_MSN' => $sort_url . '&sk=i&sd=' . (($sort_key == 'i' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_YIM' => $sort_url . '&sk=j&sd=' . (($sort_key == 'j' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . '&sk=l&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a') : '',
'U_SORT_RANK' => $sort_url . '&sk=m&sd=' . (($sort_key == 'm' && $sort_dir == 'a') ? 'd' : 'a'),
'U_LIST_CHAR' => $sort_url . '&sk=a&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a'),
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_SORT_USERNAME' => $sort_url . $seo_sep . 'sk=a&sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_FROM' => $sort_url . $seo_sep . 'sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_JOINED' => $sort_url . $seo_sep . 'sk=c&sd=' . (($sort_key == 'c' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_POSTS' => $sort_url . $seo_sep . 'sk=d&sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_EMAIL' => $sort_url . $seo_sep . 'sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_WEBSITE' => $sort_url . $seo_sep . 'sk=f&sd=' . (($sort_key == 'f' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_LOCATION' => $sort_url . $seo_sep . 'sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_ICQ' => $sort_url . $seo_sep . 'sk=g&sd=' . (($sort_key == 'g' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_AIM' => $sort_url . $seo_sep . 'sk=h&sd=' . (($sort_key == 'h' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_MSN' => $sort_url . $seo_sep . 'sk=i&sd=' . (($sort_key == 'i' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_YIM' => $sort_url . $seo_sep . 'sk=j&sd=' . (($sort_key == 'j' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . $seo_sep . 'sk=l&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a') : '',
'U_SORT_RANK' => $sort_url . $seo_sep . 'sk=m&sd=' . (($sort_key == 'm' && $sort_dir == 'a') ? 'd' : 'a'),
'U_LIST_CHAR' => $sort_url . $seo_sep . 'sk=a&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a'),
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
$user->setup('search');
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$can_encode = function_exists('utf8_encode') ? true : false;
$clean_request = array('keywords', 'author', 'add_keywords');
foreach ($clean_request as $request) {
if (!empty($_REQUEST[$request])) {
$_REQUEST[$request] = rawurldecode($_REQUEST[$request]);
if (!$phpbb_seo->is_utf8($_REQUEST[$request]) && $can_encode) {
$_REQUEST[$request] = utf8_normalize_nfc(utf8_encode($_REQUEST[$request]));
}
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$u_search = append_sid("{$phpbb_root_path}search.$phpEx", $u_sort_param . $u_show_results);
$u_search .= ($search_id) ? '&search_id=' . $search_id : '';
$u_search .= ($u_hilit) ? '&keywords=' . urlencode(htmlspecialchars_decode($search->search_query)) : '';
$u_search .= ($topic_id) ? '&t=' . $topic_id : '';
$u_search .= ($author) ? '&author=' . urlencode(htmlspecialchars_decode($author)) : '';
$u_search .= ($author_id) ? '&author_id=' . $author_id : '';
$u_search .= ($u_search_forum) ? '&fid%5B%5D=' . $u_search_forum : '';
$u_search .= (!$search_child) ? '&sc=0' : '';
$u_search .= ($search_fields != 'all') ? '&sf=' . $search_fields : '';
$u_search .= ($return_chars != 300) ? '&ch=' . $return_chars : '';
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//$u_search = append_sid("{$phpbb_root_path}search.$phpEx", $u_sort_param . $u_show_results);
$u_search = $u_sort_param . $u_show_results;
$u_search .= ($search_id) ? '&search_id=' . $search_id : '';
$u_search .= ($u_hilit) ? '&keywords=' . urlencode(htmlspecialchars_decode($search->search_query)) : '';
$u_search .= ($topic_id) ? '&t=' . $topic_id : '';
$u_search .= ($author) ? '&author=' . urlencode(htmlspecialchars_decode($author)) : '';
$u_search .= ($author_id) ? '&author_id=' . $author_id : '';
$u_search .= ($u_search_forum) ? '&fid%5B%5D=' . $u_search_forum : '';
$u_search .= (!$search_child) ? '&sc=0' : '';
$u_search .= ($search_fields != 'all') ? '&sf=' . $search_fields : '';
$u_search .= ($return_chars != 300) ? '&ch=' . $return_chars : '';
$u_search = preg_replace('`(^&|&$)`i', '', $u_search);
if ( $phpbb_seo->seo_opt['rewrite_usermsg'] && (!empty($author) || !empty($author_id)) ) {
$author_name = '';
if (!empty($author_id)) {
$sql = $sql = 'SELECT username
FROM ' . USERS_TABLE . "
WHERE user_id = $author_id
AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
$result = $db->sql_query($sql);
if ($row = $db->sql_fetchrow($result)) {
$author_name = $row['username'];
$phpbb_seo->set_user_url( $author_name, $author_id );
}
}
if (!empty($author) && (strpos($author, '*') === false) ) {
$sql = $sql = 'SELECT user_id
FROM ' . USERS_TABLE . "
WHERE username_clean = '" . $db->sql_escape(utf8_clean_string($author)) . "'
AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
$result = $db->sql_query($sql);
if ($row = $db->sql_fetchrow($result)) {
$phpbb_seo->set_user_url( $author, $row['user_id'] );
}
}
$author = empty($author) ? $author_name : $author;
}
$u_search = append_sid( "{$phpbb_root_path}search.$phpEx" . (!empty($u_search) ? '?' . $u_search : '') );
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$u_forum_id&t=$result_topic_id" . (($u_hilit) ? "&hilit=$u_hilit" : ''));
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($row['topic_type'] == POST_GLOBAL) {
$phpbb_seo->seo_opt['topic_type'][$result_topic_id] = POST_GLOBAL;
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_LAST_POST' => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_LAST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$u_forum_id&t=$result_topic_id&hilit=$u_hilit" . '&p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_NEWEST_POST' => $view_topic_url . '&view=unread#unread',
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_NEWEST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$u_forum_id&t=$result_topic_id&hilit=$u_hilit" . '&view=unread') . '#unread',
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/forum_fn.js
#
#-----[ FIND ]------------------------------------------
#
function jumpto()
{
var page = prompt(jump_page, on_page);
if (page !== null && !isNaN(page) && page > 0)
{
document.location.href = base_url.replace(/&/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 > 0) {
var seo_page = (page - 1) * per_page;
if ( base_url.indexOf('?') >= 0 ) {
document.location.href = base_url.replace(/&/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 ]------------------------------------------
#
styles/prosilver/template/overall_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
#
#-----[ AFTER, ADD]------------------------------------------
#
{SEO_BASE_HREF}
#
#-----[ FIND ]------------------------------------------
#
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 ]------------------------------------------
#
styles/prosilver/template/simple_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
#
#-----[ AFTER, ADD]------------------------------------------
#
{SEO_BASE_HREF}
#
#-----[ OPEN ]------------------------------------------
#
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 ]------------------------------------------
#
styles/subsilver2/template/overall_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
#
#-----[ AFTER, ADD ]------------------------------------------
#
{SEO_BASE_HREF}
#
#-----[ FIND ]------------------------------------------
#
function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var perpage = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
if (page !== null && !isNaN(page) && page > 0)
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * perpage);
}
}
#
#-----[ 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 > 0) {
var seo_page = (page - 1) * perpage;
if ( base_url.indexOf('?') >= 0 ) {
document.location.href = base_url.replace(/&/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 ]------------------------------------------
#
styles/subsilver2/template/simple_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
#
#-----[ AFTER, ADD ]------------------------------------------
#
{SEO_BASE_HREF}
#
#-----[ OPEN ]------------------------------------------
#
styles/subsilver2/template/viewtopic_body.html
#
#-----[ FIND ]------------------------------------------
#
<a href="#wrapheader">
#
#-----[ REPLACE WITH ]------------------------------------------
#
<a href="{U_VIEW_TOPIC}#wrapheader">
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
if ($row['topic_type'] == POST_GLOBAL)
{
$global_announce_list[$row['topic_id']] = true;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->seo_opt['topic_type'][$row['topic_id']] = POST_GLOBAL;
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_NEWEST_POST' => $view_topic_url . '&view=unread#unread',
'U_LAST_POST' => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_NEWEST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&view=unread') . '#unread',
'U_LAST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (!empty($_REQUEST['hilit'])) {
$_REQUEST['hilit'] = rawurldecode($_REQUEST['hilit']);
if (!$phpbb_seo->is_utf8($_REQUEST['hilit']) && function_exists('utf8_encode')) {
$_REQUEST['hilit'] = utf8_normalize_nfc(utf8_encode($_REQUEST['hilit']));
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$forum_id = (int) $topic_data['forum_id'];
$topic_id = (int) $topic_data['topic_id'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($topic_data['topic_type'] == POST_GLOBAL) {
$phpbb_seo->seo_opt['topic_type'][$topic_id] = POST_GLOBAL;
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
login_box($redirect_url . "&p=$post_id&e=$jump_to", $user->lang['LOGIN_NOTIFY_TOPIC']);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
login_box(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&p=$post_id&e=$jump_to"), $user->lang['LOGIN_NOTIFY_TOPIC']);
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
redirect($redirect_url . ((!$post_id) ? "&p=$jump_to" : "&p=$post_id") . "#p$jump_to");
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id" . ((!$post_id) ? "&p=$jump_to" : "&p=$post_id")) . "#p$jump_to");
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_PRINT_TOPIC' => ($auth->acl_get('f_print', $forum_id)) ? $viewtopic_url . '&view=print' : '',
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_PRINT_TOPIC' => ($auth->acl_get('f_print', $forum_id)) ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&start=$start&$u_sort_param&view=print" . (($highlight_match) ? "&hilit=$highlight" : '')) : '',
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_BOOKMARK_TOPIC' => ($user->data['is_registered'] && $config['allow_bookmarks']) ? $viewtopic_url . '&bookmark=1' : '',
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_BOOKMARK_TOPIC' => ($user->data['is_registered'] && $config['allow_bookmarks']) ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&bookmark=1") : '',
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_VIEW_RESULTS' => $viewtopic_url . '&view=viewpoll')
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_RESULTS' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&view=viewpoll") )
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$poster_id = $row['poster_id'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_user_url( $row['username'], $poster_id );
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_MINI_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'p=' . $row['post_id']) . (($topic_data['topic_type'] == POST_GLOBAL) ? '&f=' . $forum_id : '') . '#p' . $row['post_id'],
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_MINI_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'p=' . $row['post_id'] . (($topic_data['topic_type'] == POST_GLOBAL) ? '&f=' . $forum_id : '')) . '#p' . $row['post_id'],
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'L_IGNORE_POST' => ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '<a href="' . $viewtopic_url . "&p={$row['post_id']}&view=show#p{$row['post_id']}" . '">', '</a>') : '',
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'L_IGNORE_POST' => ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&p={$row['post_id']}&view=show") . '#p' . $row['post_id'] . '">', '</a>') : '',
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_VIEW_UNREAD_POST' => '#unread',
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_UNREAD_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&start=$start") . '#unread',
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'U_VIEW_UNREAD_POST' => '#unread',
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_UNREAD_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&start=$start") . '#unread',
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
advanced kurdum ben en sondaki 

Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
Kod: Tümünü seç
##############################################################
## MOD Title: Simple phpBB3 SEO mod Rewrite
## MOD Author: dcz / www.phpbb-seo.com
## MOD Description: This mod will URL rewrite phpBB URLs in a static way.
## Please read the author notes BEFORE using this mod.
## Check http://www.phpbb-seo.com/boards/simple-seo-url/simple-phpbb3-seo-url-vt1566.html
## for the latest version or to get help with this MOD.
##
## MOD Version: 0.4.4
##
## Installation Level: ADVANCED
## Installation Time: 20 Minutes
## Files To Edit: 19
## .htaccess,
## common.php,
## includes/db/dbal.php,
## includes/functions.php,
## includes/functions_content.php,
## includes/functions_display.php,
## index.php,
## language/en/acp/common.php,
## memberlist.php,
## search.php,
## styles/prosilver/template/forum_fn.js,
## styles/prosilver/template/overall_header.html,
## styles/prosilver/template/simple_header.html,
## styles/prosilver/template/viewtopic_body.html,
## styles/subsilver2/template/overall_header.html,
## styles/subsilver2/template/simple_header.html,
## styles/subsilver2/template/viewtopic_body.html,
## viewforum.php,
## viewtopic.php
##
## Included Files: (8)
## includes/acp/acp_phpbb_seo.php
## includes/acp/info/acp_phpbb_seo.php
## images/phpbb-seo.png
## language/en/acp/phpbb_seo.php
## phpbb_seo/.htaccess
## phpbb_seo/docs/COPYING
## phpbb_seo/phpbb_seo_class.php
## phpbb_seo/phpbb_seo_install.php

Re: Advanced phpBB3 SEO mod Rewrite V 0.4.4. indirdim kurulum?
url leri çevir dio sanırsam ya şimdi yalnış yapmıyım
açıklarmısın burada ne yapıcamı

Kimler çevrimiçi
Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 4 misafir