Forums

Join
bbPress Support ForumsPluginsForumula for converting wordpress plugins

Info

Tags

Forumula for converting wordpress plugins

  1. Is there a normal process or formula for converting a wordpress plugin to a bbpress plugin? Let's say that it uses all the same tables and everything? Is there a way to switch it over or do you just have to re-engineer it?

  2. Well some are far easier than others.

    First look for $wpdb and change to $bbdb

    Then you have look at things like get_option and other functions and see if they can easily use the bb_get_option or other bb_ version of the function.

    But even if the alternative function exists you have to be sure that it's doing what you want. Things that relate to users are similar but things that relate to posts have to be change to topics and then there is comments vs posts.

  3. Other function names:
    * get_usermeta => bb_get_usermeta (the same applies to delete usermeta)
    * add_option doesn't exists
    * update_option => bb_update_option
    * $current_user->has_cap => bb_current_user_has_cap (or something like that, check the files in bb-includes).
    * is_user_loggedin => bb_is_user_logged_in

    And others ...

  4. You must log in to post.