Skip to:

Forumula for converting wordpress plugins

  • darkling235


    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?

Viewing 2 replies - 1 through 2 (of 2 total)

  • _ck_


    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.



    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 …

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar