Bitte um Hilfe! Konvertierte Topics falsch rum angeordnet

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
baerenwurm
Mitglied
Beiträge: 285
Registriert: 06.11.2002 16:29
Kontaktdaten:

Beitrag von baerenwurm »

Gibt's da kein Mod oder so? Hier Ausschnitte:

Spalten-Beschreibung:

Code: Alles auswählen

  topic_id mediumint(8) unsigned NOT NULL auto_increment,
  forum_id smallint(8) unsigned NOT NULL default '0',
  topic_title char(60) NOT NULL default '',
  topic_poster mediumint(8) NOT NULL default '0',
  topic_time int(11) NOT NULL default '0',
  topic_views mediumint(8) unsigned NOT NULL default '0',
  topic_replies mediumint(8) unsigned NOT NULL default '0',
  topic_status tinyint(3) NOT NULL default '0',
  topic_vote tinyint(1) NOT NULL default '0',
  topic_type tinyint(3) NOT NULL default '0',
  topic_first_post_id mediumint(8) unsigned NOT NULL default '0',
  topic_last_post_id mediumint(8) unsigned NOT NULL default '0',
  topic_moved_id mediumint(8) unsigned NOT NULL default '0',
  topic_attachment tinyint(1) NOT NULL default '0',
  topic_icon tinyint(2) unsigned NOT NULL default '0',

Anfang (mit Konvertierten):

Code: Alles auswählen

INSERT INTO phpbb_topics VALUES (1, 1, 'Chat', 2, 1019233505, 282, 59, 0, 0, 0, 1, 60, 0, 0, 0);
INSERT INTO phpbb_topics VALUES (2, 1, 'Anlagen hinzufügen', 2, 1030269623, 188, 31, 0, 0, 0, 61, 92, 0, 0, 0);
INSERT INTO phpbb_topics VALUES (3, 1, 'Bilder-Upload & Online-Spiele', 2, 1026562507, 281, 59, 0, 0, 0, 93, 152, 0, 0, 0);
INSERT INTO phpbb_topics VALUES (7, 1, 'Neue Board Version & MP3s', 2, 1012411003, 83, 10, 0, 0, 0, 153, 163, 0, 0, 0);
INSERT INTO phpbb_topics VALUES (8, 1, 'Moderatoren gesucht!', 2, 1012411544, 258, 38, 0, 0, 0, 164, 202, 0, 0, 0);
INSERT INTO phpbb_topics VALUES (10, 1, 'RELAUNCH: TARANTINO CAFE', 112, 1020541535, 53, 8, 0, 0, 0, 204, 212, 0, 0, 0);
Ende (mit neu erstellen):

Code: Alles auswählen

INSERT INTO phpbb_topics VALUES (411, 2, 'Kann  mich nicht anmelden!!!', -1, 1049044075, 36, 5, 0, 0, 0, 7697, 7706, 0, 0, 0);
INSERT INTO phpbb_topics VALUES (412, 2, '@ dr somm', 241, 1049053077, 67, 11, 0, 0, 0, 7709, 7752, 0, 0, 0);
INSERT INTO phpbb_topics VALUES (413, 6, 'The Majestic', 202, 1049058651, 11, 0, 0, 0, 0, 7718, 7718, 0, 0, 14);
INSERT INTO phpbb_topics VALUES (414, 5, 'Woher bezieht ihr eure DVD & VHS ???', -1, 1049122209, 14, 2, 0, 0, 0, 7730, 7751, 0, 0, 0);
INSERT INTO phpbb_topics VALUES (415, 6, 'Windtalkers FSK18 | Running Man 2 DVDs Uncut Neuauflage', 237, 1049140332, 7, 2, 0, 0, 0, 7772, 7778, 0, 0, 0);
Benutzeravatar
Mister_X
Ehemaliges Teammitglied
Beiträge: 7102
Registriert: 24.05.2001 02:00
Wohnort: Augsburg

Beitrag von Mister_X »

das sieht eigentlich ziemlich richtig aus :-?
topic_last_post_id wird gesetzt, kannst du mal einen Link auf dein Forum geben ?
Benutzeravatar
baerenwurm
Mitglied
Beiträge: 285
Registriert: 06.11.2002 16:29
Kontaktdaten:

Beitrag von baerenwurm »

Vielen Dank, dass du dir meine Frage nochmal angeschaut hast! :)

URL: http://www.tarantinoboard.de bzw. http://www.pulpfiction.de/forum/index.php
Benutzeravatar
Mister_X
Ehemaliges Teammitglied
Beiträge: 7102
Registriert: 24.05.2001 02:00
Wohnort: Augsburg

Beitrag von Mister_X »

gib mal einen Link auf den Konverter den du benutzt hast
Benutzeravatar
baerenwurm
Mitglied
Beiträge: 285
Registriert: 06.11.2002 16:29
Kontaktdaten:

Beitrag von baerenwurm »

Ich hab erst den YaBB to YaBB SE genommen (YaBB to phpBB konvertierte nicht richtig), dann den YaBB SE to phpBB. Es kann aber durchaus sein, dass die schon aktuellere Versionen anbieten...

YaBB to YaBB SE: http://www.yabbse.org/download.php?d=converter.zip

YaBB SE to phpBB: http://prdownloads.sourceforge.net/phpb ... bbse14.zip
Gast

Beitrag von Gast »

Hallo baerenwurm,

