Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
skipping user import section
Avatar
Vertical Scope
Member
Free Members
sp_UserOfflineSmall Offline
Jan 8, 2014 - 1:02 pm

Hi

By the time installed SimplePress in none-production environments, each time, the part which was importing users from wp to sp, took few hours... and because of some technical concerns, need to do the installation without "user import" part on production ... so before digging your code was wondering if you have any solution/problem-with-post-edit-buttonint for us to skip that step and run it separately, please. Even any db diagram...

Thanks,

Sep

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 8, 2014 - 1:25 pm

Sorry are you referring to our SP Import plugin?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Vertical Scope
Member
Free Members
sp_UserOfflineSmall Offline
Jan 8, 2014 - 1:44 pm

referring to installing SP in a first side when adding it to an old blog with lots of users and posts actually

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 8, 2014 - 3:23 pm

In that case no. When you install SP it needs to deal with any users already defined on your site. SP is a WP plugin - the users on your site ARE your forum user-base. It needs to build those existing users into the default user group etc, for the forum to operate correctly.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Vertical Scope
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2014 - 10:06 am

was not planing to ignore that step ... was just trying to have it executed separately... 

k thanks

sep

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 9, 2014 - 10:24 am

Well - yes - you could manually remove the code for that step but it is not quite as simple as something that could be replaced by queries. The main work is performed by the sp_create_member_data($ID) function (where the user ID is passed in) which would then need to be called for each user. As it happens - if a user logs in and there is no forum record data found for them then this function is called so that the necessary data is created on the fly. That might be preferable to you.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Vertical Scope
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2014 - 12:02 pm

Hi

Help me please... :(

The import users process gets really slow after 50,000 (even faced mem issue and had to begin from start) have to import over 170,000 users... so its what did/am doing:

1. had the installation done in one db, then switched to pure db(before installing SP), activated the plugin, imported SP tables there, defined the new page named as forum and forum was installed BUT none of the steps regarding "grant spf capabilities to installer" were assigned to me... so how can I have that portion running separately?

OR: 2. trying to install in pure db while for function sp_install_members_table($subphase), defined the limit to 0 (in case it is somehow getting called) and marked out sp_install_members_table($subphase) and sp_generate_member_feedkeys() in step 8 (CREATE MEMBERS TABLE) of sp-startup/install/sp_upgrade_support ... but still doesnt look skipping it...

 

thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 10, 2014 - 12:31 pm

1 - SP will have added a couple of new items in the WP usermeta table for you as the installer/admin.

Look at Usermeta table for the items with your user ID. Find the [table_prefix]_capabilities row and copy that data into your other db table exactly as it is. Make sure you copy it into the exsiting_capabilities row - do not create a second one. That should do the trick I believe.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Vertical Scope
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2014 - 12:56 pm

PERFECT

thank you

sep

Avatar
Vertical Scope
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2014 - 1:34 pm

just to dbl check plz...

is it just the admin user which has wp_capabilities updated during installation?

 

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626