bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Forumula for converting wordpress plugins

(3 posts)
  • Started 4 months ago by darkling235
  • Latest reply from Detective
  • This topic is not resolved

Tags:

  1. darkling235
    Member

    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?

    Posted 4 months ago #
  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.

    Posted 2 months ago #
  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 ...

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.