bbPress Plugin Browser »

Post Notification (1.4)

Download

Version: 1.4

Other Versions

Last Updated: 2009-2-25

Author Homepage »

Plugin Homepage »

Average Rating

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

Your Rating

Author: Thomas Klaiber


  1. DKB

    Member

    Thanks! worked great. The Auto Add Favorites has the same problem. The option cant unchecked.

    http://bbpress.org/plugins/topic/auto-add-favorites/

    Can you look please at that. Thanks in advance.

    Posted: 1 year ago #
  2. I haven't used Auto Add Favorites, but assuming the problem is the same, changing the original function with this one should do the trick:
    (other functions not pasted here, just replace auto_add_favorit_profile with this one.)


    function auto_add_favorit_profile() {
    global $user_id;

    if (bb_is_user_logged_in()) {
    $checked = '';
    $unchecked = ' checked="checked"';
    $user = bb_get_user($user_id);
    if (!empty($user->auto_add_favorit)) {
    $checked = ' checked="checked"';
    $unchecked = '';
    }
    echo '
    <fieldset>
    <legend>Add my threads automatically to my favorites</legend>
    <p>Check this option to add all your threads or threads where you have posted something to your favorite list.</p>
    <table width="100%">
    <tr>
    <th width="21%" scope="row">Activate:</th>
    <td width="79%">
    <input name="edit_auto_add_favorit" id="edit_auto_add_favorit" type="radio" value="1"'.$checked.' />
    </td>
    </tr>
    <tr>
    <th width="21%" scope="row">Deactivate:</th>
    <td width="79%">
    <input name="edit_auto_add_favorit" id="edit_auto_add_favorit" type="radio" value="0"'.$unchecked.' />
    </td>
    </tr>
    </table>
    </fieldset>';
    }
    }

    Posted: 1 year ago #
  3. DKB

    Member

    Laust, that did the trick. Thank you very much!

    Posted: 1 year ago #
  4. bfrantz

    Member

    Hi Laust!

    A big thanks for your modified notification code, it's exactly what I needed...

    Posted: 1 year ago #
  5. Hello there,

    I seem to have a problem with Post Notification being installed on multiple bbPress installations that use the same user table (from one WordPress site to enable single sign-on). According to WP/bbP this should work as expected, but now:

    My forum users get notification e-mails for topics from the wrong bbPress installation.

    I had a quick look at the PN code and I think the problem that's causing this behavior is that PN checks if the ID of an updated topic is in the user's favorite topics list. Unfortunately with two bbPress installations topicIDs are not unique any more and therefore the wrong users get notification e-mails.

    Has anyone experienced this before? Is my assumption correct? Is there a way to fix this?

    Thank you very much in advance!
    Holger

    ----

    Edit: Everyone, I'm sorry. This was probably the wrong place to post my problem. I found out that bbPress stores its favorite topics in the "user meta" table of the associated wp database under the key "bb_favorites". Well, if several bbPress installs do this there are obviously going to be uniqueness problems.

    Posted: 7 months ago #

RSS feed for this topic

Add a Comment

You must log in to post.