Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating a Plugin for the BBPress Plugin Version


  • christofian
    Member

    @christofian

    Hi, I’m working on a plugin for the bbpress plugin version. I’m trying to add private messages to the bbpress plugin, and I have already done a lot of work on it.

    My problem is I’m trying to add a page in the bbpress profile to display the private messages. I’m trying to do it by modifying /bbpress/bbp-themes/bbp-twentyten/bbpress/user.php so it looks like this:

    $_GET["page"] = $wpbbpmpage;

    if( $wpbbpmpage == recieved ) {

    get_template_part( ‘bbpress/user’, ‘pm-recieved’ );

    }

    elseif( $wpbbpmpage == sent ) {

    get_template_part( ‘bbpress/user’, ‘pm-sent’ );

    }

    else {

    // Profile details

    get_template_part( ‘bbpress/user’, ‘details’ );

    // Subsciptions

    get_template_part( ‘bbpress/user’, ‘subscriptions’ );

    // Favorite topics

    get_template_part( ‘bbpress/user’, ‘favorites’ );

    // Topics created

    get_template_part( ‘bbpress/user’, ‘topics-created’ );

    }

    So that when the url is http://siteurl.com/users/username/?page=sent a list of all the private messages that the user sent will be displayed, and when the url is http://siteurl.com/users/username/?page=recieved a list of all the private messages that the user has received will be displayed. Right now the code isn’t working, and I have no idea why. If someone could tell me where I’m going wrong, I would appreciate it a lot.

    NOTE: This is my first wordpress plugin, and I’m pretty proud of myself for coming this far :)

    Thank’s for your help,

    -Christofian

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