Aktualizacja forum + mod przyjazne linki

Pomoc przy instalacji oraz użytkowaniu phpBB 3.0.x. Forum nie służy do zgłaszania znalezionych błędów, innowacji lub problemów związanych ze stylami i modyfikacjami.
jaroslw
Zasłużony
Posty: 4524
Rejestracja: 10 grudnia 2005, 18:48
Kontakt:

Re: Aktualizacja forum + mod przyjazne linki

Post autor: jaroslw » 20 lipca 2010, 20:22

Wszystko się zgadza i możesz robić tak bez końca. Żeby zaktualizować styl wcale nie potrzebujesz wykonywać całej aktualizacji jeszcze raz. Ręczna aktualizacja stylu podobna jest bardzo do instalacji modyfikacji. Pobierasz najpierw instrukcję aktualizacji z 3.0.5 do 3.0.6, później instrukcję aktualizacji z 3.0.6 do 3.0.7-PL1. Po rozpakowaniu wchodzisz oczywiście do katalogu prosilver/ – plik TXT zawiera instrukcję, w katalogu styles/ znajdują się pliki dodane w nowej wersji. Po zapisaniu wszystkich zmian w swoim pierwotnym stylu odświeżasz jego komponenty. To wszystko.
Pobierz styl: we_universalwe_clearblue
Nowości i aktualizacje: FacebookGoogle+Twitter

Ronin
Posty: 11
Rejestracja: 14 lipca 2010, 13:46

Re: Aktualizacja forum + mod przyjazne linki

Post autor: Ronin » 21 lipca 2010, 12:31

No właśnie sobie wszedlem do tej insturukcji zapisanej w txt... taki tam balagan, ze trodno sie w ogole w czym kolwiek polapac co i gdzie robic :/ Instrukcja w SEO Ultimate jest przynajmniej czytelna i przejrzysta :/


--- edit---

Apropos instalacji moda SEO Ultimate. Tam jak pisalem w maire rpzejrzyscie to wyglada, co gdzie skopiowac. Jednak przed boksami z tymi kodami do kopiowanie jest tekst:
Kopiowanie plików

