Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
phpBB3 Import - omitted all but 2 forums
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2013 - 3:31 pm

from the peanut gallery... 

does parent_id = 0 indicate a top level forum?  wouldnt all top level forums have it set to 0?  and then any child forums would have it set to the parent id?

Avatar
David Bentley
Member
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2013 - 4:41 pm

for Yellow Swordfish - I really don't know what you mean. Do I need to go into my tables and change something for it to work? I started with phpBB about 2 years ago, whatever version that was at the time, and definitely didn't modify the tables or even open phpmyadmin the whole time. All that said, no idea where to go with this other than if you think I should update something in the tables of the phpbb forum...which btw was restored perfectly in a new install of phpBB...so that leads me to believe that the tables are normal and fine per phpBB but not to the Sp-importer....?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2013 - 7:13 pm

nothing to do yet... Andy is looking into it and trying to figure out why its different than all the other phpbb3 databases we have converted...

its night in UK now, so he should respond back tomorrow...

Avatar
David Bentley
Member
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2013 - 7:58 pm

Great - thanks Mr Papa!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2013 - 8:38 pm

np. Andy is doing all the work on this one! ;)

Avatar
David Bentley
Member
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2013 - 10:55 pm

Well, I appreciate it. I might have to go live with phpBB tomorrow afternoon if I can't figure out how to use S-P, but I'd definitely prefer the latter if there's any way to move forth with data intact. ;o)

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 22, 2013 - 3:38 am

Sorry I missed you last night. But no - am still not sure why this should be any different from past phpBB db's. There doesn't seem to be any obvious tie-up between the parent and forum IDs in the table. At least no blatantly obvious relationship that I can see...

Still - if you are willing to make a small code edit then we could try to use some brute force... if that is possible you need the file /sp-import/importers/phpbb.php

Down on line 83 you should find the block that is labelled: '# SFFORUMS Table Mappings'. We are going to change the entries for ->select and ->where. Basically we need to remove the 'WHERE parent_id != 0' text from both lines so it ends up as:

$map['sfforums']->select = 'SELECT * FROM <%dbname%>.<%dbbasepfix%>forums ORDER BY forum_id';
$map['sfforums']->where     = '';

and then try to perform the import again. Th easiest way to do that, of course, is to go you your currently installed but incomplete SP and use the uninstall option which will clear out all of the data. Then re-install and finally re-import.

I don't know if this will work but it should not, at least, do any harm and it will have the effect of selecting all of the possible forums. If it does not then let me know and I can set up a test to import the DB here - that just takes a little time to prepare.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625