Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 16 replies - 1 through 16 (of 16 total)
  • I was able to figure this out myself by using one of the provided filters.
    For reference, here’s the code that discards all template information, keeping only the message content:

    `
    add_filter( ‘dpw_email_message’, ‘cleo_dpw_plaintext_message’, 10, 2 );
    function cleo_dpw_plaintext_message( $template, $new_message ) {
    return $new_message;
    }
    `

    Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    Thanks @dwenaus. Since I’m going to change this in my local copy, what’s the best way to send the changes for you to integrate in the official version?

    Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    Thanks for your help @dwenaus — I ran more tests, and with your help, I figured out what’s wrong:

    1. You’re right: you must pass $subject, and you must declare 4 as the number of vars.

    2. The subject filter created currently only works for digests, and not for “regular” emails.
    Hacking the code and adding `apply_filters( ‘ass_digest_subject’…` call to other points in the code (bp-activity-subscription-functions.php, line 41, 120, 243, 1059) fixes the problem. Design-wise, I’m not sure if we should use a different filter or rename the one just created (as it’s named ‘ass_digest_subject’) and pass a new parameter telling if it’s digest or regular email…

    What do you think?

    Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    Thanks @boonebgorges but unfortunately moving it to bp-custom.php didn’t help in this case. Any other ideas?

    Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    Thanks @dwenaus! Just tested and it’s working fine now!

    Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    I am trying to make this work, but I must be missing something very obvious (as I’m a total newbie in using filters). Here it is (code in `functions.php`):

    `
    function cleo_ass_digest_subject( $blogname, $title, $type ) {
    return “[$blogname] $title”;
    }
    add_filter( ‘ass_digest_subject’, ‘cleo_ass_digest_subject’, 10, 3 );
    `

    Any help is appreciated!

    Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    Sorry, just noticed that this topic I created is a dupe. You may delete it (didn’t find an option to do it myself).

    http://buddypress.org/community/groups/buddypress-topic-mover/forum/topic/move-dropdown-not-showing-all-groups/

    Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    That’s fair enough… I agree a filter is the ideal solution — and passing blogname and subject as parameters make it even better. Thanks guys!

    Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    Thanks Boone, you rock! :)

    I’m also interested in this. Since people often create forum topics in the wrong groups, it’s not usual to have to move them around (using @dwenaus Topic Mover plugin). Moving the topic breaks links to it (in notification emails, activity stream, etc.)

    Any suggestions on how to change the slug or how to somehow avoid this problem of broken links for moved forum topics?

    Same problem here: legitimate users registering and being marked automatically as spammers.
    I am running on WP3.1 with a single main blog. Any help is appreciated!

    @aljuk: One thing that I did that might be of interest: only update the “active x ago” indicator when the user generates an activity that gets logged publicly (i.e. goes to the activity stream)

    Like this:

    `
    remove_action( ‘wp_head’, ‘bp_core_record_activity’ );
    add_action( ‘bp_activity_add’, ‘bp_core_record_activity’ );
    `

    I am experiencing the same problem on BP 1.2.8 and WP 3.1.
    Opened a ticket for it: http://trac.buddypress.org/ticket/3125

    Hi Paul,

    Thanks for the response! Actually, the removal of `wptexturize` is mentioned just so you have clear repro steps (without the need of installing other plugins).

    What concerns me regarding this bug is that the functionality worked on 2.1, so the bug was introduced on 2.2 and 2.2.1.

    I already created a local patch (I’m basically using the old welcome-pack-admin.php, from 2.1), but I figured you might want to take a look.

    Best!

    Ironically, it seems Buddypress.org filtered some important chars in my comment… (maybe I should have use the backticks…)

    In the expected/actual results, I meant [double quote] (expected result) and [backslash]+[double quote] (actual).

    Hey @21cdb, did you have any luck with this issue of resizing avatars? I’m also looking for a solution to the same issue.

    Thanks!

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