bbPress

Simple, fast, elegant

bbPress Plugin Browser »

bbPM (1.0)

Download

Version: 1.0

Other Versions

Last Updated: 2010-1-3

Requires bbPress Version: 1.0 or higher

Compatible up to: trunk

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(24)

Your Rating

Author: Ben L. (Nightgunner5)


  1. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Updated to alpha4b and I'm still experiencing the bug Malhok reported.

    Posted: 10 months ago #
  2. Same as citizenkeith. No change in behavior.

    Posted: 10 months ago #
  3. citizenkeith and Malfhok: Go into your database and look in the table (prefix)bbpm. If the pm_threads are all set to zero, something went wrong. Try emptying the (prefix)bbpm table and sending a new message.

    Posted: 10 months ago #
  4. Seems to be working now. Thanks!

    Posted: 10 months ago #
  5. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Try emptying the (prefix)bbpm table and sending a new message.

    Ok, I did this but lost all the old PMs. Luckily I kept a backup.

    Do I want to empty bb_bbpm table or do I want to empty just one of the fields in that table?

    Posted: 10 months ago #
  6. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    I just edited my last post from "thanks it worked" to "it worked but I lost all my PMs". Just in case you saw the original post... any help would be appreciated. :)

    Posted: 10 months ago #
  7. Unfortunately, if the plugin was not able to fix itself, the only alternative is to empty the table and start fresh. This will at least allow new private messages to work.

    If you have a small number of private messages, you can try setting the pm_threads by yourself, but that would be very labor-intensive.

    Posted: 10 months ago #
  8. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    I don't know enough about this to know what to set pm_threads. If it's not too difficult, can you explain that to me? I appreciate it.

    Posted: 10 months ago #
  9. Each private message that has no reply_to would get a pm_thread that is one higher than the previous (starting with 1)

    Every private message that does have a reply_to would have the same pm_thread as the pm with an ID that matches the reply_to.

    Posted: 10 months ago #
  10. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Thanks, I'll give it a look, but it's probably too much work.

    Just out of curiosity, threading of old PMs worked in your first alpha. What changed?

    Is it possible to flag old PMs so that they are not threaded at all? Some backwards compatibility would be valuable to me and other users, I'm sure.

    Posted: 10 months ago #
  11. The way the upgrade was supposed to work (and did for me) was to take all the private messages and mark them as being in a thread. There is one other thing you could try... Go into bb_topicmeta and change the bbPM version to 0.1-alpha3. I'm not sure if it would work, but it's worth a try!

    Posted: 10 months ago #
  12. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Thanks for the suggestion. It didn't work for me. I received a database error at the top of the forum page immediately after changing to alpha3 in the database. The PM page is still loading, but clicking on any PM simply loads the PM page again, not the PM intself.

    I went back in the database, and it looks like the plugin corrected the database, which read alpha4b.

    Should a PM link look like this?
    http://www.mydomain.com/forums/my-plugins/bbpm/?0#pm-2203

    When using alpha3, the link appears differently:
    http://www.mydomain.com/forums/my-plugins/bbpm/?2203#pm-2203

    Still hoping there's a way to make this work...

    Posted: 10 months ago #
  13. In alpha 3, the urls had the ID of a private message in them. Unfortunately, on a PM thread with 50 replies, there would be 50 different URLs that went to the same place, as well as a lot more database queries.

    The new method is to give each PM thread a different ID and use that in the url. The problem is when it doesn't upgrade properly. The URL should be http://www.example.com/forums/my-plugins/bbpm/?52#pm-2203, not http://www.example.com/forums/my-plugins/bbpm/?0#pm-2203. There is no possible way of having a zero as the thread ID.

    Posted: 10 months ago #
  14. citizenkeith

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Ah, that makes sense now. Thanks for taking the time to explain that to me.

    Any chance you can making threading an option that is set in the admin panel?

    Posted: 10 months ago #
  15. Threading is a big part of how bbPM works. I couldn't really remove it.

    Posted: 10 months ago #
  16. wilcosky

    Member

    FYI - If you have the support forum plugin installed, it shows the "This topic is" not a support question, a support question drop down box. Do you think you could either add support for the support forum plugin or tell me how I can remove that from the private message form.

    It doesn't hurt anything, but it doesn't do anything either. For example, whether you say, yes, this is a support question, or no it's not, it doesn't make the private message look any different. SO, it's just there, and doesn't do anything, and I'm not sure how to remove it.

    Posted: 10 months ago #
  17. wilcosky: Which page does the support forum drop down happen on? If it's the "new pm" page, the following (untested) code should remove it (put it right before the do_action('post_form_pre_post') in privatemessages.php):

    global $support_form;
    remove_action('post_form_pre_post', array(&$support_forum, 'addStatusSelectToPostForm'));
    Posted: 10 months ago #
  18. Importing the old messages didn't work for me either - I got the same bugs and also the error at plugin activation (bbPress 0.9.4 with detective's mod of old PM plugin)

    Posted: 10 months ago #
  19. dragunoff: It would help me a lot to see what the errors are.

    Posted: 10 months ago #
  20. wilcosky

    Member

    Hey Nightgunner5,

    This code:

    global $support_form;
    remove_action('post_form_pre_post', array(&$support_forum, 'addStatusSelectToPostForm'));

    Worked for removing the support forum drop down box. Thank you!

    New questions... Is there an easy way to deactivate the e-mail feature. I don't want people to be e-mailed every time they are sent a new message. Or, maybe there should be a way to give the user the option to receive or not receive PM emails...

    For now, I'm just going to remove:

    bb_mail( bb_get_user_email( $id_reciever ), get_user_display_name( bb_get_current_user_info( 'ID' ) ) . ' has sent you a private message on ' . bb_get_option( 'name' ) . '!', 'Hello, ' . get_user_display_name( $id_reciever ) . '!
    
    ' . get_user_display_name( bb_get_current_user_info( 'ID' ) ) . ' has sent you a private message on ' . bb_get_option( 'name' ) . '!
    
    To read it now, go to the following address:
    
    ' . $msg->read_link );

    That stops the emails from being sent.

    Also, for some reason the "PM this user" link doesn't show up under the post author's name, but it does show up in their profile. There is probably a conflict with one of my plugins... Is there a way I can manually add a PM this user link to my post.php file?

    Posted: 10 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.