genau das gleiche hab ich auch gemacht - mit dem gleichen Ergebnis...
Hast du das Problem inzwischen gelöst bekommen?

Grüße,
yabba :grin:
Gast

Beitrag von Gast »

Ist das richtig, dass die fisrt_post_id und die last_post_id bei Beträgen ohne Antwort identisch ist?

Also der Fehler liegt wahrscheinlich daran, dass er den neusten Beiträgen die niedrigste last_post_id gegeben hat - per Hand ist das nich zu ändern... - glaub ich... :oops:

Hat jemand ne Idde?
Gast

Beitrag von Gast »

Ich hab das gleiche Problem.
Wär super, wenn sich das jemand von den Profis mal anschauen könnte! :D
Benutzeravatar
MarcE
Mitglied
Beiträge: 37
Registriert: 20.06.2005 15:42
Wohnort: 64686 Lautertal
Kontaktdaten:

Reihenfolge der Postings nach der Konvetierung

Beitrag von MarcE »

Servus!

Ich weiß das das Thema schon älter ist - bin aber gerade darüber gestolbert, da ich gerade ebenfalls ein Board in phpbb2 bringen will und diese kleinen "Stolperfallen" auch schon kennengelernt habe.

Also generell ist die Reihenfolge yabb -> yabbse -> phpbb2 schon mal richtig (nach dem was ich bisher gelesen habe).

Ich habe zwei Dateien gefunden, die hier recht nütlich sein können:

1.) reverseboards.htm

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<a href="reverseyabb.cgi?basedir=http://localhost/yabb1/boards&board=forum1.txt&oldboard=forum1.old">forum1</a><br>
<a href="reverseyabb.cgi?basedir=http://localhost/yabb1/boards&board=forum2.txt&oldboard=forum2.old">forum2</a><br>
.
.
.
</body>
</html>
(Übernehmt einfach die Angabe aus der *.cat - Datei in "/Boards/)

2.) reverseyabb.cgi

Code: Alles auswählen

#!d:\server\xampp\perl\bin\perl.exe
# reverseyabb.pl 
# a number of us have encountered the problem of converting from YaBB to 
# phpBB (via YaBBSE) where the posts are listed in reverse order ie the 
# most recent post is actually the first post on the board. The problem 
# isn't in the YaBBSE to phpBB converter but the YaBB to YaBBSE converter. 
# It simply reads off the posts in your board.txt (or whatever the name of 
# the board is in your Boards dir) from top to bottom. But since the posts 
# are appended to the top, it's reading the most recent post and assigning 
# that to the first ID. 
# 
# Since I've more experience in Perl than php, I wrote a little script 
# that reverses your board.txt file (you can either create a new file name 
# or save the current file as a different name). As always, YMMV and 
# backup before you start; if it blows up you are on your own. All 
# standard perl things should be obeyed (eg permissions).# responsible for 
# having a working backup. 
# Backup everything before you begin! If something blows up, you are 
# responsible for having a working backup. 
# william fragakis william@fragakis.com 2003 

# full path to Boards directory, no trailing slash 

use CGI qw(:standard);

# $basedir = "/home/foo.com/YaBB/Boards";
$basedir = param('basedir'); 


# file to be converted 
$file1 = param('board');

# do you wish for the new file to have the same name and rename the old file a different name? 

$same = "1"; 

# if you want the same name, what name do you want to give the existing (old) 
# file? 

$oldfile1 = param('oldboard');

# if you want a different name for the new reversed file, what is it? 

$target1 = param('target'); 


# Open original file 


print "Content-type: text/html\n\n"; 
   print "<html>"; 


if ($same) { 

   # Open original file 

   open (FILE,"$basedir/$file1") || die "1 Can't Open $basedir/$file1: $!\n"; 
   @LINES=<FILE>; 
   close (FILE); 
   # copy original to a different name so we retain the new name 
   open (OLDFILE,">$basedir/$oldfile1") || die "2 Can't Open $basedir/$oldfile1: $!\n"; 
   print OLDFILE  @LINES; 
   close (OLDFILE); 
    
   # Open new file, print reverse of original 
   open (FILE,">$basedir/$file1") || die "3 Can't Open $basedir/$file1: $!\n"; 
   print FILE reverse @LINES; 
   close(FILE); 
    
   print "$file1 has been reversed and is ready for conversion. The previous 
   version has been saved as $oldfile1"; 
   } 
else {     
   # Open original file 
   open (FILE,"$basedir/$file1") || die "Can't Open $basedir/$file1: $!\n"; 
   @LINES=<FILE>; 
   close(FILE); 
   # Open new file, print reverse of original 
   open (NEWFILE,">$basedir/$target1") || die "Can't Open $basedir/$target1: $!\n"; 
   print NEWFILE reverse @LINES; 
   close (NEWFILE); 
   print "Content-type: text/html\n\n"; 
   print "<html>"; 
   print "$file1 has been reversed as $target1 and is ready for conversion"; 
   } 

print "</html>"; 

exit;
Beides packt ihr in das YABB1 - Verzeichnis und klickert nacheinander alle Links durch (reverseboards.htm aufrufen). Das war's.

Das ganze setzt natürlich voraus, das ihr die Dateien lokal auf der Platte habt. Denkt auch daran den shebang in der .cgi (erste Zeile) entsprechend anzupassen.

Wünsche noch einen schönen Abend.

MarcE
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“