Profile Views List mit phpBB 3.0.10

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
Sandra95
Mitglied
Beiträge: 131
Registriert: 16.01.2012 20:53

Profile Views List mit phpBB 3.0.10

Beitrag 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
Benutzeravatar
FRvN
Mitglied
Beiträge: 604
Registriert: 16.07.2009 13:43
Wohnort: Wankum
Kontaktdaten:

Re: Profile Views List mit phpBB 3.0.10

Beitrag von FRvN »

Sandra95 hat geschrieben:Anscheinend gibt es ja Probleme beim Installieren auf einem 3.0.10 Forum: http://www.phpbb.com/customise/db/mod/p ... 83-t_97699
Im zweiten Beitrag ist doch ein Link der wohl zur Lösung führt, siehe hier
Allround-phpBB.de - jung, frech, dynamisch...
Kein Support per PN oder eMail
Benutzeravatar
Sandra95
Mitglied
Beiträge: 131
Registriert: 16.01.2012 20:53

Re: Profile Views List mit phpBB 3.0.10

Beitrag 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. :)
Benutzeravatar
WileCoyote
Mitglied
Beiträge: 901
Registriert: 13.07.2011 07:38
Wohnort: Österreich

Re: Profile Views List mit phpBB 3.0.10

Beitrag von WileCoyote »

Die MOD funktioniert mit phpBB 3.0.10 einwandfrei.
Gruß WileCoyote
Benutzeravatar
Sandra95
Mitglied
Beiträge: 131
Registriert: 16.01.2012 20:53

Re: Profile Views List mit phpBB 3.0.10

Beitrag von Sandra95 »

Ok dann wage ich es, danke schön. :)
Benutzeravatar
Sandra95
Mitglied
Beiträge: 131
Registriert: 16.01.2012 20:53

Re: Profile Views List mit phpBB 3.0.10

Beitrag 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. :geek:
Benutzeravatar
WileCoyote
Mitglied
Beiträge: 901
Registriert: 13.07.2011 07:38
Wohnort: Österreich

Re: Profile Views List mit phpBB 3.0.10

Beitrag 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.
Gruß WileCoyote
Benutzeravatar
Sandra95
Mitglied
Beiträge: 131
Registriert: 16.01.2012 20:53

Re: Profile Views List mit phpBB 3.0.10

Beitrag von Sandra95 »

Habe ich gemacht und hat funktioniert, danke schön. :)
Antworten

Zurück zu „[3.0.x] Mod Support“