Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Mass reassign posts?
Avatar
Ruthanne Reid
Member
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2015 - 9:49 pm

Somehow, half the posts I made suddenly became "guest." I know I can reassign them one at a time, but I really would rather do it all at once. There is no WP user "guest." There is no simple-press user "guest." Is there a way to simple take all those posts back under my name?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2015 - 10:00 pm

one at a time...  did you delete the wp user that had made the posts?  or change it some way where it would get a new user id?   the only way for posts to become from guest is for the user id to go away...

if you know the exact criteria, ie the display name of all posts, you might could write a mysql query to change user id column in sfmembers table of the database...

Avatar
Ruthanne Reid
Member
Free Members
sp_UserOfflineSmall Offline
May 1, 2015 - 7:39 pm

Hi! I haven't deleted anything, so you can see why this is puzzling. If you know an query, I'll run it. Any ideas?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 1, 2015 - 11:56 pm

cannot be specific, but something like this:

UPDATE wp_sfposts SET user_id=XXXXX WHERE guest_name="YYYYY"

you would replace XXXXX with your user id in the wp database...

you would replace YYYYY with the display name being shown for your posts (assume this is not actually guest, but your display name)...

your wp prefix might be other than wp_ too...

be sure to make a db backup before doing this in case it goes south...

does that make sense?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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