Here is a revised version of the script I posted earlier:
Code:
Content visible to verified customers only.
What this does is change a PhotoPost's user_id from $old_id to $new_id. This would be useful later on by another script that merges a UBB.Threads account with the existing PhotoPost account. Let's say a customer has an account in UBB.Thread with username "ubb_user" and user_id of "1234" and account in PhotoPost with username "pp_user" and user_id of "1111" then I can execute the function
change_all(1111, 1234, 'ubb_user');
which would update his PhotoPost profile with the new username and user_id so integration with Ubb.Threads works.
At least that's the plan. If somebody think that there may be a problem with my plan, please let me know now.