• Hi,

    I hope you’re doing well.

    I noticed that users added to phpBB aren’t immediately transferred to WordPress, and other processes are also problematic, but there’s no issue if I disable CF. What should I exclude in my Custom WAF rules to ensure it works properly with CF?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author axew3

    (@axewww)

    Good morning! +- all ok and you!?

    So, you get the problem when the phpBB (where the phpBB ext is installed) should add the user in WP, due to the cURL request sent from phpBB to WP when an user complete the registration process in phpBB.

    A friend of mine have Cloudflare back for his site with no problems about that, i also have write some line of code that allow him to subscribe/unsubscribe users, based on their groups in phpBB, into specified newsletters served by amazon and memberpress memberships, and all these tasks are all managed in the same easy way (not using the wp rest api).

    Now, could so this be better to do this change, into the phpBB ext code, so to accomplish with easy to same features, but calling/using the native WP rest api that maybe will resolve the problem without changing the Cloudflare settings?

    Anyway i will ask him and return back.

    The integration code require a bug and deep improve and i could be quite ready to move it to the next level rewriting all from scratch.

    May as published this, that is coming very soon

    https://www.w3it.org/mypgp/w3mypgp/

    • This reply was modified 1 month, 2 weeks ago by axew3.
    Thread Starter Halil

    (@halilesen)

    Thank you.

    I think I fixed the user sync from phpBB to WordPress. But for deleting users from phpBB to WordPress, I think the extension is not ready yet, because the relevant code appears to be commented out.

    Plugin Author axew3

    (@axewww)

    To delete the user from phpBB you have to hook the related event listener

    https://area51.phpbb.com/docs/dev/3.3.x/extensions/events_list.html#php-events

    in this case i assume should be core.delete_user_after

    if you know how to manage the addition, anyway, you see that the listener return 4 params

    mode, retain_username, user_ids, user_rows

    there are not emails.

    So into the function that hook the listener core.delete_user_after, it is required to:

    1. Perform a query to get all users emails, fast because there are users ids.
    2. Get the array value of emails and pass it to a cURL post
    3. Add the code in WP that get the cURL request containing the emails payload, check value for security (sanitize emails), and delete users in wp.

    Should be easy if you want the

    /ext/w3all/phpbbwordpress/event/acp_listener.php

    modified to add the listener and the related function (but you should be able cloning one existent) let know as i can i will do.

    Remember that if you edit php files adding listeners into a phpBB extension, you have to DISABLE the extension and (if i do not wrongly remember) delete data, add the hook listener and the related function even empty with no code, and then RE-ENABLE the extension!

    • This reply was modified 1 month, 2 weeks ago by axew3.
    • This reply was modified 1 month, 2 weeks ago by axew3.
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.