ho caricato i file nella corrispondente posizione, apportato le modifiche ai file da modificare con il massimo dell' attenzione e successivamente caricati, svuoltato la cache da PCA e avviato l'indirizzo d' installazione.
Con sessione amministratore attiva ho avviato l'indirizzo http://www.mio_sito.org/phpbb3/phpbb_seo/phpbb_seo_install.php
Dopo aver cliccato su installa si è verificato il seguente errore:
Parse error: syntax error, unexpected T_CASE in /membri/worldcomputing/phpbb3/includes/db/db_tools.php on line 1679
tornando indietro e riprovando sul tasto installa:
Controllando nel PCA il modulo è presente ma mi ritrovo, solo nel modulo sistema, la notifica:Informazione:
Il modulo phpBB SEO è già stato installato.
Se provo ad attivare la riscrittura SQL mi da seguente errore:La tua installazione di phpBB non è aggiornata.
Qui sotto troverai un collegamento all’annuncio del rilascio dell’ultima versione, completo di istruzioni su come effettuare l’aggiornamento.
Aggiornamento incompleto rilevato
phpBB ha rilevato un aggiornamento automatico incompleto. Controlla di aver seguito ogni passaggio della procedura di aggiornamento automatico. Sotto trovi nuovamente il link, oppure vai direttamente alla cartella install.
...
..
Se abilito la riscrittura degli URL da conferma ma in fase di visualizzazione il forum non va più. Grafica e struttura non più presente, indirizzi non funzionanti.Parse error: syntax error, unexpected T_CASE in /membri/worldcomputing/phpbb3/includes/db/db_tools.php on line 1679
-------------------------------------------------------------------------------
DIY
________________________________________
>>>> INSTALLATION INSTRUCTION <<<<<
________________________________________
You will find the premodded phpBB 3.0.9 files in contrib/phpBB_3.0.9_modified_files/root/,
you can safely overwrite the phpBB 3.0.9 files with these and skip the file editing part of this install
if you did not modify these before you install this mod.
___________
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
________________________________________
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 likely 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 install and activate the zero duplicate (http://www.phpbb-seo.com/en/zero-duplic ... t1220.html), you can start thinking about implementing 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.
-------------------------------------------------------------------------------
Ho provato a tradurre e seguire i passaggi ma con poca comprensione. Esiste qualche traduzione?
Credo che l' errore stia qui, proprio dopo aver caricato i file sul web. Occorre creare un determinato file e seguire delle operazioni prima di avviare il modulo di installazione.
Mi date una mano nel completare l'installazione?
Grazie!