Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter venomxnl

    (@venomxnl)

    After spending (wasting) WAAYY to many hours on finding a way to properly implement a clean (and dynamic) ‘fix’ for this issue, I decided to give up and do it (quite a bit) more dirty like this:


    add_filter('template_include', 'Custom_bbpress_SearchResults');

    function Custom_bbpress_SearchResults($template) {
    if (bbp_is_search()) {
    $custom_template = get_stylesheet_directory() . '/bbpress/custom_search_results_template.php';

    if (file_exists($custom_template)) {
    return $custom_template;
    }

    }
    return $template;
    }

    NOTE: I simplified the code above a bit for readability because my own uses different functions tied to my own theme and sites functions.

    Where I created a template based on the main template of the theme, and then included the search results php from bbpress.

    And in that template i renamed some classes to I could ‘inject’ my own CSS from/via the customizer.

    I know that this (by far) isn’t perfect or pretty, but after wasting about three to four days on this issue ?? i had to move on to finish it. At least it is now working on the front-end. And if a better solution, update or whatever ever comes out, i can easily revert back by out-commenting the code above, removing one file and some additional css lines.


    I hope you find a way to fix it with your amazing style pack, if not, it’s not your fault either to be honest ?? It’s bascially kadence messing up big time here for bbPress?????♀?. And if you did found a proper/cleaner solution already please let me know of course??.

    If you would like to resolve it in your plugin then feel free to leave this one open until you have done so, otherwise you can close it if you prefer to do so ??

    Thank you VERY much for your time and again plug-in, your effort is GREATLY appreciated

    Thread Starter venomxnl

    (@venomxnl)

    Update: Well ChatGPT wasn’t any help at all (considering that it after about two hours suddenly randomly told that it was just ‘making up’ function and filter hook names for kadence ??, while using ‘general assumptions’ in regards to wordpress development).

    It for example recommended to use something like:
    add_filter(‘kadence_sidebar_position’, function() { return ‘none’; // No sidebar for normal layout });

    I however did found dynamic CSS chunks in one of the kadence files which are used for the bbpress pages (where there wasn’t a section for the search results page indeed).
    Which can be found in: kadence/inc/components/bbpress/component.php

    However I haven’t figured out yet how to make kadence render the output of /forums/search
    the same style as either /forums or /forums/topic pages. Which is basically all it needs to do for me (obviously keeping the search page working, but the layout that is, but I figured you understood that part ??).

    Will update if I have found a solution of course, and please let me know if you need more info or details.

    Thread Starter venomxnl

    (@venomxnl)

    To confirm that it really isn’t my own kadence child theme (because it is quite large and complicated and thus could have caused an issue), I have briefly switched my website to the plain kadence theme. And indeed when enabling the sidebar for the blog archive, I get the exact same issue on the bbPress search results.

    And same goes for the header/cover image. It’s just a ‘light blue’ background block with white text on it. Can’t set the image.

    All I basically want it to do is to have a full page search like you’ve mentioned and to be able to make sure that the header image is the same as the one set for the forum archive (index) as set in the customize. Then the website is basically done.

    Thread Starter venomxnl

    (@venomxnl)

    Sure no problem:
    – I will go to the page itself while being logged-in as admin, so that it shows the (black) wordpress toolbar at the top

    – There I click on Customize
    – Then Posts/Pages Layout
    – Then Archive Layout
    – Then when scrolling down a bit you should see: Archive layout
    There I have set the option Right Side bar

    Underneath that option you can choose which side bar to use (the archive one which is Sidebar 2, and the WooCoomerce one (Sidebar 1).

    I have set it to Sidebar 2

    HOWEVER here comes the weird part: When I have the archive layout set to Right Sidebar and to use Sidebar 2 (for the blog archive that is)

    Then it shows the Sidebar 1 on the forum side results, but the sidebar on the forum search results will dissapear when I turn off the sidebar on the archive layout ?????♀?

    As you maybe can imagine I’m completely lost in where kadence is messing it up ??

    I even have spend the last two hours (and still am) using ChatGPT (something I usually never ever use) to see if i can get it to analyze the behaviour of Kadence to override the layout it’s forcing onto the bbpress search results page, but i’m kinda reaching mental insanity at this point haha ??

    Thread Starter venomxnl

    (@venomxnl)

    Well I just tried to use filters to ‘override’ bbp_get_search_results_url for example.

    Also tried to create actual pages to ‘override’ the dynamically created slug created by bbPress, and while this works for the page/slug Forums, this doesn’t have any effect if i would for for example create a child page for forums/search.

    The main solution I would basically need is either one of these two:
    1: Force kadence to use the same template as the forum index or the topic template (which can both be customized in the Customizer (editor)

    or 2: A way to make bbPress go to a different search page for the forum search results page (for example: mydomain.com/forumsearch (instead of mydomain.com/forum/search

    And indeed like you mentioned; while doing so in my own functions/theme without having to alter any of the core files (either in Kadence or bbPress).

    I do definitely realize this is not a bbPress style pack issue in itself, but considering your plugin is the only one which works this amazingly well, and even fixed most of the issues with kadence & bbpres, I figured you might be the best hope for my sanity with this issue ??

    I truly appreciate that you took the time to reply, and if i would for example need to make a schreenshot or so to show the problem for example, just let me know.

    I will recap the problem in short once more (just in case):
    Currently the search results page of bbpress shows a sidebar which I can’t turn off without also turning off the sidebar of my blog archive, and it refuses to change the page header image/cover image which is part of Kadence. All other pages work perfectly fine after activating the Kadence Theme Fix in your plugin ??

    Thread Starter venomxnl

    (@venomxnl)

    Small update: I tried to find a method to ‘overrule’ the bbpress search url (the page it’s go’s to for the search query post to display the results), but it seems like it (or I’m missing something) that I would have to edit the core files of bbpress to get it to work effectively. Which is obviously a terrible idea.

    Thread Starter venomxnl

    (@venomxnl)

    On second thought: Might it even be possible to disable storing the IP (also the hash indeed) as well as the pollip_host completly?

    I’ve just done some tests, and it works perfectly fine when only the Username is used for voting. Plus it helps greatly with keeping the database smaller in size for those where it matters ??

    I’ve already notice someone else also requesting about the fact if purging the tables (from IP and host) would be possible due to it’s size. So the ability to turn these two off from storing in the database altogether would be a great addition ??

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