Seite 1 von 1
Profile Views List mit phpBB 3.0.10
Verfasst: 17.04.2012 09:52
von Sandra95
Hi, ich möchte mir gerne die MOD Profile Views List (
http://www.phpbb.com/customise/db/mod/p ... iews_list/) installieren,
er ist aber nur für phpBB 3.0.6 verfügbar.
Hat vielleicht jemand von euch die MOD in einem 3.0.10 Forum eingebaut und kann berichten, ob er dort funktioniert?
Anscheinend gibt es ja Probleme beim Installieren auf einem 3.0.10 Forum:
http://www.phpbb.com/customise/db/mod/p ... 83-t_97699
Re: Profile Views List mit phpBB 3.0.10
Verfasst: 17.04.2012 16:30
von FRvN
Im zweiten Beitrag ist doch ein Link der wohl zur Lösung führt, siehe
hier
Re: Profile Views List mit phpBB 3.0.10
Verfasst: 17.04.2012 21:40
von Sandra95
Ja, das habe ich gesehen, trotzdem würde ich mich wohler fühlen wenn jemand berichtet, dass die MOD auf phpBB3.0.10 funktioniert,
bevor ich was installiere, was vielleicht Probleme macht.

Re: Profile Views List mit phpBB 3.0.10
Verfasst: 17.04.2012 21:50
von WileCoyote
Die MOD funktioniert mit phpBB 3.0.10 einwandfrei.
Re: Profile Views List mit phpBB 3.0.10
Verfasst: 17.04.2012 21:54
von Sandra95
Ok dann wage ich es, danke schön.

Re: Profile Views List mit phpBB 3.0.10
Verfasst: 29.04.2012 17:32
von Sandra95
Wie sollte es auch anders sein, natürlich habe ich jetzt doch Probleme mit der MOD.

Nachdem ich alle Änderungen in den Dateien gemacht habe und /install/index.php starten wollte kam dieser Fehler:
Allgemeiner Fehler
Index name 'phpbb_profile_views_profile_user_id' on table 'phpbb_profile_views' is too long. The maximum is 30 characters.
Die Lösung in dem Link, die FRvN gepostet hat, funktioniert schon deswegen nicht, weil es keine Datei includes/db/dbtools.php gibt.
In addition to that (and no need to revert these changes since it is not supposed to be like that in the first place):
In includes/db/dbtools.php
Find on line 2062:
Code: Select all
$max_length = $table_prefix + 24;
Replace with
Code: Select all
$max_length = strlen($table_prefix) + 24;
Find on line 2099:
Code: Select all
$max_length = $table_prefix + 24;
Replace with:
Code: Select all
$max_length = strlen($table_prefix) + 24;
Reference.
Otherwise, if you do not plan on migrating to fscked-up DBs like Firebird in future, the max values for MySQL are:
5.1 - UTF-8 index length of 333 (3 bytes per character)
6.0 - UTF-8 index length of 250 (4 bytes per character)
which corresponds to overall max key length of 1000 bytes -- yeah, "thanks" to MySQL/Oracle folks - MySQL Bug #4541 has 7+ years and counting!
So, for the edits suggested by lefty74, those are just fine to leave there as well for MySQL.
Es gibt nur eine Datei includes/db/db_tools.php und in der ist an den genannten Zeilen nicht der richtige Inhalt.
Was vielleicht noch helfen könnte wäre dieser Beitrag:
no idea how long, if you really want to use that mod, you could change in includes/db/db_tools.php
line 1414, change 30 to 130 = if (strlen($column_name) > 130)
line 2060, change 24 to 124 = if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)
line 2097, change 24 to 124 = if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)
then run the install file
make sure after the install file ran to change these values back to their original numbers.
Aber bevor ich die Änderungen mache, möchte ich erstmal wissen, was ich da genau ändere.

Re: Profile Views List mit phpBB 3.0.10
Verfasst: 29.04.2012 17:59
von WileCoyote
Bei einer originalen phpBB 3.0.10 includes/db/db_tools.php[c] gehst du folgendermaßen vor:
[b]Öffne includes/db/db_tools.php[/b]
[b]Finde (Zeile 1454)[/b]
[code] if (strlen($column_name) > 30)[/code]
Ersetze mit
[code] if (strlen($column_name) > 130)[/code]
[b]Finde (Zeile 2101)[/b]
[code] if (strlen($table_name . $index_name) - strlen($table_prefix) > 24)[/code]
[b]Ersetze mit[/b]
[code] if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)[/code]
[b]Finde (Zeile 2138)[/b]
[code] if (strlen($table_name . $index_name) - strlen($table_prefix) > 24)[/code]
[b]Ersetze mit[/b]
[code] if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)[/code]
Danach die Installationsdatei der Profile Views MOD ausführen. Wenn die Installation gelaufen ist, änderst du die 3 Zeilen einfach wieder auf ihre ursprünglichen Werte zurück.
Re: Profile Views List mit phpBB 3.0.10
Verfasst: 29.04.2012 18:05
von Sandra95
Habe ich gemacht und hat funktioniert, danke schön.