1. Skopiuj: root/*.*
Do: *.*
Co to oznacza? Mam zawartość katalogu root skopiowac to katalogu glownego forum, czy caly katalog root wkleic do glwonego katalogu forum?

Na końcu pisze jeszcze coś takiego:
PHP install file

There is a PHP install file that needs to be run in order to complete the installation.
To run it point your browser to, for example, domain.tld/phpBB3/phpbb_seo/phpbb_seo_install.php
Code:Select All

phpbb_seo/phpbb_seo_install.php
oraz jeszcze

Ręczne instrukcje
Tych instrukcji nie da się wykonać automatycznie. Wykonaj je ręcznie, nie omiń żadnej z nich.

... i tutjaj strasnzie duzo tekstu, ktorego ni cholery nie rozumiem :/

jaroslw
Zasłużony
Posty: 4524
Rejestracja: 10 grudnia 2005, 18:48
Kontakt:

Re: Aktualizacja forum + mod przyjazne linki

Post autor: jaroslw » 21 lipca 2010, 21:26

Ad 1. Tak kiedyś wyglądały modyfikacje (za czasów phpBB2). W artykule Jak instalować modyfikacje? dowiesz się jak interpretować zawartość takiego pliku.

Ad 2. Kopiujesz do katalogu głównego forum.

Ad 3. Logujesz się na konto administratora i uruchamiasz adres http://adresforum.pl/phpbb_seo/phpbb_seo_install.php

Ad 4. Powiązane jest to z punktem pierwszym i sposobem instalacji modyfikacji. Oparte jest to na tej samej zasadzie (znajdź/dodaj/zamień/usuń), tylko ubrane we własny, czytelniejszy format.
Pobierz styl: we_universalwe_clearblue
Nowości i aktualizacje: FacebookGoogle+Twitter

Ronin
Posty: 11
Rejestracja: 14 lipca 2010, 13:46

Re: Aktualizacja forum + mod przyjazne linki

Post autor: Ronin » 25 lipca 2010, 19:39

Sekundke, bo chyba nie do końca łape. Jeśli chodzi o instalacje SEO Ultimate. to mam w po kolei wykonac takei kroki?

1. Odnalezc w dopowiednich plikach odpiwiednie linijki i kopiowac tam co trzeba.
2. Caly katalog root skopiowac do glownego katalogu forum
3. Odpalic adres: http://adresforum.pl/phpbb_seo/phpbb_seo_install.php i tam zapewne posepowac wedlug krokow po kolei?
4. I tutaj sie gubię, mam wykonac tlko tych kilka podpunktow z samej gory czy co mam tutaj zrobic?
________________________________________
>>>> INSTALLATION INSTRUCTION <<<<<
________________________________________

You will find the premodded phpBB 3.0.7 files in contrib/phpBB_3.0.7_modified_files/root/,
you can safely overwrite the phpBB 3.0.7 files with these and skip the file editing part of this install
if you did not modify these before you install this mod.

A phpBB 3.0.7 => ultimate mod rewrite 0.6.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 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 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 4 above for the generated .htaccess to be up to date.
Later modification will most likey require a new .htaccess as well as personalized redirections.

IMPORTANT :
A new option was added staring from v0.6.0 : SQL rewriting.

This option will allow you to choose url for each topic. You will be able to accurately set topic url when posting new
topic or when editing an existing one. This functionality is though limited to forum admins and moderators.
Turning on this option will not change topic urls. Existing urls will be stored as they are displayed in the data
base.
But it may not be the case if you turn it off after you started to use it. In such case, personalized URLs may be
treated as if they weren't.
The feature also has the great advantage to fasten the url rewriting by a lot, especially when using the virtual folder
option in advanced mode, and to make it a lot easier to retrieve rewritten urls from any page.

If you start using this option after you updated from prior to 3.0.5, or if you are installing the premod over a
pre-existing phpBB install, you should run the phpbb_seo/sync_url.php script to update the data base (with topic urls).
Doing this will not change your URLs. If you do not run the script, topic urls will be updated in the data base each time
topics will be first visited.


=> By Default, this mod will get rid of index.php for phpBB's index.

You can change this in phpbb_seo/includes/setup_phpbb_seo.php if you prefer.
To do this, you can for example add :

$this->seo_static['index'] = 'forum';

before :

// Let's make sure that settings are consistent
$this->check_config();


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 override default values in phpbb_seo/includes/setup_phpbb_seo.php, still before :

// Let's make sure that settings are consistent
$this->check_config();

EXAMPLES :
__________

// => the-team :
$this->seo_static['leaders'] = 'my-team'; // instead of the default "the-team"

// => announces :
$this->seo_static['global_announce'] = 'announcements'; // instead of the default "announces"

// => Active topics :
$this->seo_static['atopic'] = 'important-topics'; // instead of the default "active-topics"

// => Unaswered :
$this->seo_static['utopic'] = 'not-answered'; // instead of the default "unanswered"

// => Newposts :
$this->seo_static['npost'] = 'new-messages'; // instead of the default "newposts"

=> As well as for (and the same way) :
forum ($this->seo_static['forum']), topic ($this->seo_static['topic']), post ($this->seo_static['post']), member ($this->seo_static['member']), groups ($this->seo_static['group']), attachments virtual directory ($this->seo_static['file_index'], read the comments in the file for more attachments customizing) and virtual folder pagination ($this->seo_static['page'])

________________________________________________________________________________________________________


=> And the suffixes too, if you do not like .html, using the phpbb_seo::seo_ext array ($this->seo_ext) still before :

// Let's make sure that settings are consistent
$this->check_config();

EXAMPLES :
__________
$this->seo_ext['forum'] = '.htm';
$this->seo_ext['topic'] = '/';

PLEASE NOTE :
_____________
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 wish.

=> It is now time to play with your forum URLs.
To do so, go to the "Forum URL management" page and start selecting good keywords for your forum URLs.
Take your time to do it, and remember that using the remove IDs option in the settings makes it a bit harder to build appropriate redirection, in case you edit the forum URLs later.
If you later create more forums, you'll just have to go to this page again an eventually update the
new forum URL.
If not, the new forum URL will not be cached and the default one will be used (forum-title-fxx).

________________________________________
Custom replacement for title injection :
________________________________________

The phpbb_seo class handles de-accentuation for most of the occidental characters, but you could need to handle more cases for your project.
Starting from v0.6.0, we introduced a simple way to set up custom replacements.
This is useful for special characters not properly handled by default, such as Russian ones (Г => G), or to implement custom replacements such as $ => dollar.
It works with any string, but you MUST perform the edits with an UTF-8 (without BOM) capable text editor.
This is still done in phpbb_seo/includes/setup_phpbb_seo.php, and still before :

// Let's make sure that settings are consistent
$this->check_config();

The principle is simple, you can set up your custom replacement by filling the phpbb_seo::url_replace array ($this->url_replace).
The pattern to use is :

$this->url_replace = array(
'character(s) to find' => 'replacement to apply',
);

EXAMPLE :
_________

$this->url_replace = array(
// Purely cosmetic replace
'$' => 'dollar', '€' => 'euro',
"'s" => 's', // it's => its / mary's => marys ...
// Language specific replace (German example)
'ß' => 'ss',
'Ä' => 'Ae', 'ä' => 'ae',
'Ö' => 'Oe', 'ö' => 'oe',
'Ü' => 'Ue', 'ü' => 'ue',
);

Just make sure that the characters you may add are not already handled properly but the default replacements before you add some more.
Please note that English characters are already properly handled.
Please read for more details : http://www.phpbb-seo.com/en/phpbb-mod-r ... t4709.html
___________
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.
You will have too put it where the red bolded messages of the .htaccess generator tells you to.
If you cannot find the location mentioned, it means that you did not properly set your phpBB server settings in the ACP.
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 (saved .htaccess will be found in the phpbb/cache/ directory).

The .htaccess generator will add the required rewriterules to make your domain canonical, but they will be
left commented (un-active) at first, as this is the kind of thing that require human attention.
Please take a look at : http://www.phpbb-seo.com/en/seo-techniq ... s-t30.html
to find out how to lock the use (or non 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, at least 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.
A już o tym tworzeniu ".htaccess" to kompletnie glupieje :/ Kurde myslalem ze to bedzie latwiejsze, a koniecznie chcialem to sobei doinstalwoac :/ Pomożesz wyjasniajać to łopatologicznie po kolei ?

pit
Posty: 1580
Rejestracja: 25 lutego 2009, 18:15

Re: Aktualizacja forum + mod przyjazne linki

Post autor: pit » 25 lipca 2010, 19:52

1. tak
2. nie, jego zawartość masz skopiować
3. tak
4. od 7 do 10

ps
Następnym razem walnij taki cytat jako załącznik. 8-)

Ronin
Posty: 11
Rejestracja: 14 lipca 2010, 13:46

Re: Aktualizacja forum + mod przyjazne linki

Post autor: Ronin » 26 lipca 2010, 11:26

OK, będzie jako załącznik :)

Dzięki za wyjasnienie, a mi właśnie schody zaczynają się na tych punktach, dobrze ze tylko od 7 do 10 trza robić :)

7) co to jest ACP ?
8) Nie mam pojecia jak zrobic .htaccess i co tam w ogole powinno byc, heelp :)
9) jak nie bedzie bledu to działa ? :)
10) Aktywować coś znów w tym ACP, co to być ? :)

No powoli dochodzimy do sedna, moze w koncu uda mi sie to zainstalować :)

jaroslw
Zasłużony
Posty: 4524
Rejestracja: 10 grudnia 2005, 18:48
Kontakt:

Re: Aktualizacja forum + mod przyjazne linki

Post autor: jaroslw » 26 lipca 2010, 16:02

7) ACP – Administration Control Panel, a „po naszemu” PA – Panel Administracji
8) Po zainstalowaniu modyfikacji w PA będziesz mógł ją skonfigurować. Tam też pojawi Ci się kod, jaki będziesz musiał wkleić w pliku .htaccess, znajdującym się na serwerze.
9) Działa.
10) Pomocny może okazać się ten temat. Jeśli będziesz miał problemy, poszukaj rozwiązania w dziale Problemy z modami. Pojawiło się tam już dużo pytań dot. konfiguracji tej modyfikacji.
Pobierz styl: we_universalwe_clearblue
Nowości i aktualizacje: FacebookGoogle+Twitter

Zablokowany

Wróć do „Użytkowanie”