FAQ |
Kalender |
![]() |
#1 | |||
|
||||
Klarade millennium-buggen
|
Sittit och pillat en del nu och blir inte mycket klokare.
Har satt upp en ny bbPress, och vill få över innehåll från ett äldre PunBB forum. Hittade ett script som skall hjälpa med detta men har inte fått de att snurra korrekt en. http://labs.utopian.net/wordpress/punbb2bbpress.phps Har ändrat dessa till korrekta, samt bb_ prefix istället för punbb_ då det är så i min db. Kod:
/* The database connection for existing punbb */ $punbb_db['host'] = 'localhost'; $punbb_db['username'] = 'user'; $punbb_db['password'] = 'pass'; $punbb_db['database'] = 'dbname'; $punbb_db['tableprefix'] = 'punbb_'; /* The database connection for new bbpress */ $bbpress_db['host'] = 'localhost'; $bbpress_db['username'] = 'user'; $bbpress_db['password'] = 'pass'; $bbpress_db['database'] = 'dbname'; $bbpress_db['tableprefix'] = 'bb_'; Kod:
Connected to punbb database host. Selected punbb database. Forum parents/categories exported - OK. Forums exported - OK. Users exported - OK. Users meta data exported - OK. Topics exported - OK. Posts exported. Har gjort det hela igen och tagit ut data från databasen, lagt upp i en temp db för export och gjort igen. Har testat att ändra dessa settings också i koden, skapat fil och mapp, med chmod 777, testat att ta false, osv. Kod:
$save_to_file = TRUE; //Change to FALSE to suppress writing queries to file. $filename = '/tmp/punbb_imported.sql'; //Ensure the file is writable by PHP. $do_import = FALSE; //Change to TRUE if you want the script to perform the import. //If FALSE, you will need to use the generated SQL file to do the import. Eller kanske rent av har något annat förslag, kanske någon som kan fixa den här pesten för ett kilo apelsiner ![]() Kanske är så simpelt att han har gjort scriptet för en annan struktur, äldre WPMU o sånt. |
|||
![]() |
![]() |
Ämnesverktyg | |
Visningsalternativ | |
|
|