Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1346427
    Schw_ede
    Participant

    Hello,

    i have the issue that the anchor links not working properly with x and bbpress. I tested it with the twentysixteen theme and its working there like expected.

    What i have noticed is: It is only not working with topics more than one page, so the link is not constructed right.

    How it generates the link
    https://eagle-six.com/gruppen/administration/forum/topic/agenda-aktuell/#post-1115

    How it should be
    https://eagle-six.com/gruppen/administration/forum/topic/agenda-aktuell/page2/#post-1115

    Thanks

    #1346547
    Rupok
    Member

    Hi there,

    Thanks for writing in! Would you clarify what you are using as button link? If you have placed just #post-1115 then it should work regardless the page. Let us know where is the button.

    Cheers!

    #1346632
    Schw_ede
    Participant

    I just use the normal Submit button from bbpress (See Screenshot). Even if it should work without the page number, it does not.

    Thanks

    #1346848
    Nico
    Moderator

    Hi There,

    In this case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1346939
    Schw_ede
    Participant
    This reply has been marked as private.
    #1347338
    Rad
    Moderator

    Hi there,

    Would you mind providing a video recording? There is nothing on your provided URLs. But it maybe related to permalinks, and X theme doesn’t have any feature that alters permalinks (except portfolio slug).

    Thanks.

    #1347421
    Schw_ede
    Participant
    This reply has been marked as private.
    #1348163
    Rad
    Moderator

    Hi there,

    I see it now, it doesn’t reload on the same page after saving. Would you mind providing your FTP login credentials as well? And how do I get to that test page? I’m only getting an empty page with this text “Wie schade! Es wurden keine Themen gefunden!”

    And your provided login credentials has no full capability as admin, I’m getting this “Du bist leider nicht berechtigt, Beiträge dieses Inhaltstyps zu bearbeiten.” when navigating in admni forum section.

    Thanks.

    #1348646
    Schw_ede
    Participant
    This reply has been marked as private.
    #1348647
    Schw_ede
    Participant

    Also i’ve changed the default language to english for the meantime. Hope that helps a bit

    #1349080
    Rad
    Moderator

    Hi there,

    Still weird, can I switch it to another theme? And please backup your site first, switching plugins on and off, and even the theme could reset some setting.

    This is the actual code from X theme’s reply form

    <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form x-bbp-general-form">
    
    		<form id="new-post" name="new-post" method="post" action="<?php the_permalink(); ?>">
    
    			<?php do_action( 'bbp_theme_before_reply_form' ); ?>

    The action is where it will be submitted and load the page. The the_permalink() is WordPress function and not from the theme.

    I changed and forced it to submit it like this

    <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form x-bbp-general-form">
    
    		<form id="new-post" name="new-post" method="post" action="https://eagle-six.com/gruppen/administration/forum/topic/agenda-aktuell/page/3/">
    
    			<?php do_action( 'bbp_theme_before_reply_form' ); ?>

    But still the same, what I noticed is the data is correctly submitted/posted to https://eagle-six.com/gruppen/administration/forum/topic/agenda-aktuell/page/3/, but it redirects it to https://eagle-six.com/gruppen/administration/forum/topic/agenda-aktuell/. Which means, redirect happens after successful submission and X theme has no redirect.

    I’d like to do further testing by testing the clean version of your site (no plugins), but you should backup your site first.

    Thanks!

    #1349092
    Schw_ede
    Participant

    ok, I’ve secured everything. You should be good to go 🙂
    Hope you will find something.

    Thanks, really appreciate your help

    #1349971
    Rad
    Moderator

    Hi there,

    Found it, it’s due to some filters. I went ahead and added this code to your child theme’s functions.php

    add_action('init', 'remove_some_filters', 999999);
    function remove_some_filters () {
    remove_filter( 'bbp_get_topic_reply_count',     'x_bbpress_filter_topic_reply_count' );
    remove_filter( 'bbp_get_topic_reply_count_int', 'x_bbpress_filter_topic_reply_count' );
    remove_filter( 'bbp_get_forum_reply_count',     'x_bbpress_filter_forum_reply_count' );
    remove_filter( 'bbp_get_forum_reply_count_int', 'x_bbpress_filter_forum_reply_count' );
    }

    I’ll forward this as a bug, but I’m not sure why these filters are affecting the redirect. They are just HTML outputs.

    Cheers!

    #1352150
    Schw_ede
    Participant

    sry for the late reply.

    Everything is working now how it should.
    THANK YOU SO MUCH!! you guys are awesome 🙂

    #1352275
    Rahul
    Moderator

    You’re most welcome and thanks for your kind words!

    Let us know if we can help with anything else.

  • <script> jQuery(function($){ $("#no-reply-1346427 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>