Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • neo-tronic
    Participant

    @neo-tronic

    You’re welcome… 🙂


    neo-tronic
    Participant

    @neo-tronic

    Hi,

    i have found a plugin, that will allow this for register and change the username to lowercase letters.

    Here, at register, buddy press will don’t trow an error – it accept uppercase letters and spaces…

    you can find the plugin here: https://code.google.com/p/l10n-ru/downloads/detail?name=allow-capital-letters-in-username.0.3.zip&can=2&q


    neo-tronic
    Participant

    @neo-tronic

    is there another way to disable the email notifications? this doesn’t work for me… 🙁

    can anyone help please?


    neo-tronic
    Participant

    @neo-tronic

    Hi @prometheus-fire ,

    Thanks for your reply. But i don’t get this to work with my site. My php-skills are btw not very good…

    But: i find a Solution. For blog-posts i use this:

      function bbg_record_my_custom_post_type_posts( $post_types ) {
          $post_types = array ('it_movies', 'it_video_games', 'it_preisalarm', 'post'); // Hier die Slugs der Custom Post Types eintragen, bei denen Erwähnungen im Beitrag selbst berücksichtigt werden
          return $post_types;
      }
      add_filter( 'bp_blogs_record_post_post_types', 'bbg_record_my_custom_post_type_posts' );

    And for comments i use this:

      function bbg_record_my_custom_post_type_comments( $post_types ) {
          $post_types = array ('it_movies', 'it_video_games', 'it_preisalarm', 'post');  // Hier die Slugs der Custom Post Types eintragen, bei denen Erwähnungen in den Kommentaren berücksichtigt werden
          return $post_types;
      }
      add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_my_custom_post_type_comments' );

    And it works, but without custom messages. Anyway – now it works and for the Future, i wait for the buddypress-update. 😉


    neo-tronic
    Participant

    @neo-tronic

    I should have updated this thread ages ago. Yes, I have long had custom post types showing up in my activity stream and it is pretty rock solid.

    I use this snippet (which I found someplace but don’t know where) and add it to bp-custom.php, which is a file you create in your plugins folder.

    http://pastebin.com/SEc32sPf

    The snippet is currently written for MarketPress products, however, you can use it to support any custom post type. Edit the four things below to modify for your custom post type.

    – Edit the function name to whatever you want, it just needs to be unique,
    – Line 19 to be the the custom post type you want to use;
    – Line 28 to reflect the activity record text you want,
    – Line 62 to reflect the name of the function you created for your CPT

    I’m currently using about 7 different edits of it to support that many different CPTs in the activity stream and it works great. Yes, it works in BP 1.7

    I’ve added this to my bp-custom.php file and get an error on the following Sektion. Can anyone help please? ( @prometheus-fire ? )

    			bp_blogs_record_activity( array(
    				'user_id' => (int)$post->post_author,
    				'action' => apply_filters( 'bp_blogs_activity_new_post_action', $activity_action, &$post, $post_permalink ),
    				'content' => apply_filters( 'bp_blogs_activity_new_post_content', $activity_content, &$post, $post_permalink ),
    				'primary_link' => apply_filters( 'bp_blogs_activity_new_post_primary_link', $post_permalink, $post_id ),
    				'type' => 'new_blog_post',
    				'item_id' => $blog_id,
    				'secondary_item_id' => $post_id,
    				'recorded_time' => $post->post_modified_gmt

    Here the error message: Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /homepages/39/d415915588/htdocs/wp-content/plugins/bp-custom.php on line 35

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar