blg002 (@blg002)

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • In reply to: Custom topic list

    @blg002

    Participant

    “Hot” would probably actually be “Relplies”

    @blg002

    Participant

    @thesnowjunkies @johnjamesjacoby @undyingearth @olivier-lettinga So here’s what I did, it looks to work but I haven’t fully put it through its paces. I’m also kind of a n00b with this PHP WordPress thing so hopefully this isn’t a terrible idea. I basically used an add filter on bbp_get_time_since and did a regex string replacement on the output removing anything from the first comma up to ‘ago’.

    function short_freshness_time( $output, $older_date, $newer_date ) {
      $output = preg_replace( '/, .*[^ago]/', ' ', $output );
      return $output;
    }
    add_filter( 'bbp_get_time_since', 'short_freshness_time' );
    

    @blg002

    Participant

    If anyone cares the proper solution is just to copy loop-single-topic.php into your themes dir and edit till your hearts content. The only semi-tricky thing is that it must be in a /bbpress/ dir within your theme. For example:

    wp-content/themes/yourtheme/bbpress/loop-single-topic.php

    In reply to: Change avatar size

    @blg002

    Participant

    @tecca Awesome! Duh! I had tried that but without the /bbpress/ dir. Thanks for the help.

    In reply to: Add forum roles

    @blg002

    Participant

    @janhoos i just added it to functions.php

    However, this didn’t end of completely working for me. I would save and the role would not be saved, i believe.

    In reply to: Add forum roles

    @blg002

    Participant

    For posterities sake, i think i figured this out thanks to this article. I was close just had few things I didn’t know about, hopefully I’m not doing anything too terrible.

    
    function add_custom_role( $bbp_roles ) {
      $bbp_roles['my_custom_role'] = array( 
        'name' => 'My Custom User',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
      );
    
      return $bbp_roles;
    }   
    add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
    
    In reply to: Add forum roles

    @blg002

    Participant

    wondering if anyone has a quick snippet of code that answers @anallabres initial question.

    @blg002

    Participant

    I would be very interested if you found a solution.

    In reply to: Hidden

    @blg002

    Participant

    bump?

    @blg002

    Participant

    note: this is only after a reply, not on initial topic creation

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