kdelsimone (@kdelsimone)

Forum Replies Created

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

  • kdelsimone
    Participant

    @kdelsimone

    @blogxkomo I created a custom.php file and dropped the code in there. Works like a charm. You could also try creating a custom plugin or using @jrevillini ‘s solution above.


    kdelsimone
    Participant

    @kdelsimone

    @jrevillini Perfect! Thanks again!!


    kdelsimone
    Participant

    @kdelsimone

    @jrevillini So here’s something curious: I dropped the code into a bp-custom.php file and it works great. However now users can’t edit their posts. When they click EDIT on a post, they’re simply redirected back to the post and not the /edit page. When I remove the code, the redirect to the /edit page works. Have you observed the same?


    kdelsimone
    Participant

    @kdelsimone

    @jrevillini Bless you!! This is exactly what I was looking for, and the BONUS smooth scroll is a bonus indeed–Thank you!!!


    kdelsimone
    Participant

    @kdelsimone

    Try adding this to your custom css:

    #bbpress-forums ul.bbp-lead-topic li.bbp-body div.topic {
    background-color: #ffe;
    border: 1px solid #dd6;
    }

    and this to your functions.php:

    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }
    
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );

    kdelsimone
    Participant

    @kdelsimone

    Thanks, @robin-w & @brent0r, for your responses.

    Using search, I get exactly as @robin-w describes, which makes sense and is not a problem (for me, at least). The problem I am encountering is that third-party themes and plugins that use the bbpress reply post type redirect to the single reply post as opposed to the post in the topic thread. That is, they go to the reply/number ULR instead of the topic_title/#post-number URL. I’m aware, as @brent0r suggests, that clicking on the post #number in the top right takes the user to the topic_title/#post-number, but unfortunately this isn’t intuitive for my users and it is negatively impacting engagement in my community.

    I notice that the bbpress Recent Replies widget redirects users to /#post-number, which is what I am trying to accomplish. I just can’t seem to figure out where that slug is defined, as it is apparently not the same as the bbpress reply post type. I’m assuming I could modify the plugin’s files to behave similarly if I could figure out where to tell it to pull the ULR from.

    I wonder, too, if perhaps I should have started a separate thread. I thought the issue I had was the same as @angelorocha, the OP, but perhaps we’re encountering different problems…? My apologies if I’ve hijacked the thread with a different issue. I’m hoping the solution(s) will be the same…

    Thanks again for your help. I appreciate this community.


    kdelsimone
    Participant

    @kdelsimone

    OK, still trying to figure this one out…

    From what I can tell, the problem we are encountering is that the URL is defined as:

    https://site.com/forums/reply/12345

    when it needs to be:

    https://site.com/forums/topic/[topic_title]/#post-12345

    In the first case, the redirect goes to the single reply post. In the second, the redirect goes to the post within the topic thread, which is what I believe we are each trying to achieve here.

    Also, it seems to work correctly in the bbpress Recent Replies widget — meaning the widget utilizes the URL in the second case (above) and redirects correctly to the parent forum/topic. I’ve looked through the widgets.php file but can’t figure out where it’s pulling the reply_url from and why it’s different from the reply post permalink.

    Does anyone know where the permalinks or URLs for the reply custom post type are defined in the bbpress plugin files? Perhaps that could be a place to start…

    And, any suggestions or assistance would be appreciated!


    kdelsimone
    Participant

    @kdelsimone

    Same problem here. I’m looking for a way to redirect the reply post (for me it’s listed via a widget) to the topic where the reply was created. Currently it redirects to another page showing only the reply post, not to the topic page where the reply was originally created. Any suggestions?

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