Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1 through 25 (of 32,421 total)
  • Author
    Search Results
  • #245380

    In reply to: Website Critical Error

    titice
    Participant

    I figured out my mistake. I installed the plugin, created a menu http://www.domain/forums, but did not create a page with the forum’s name and shortcode. Once, everything worked.
    Hope will help…

    #245352
    Robin W
    Moderator

    ok, so this on my test site with just bbpress and style pack, using admin and keymaster roles publishes fine

    <table>
    <tbody>
    <tr>
    <td>
    hello
    </td>
    </tr>
    </tbody>
    </table>

    do you still get a critical error with this combination, and if so I still need the exact error it produces

    #245302
    Robin W
    Moderator

    ok, so in the backend if I create a topic with a title of ‘test’ and this content

    <table>
    <tbody>
    <tr>
    <td>
    hello
    </td>
    </tr>
    </tbody>
    </table>

    Then it publishes all fine.

    Does that work for you, and if so, can you give me exact steps to recreate problem.

    Also able to edit that topic so changed hello to goodbye and it updated fine

    #245206

    In reply to: Page not created

    Robin W
    Moderator
    #245197

    THANK YOU! Such an easy fix. I unchecked theme support and everything is working! If it had been a snake it would have bit me! That’s what happens when you have spent 12 hours staring at code! LOL! Thanks @robin-w

    #245161

    Topic: Mentions in BBPress

    in forum Plugins
    Earl_D
    Participant

    Spent the better part of the day looking for a plug-in or code that supports mentions in BBPress topics and replies. I found lots of references to plugins that don’t work anymore and tried code that does work either.

    Does anyone have viable alternatives.
    Thanks

    scmsteve
    Participant

    Thanks @robin-w, that is perhaps more stable than modifying the plugin code directly.

    Robin W
    Moderator

    Until bbpress fixes this, the following code will correct

    add_filter ('bbp_blacklist_keys' , 'rew_disallowed_keys') ;
    
    function rew_disallowed_keys () {
    	$moderation = trim( get_option( 'disallowed_keys' ) );
    return $moderation ;
    }

    If you are using

    bbp style pack

    a new version incorporating this fix will be released shortly and the fix will automatically be applied – with an option in bbPress bug fixes tab to turn that off if you don’t want it, or are using you own code

    Robin W
    Moderator

    you are correct, and yes I had raised a ticket to fix that option when it was called blacklist_keys, but the wrong change was made

    I have raised a new ticket to add it to the list, but bbpress releases new version at quite long intervals. (I am not a bbpress author)

    In the meantime you can either leave your change in and make a note to refresh on new bbpress versions, or there are some hooks to skip moderation and maybe add a new version of the code – I’ll take a look at that soon

    scmsteve
    Participant

    We had a rash of spam coming into our form today and we were confused because even after adding keywords in to the “Disallowed Comment Keys” in WordPress we were still seeing posts making it through to the forums that contained words we put into that list.

    I think I found a bug in bbPress, and man, it must be rather longstanding… I found a post in the forum from about two years ago that talked about the reworking of the blacklist to using the disallow list [or that the name of the list had changed], and maybe this crept in at that time.

    Here is the code:

    bbpress/includes/common/functions.php:
    866 // Strict mode uses WordPress “blacklist” settings
    867 if ( true === $strict ) {
    868 $hook_name = ‘blacklist’;
    869 $option_name = ‘disallow_keys’;

    In actuality, the key name in the options table is ‘disallowed_keys’.

    I changed the code on our site and it seems to have stopped the flood. Would you take a look and see if I am correct about this? If not, please let me know and I will revert our copy and apologize for the false alarm. 🙂

    Thanks!
    Steve

    #245085

    In reply to: Delete spam users

    Robin W
    Moderator

    sql not my strong suit, but that code looks as though it does all that it needs to.

    #245051
    Ricsca2
    Participant

    I’m cleaning up an old abandoned forum…
    It has over 60,000 members but few are real users and have written posts.
    Is there a way to delete all users who have not written posts?
    Chatgpt wrote me this script and it seems to have worked but if anyone has another safer and tested method I prefer it.
    Thanks

    DELETE u, um
    FROM wp_users u
    LEFT JOIN wp_usermeta um ON u.ID = um.user_id
    LEFT JOIN wp_posts p ON u.ID = p.post_author AND p.post_type IN ('topic', 'reply')
    WHERE p.ID IS NULL;
    
    #244985
    Robin W
    Moderator

    that is because Kadence does it’s own

    you can take out kadence breadcrumbs using

    .kadence-breadcrumbs {
    	display: none !important;
    }

    or the bbpress breadcrumbs using

    #bbpress-forums .bbp-breadcrumb {
    	display: none !important;
    }

    Choice is yours !!

    #244979
    Robin W
    Moderator

    that should have worked, but never mind, try this

    go to

    dashboard>settings>bbp style pack>Custom CSS

    and add this

    #comments {
    	display: none !important;
    }
    #244978
    Robin W
    Moderator

    it could be one of a few dozen reasons 🙂

    At the moment your site is downloading 2 x bbpress.min.css to the browser together with one bbpress.css, so without soending a lot if time, it is hard to see what changes are in which.

    Can you take out/deactivate your additional plugin and the custom css and then install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Custom CSS

    and put the

    #bbpress-forums {
    	width: 85% !important;
    	margin: 0 auto !important;
    }

    in there.

    It it does not work, LEAVE that change active, and I may be able to see through the browser what is happening in the background

    franciscorodrig70
    Participant

    Hello, Robin, thank for your reply
    I am sorry to tell you that it doesn’t work
    I have done two things:

    1)I have put your code in the custom CSS

    2)I have done a plugin. I have copied the CSS file of bbPress iinto this plugin and, afterwards, have modified the next rows:
    #bbpress-forums {
    /*
    background: transparent;
    clear: both;
    */
    background-color: yellow;
    width: 85% !important;
    margin: 0 auto !important;
    /*
    margin-bottom: 20px;

    margin-bottom: 2px;
    overflow: hidden;
    font-size: 12px;
    line-height: 18px;
    */

    Please, tell what I am doing wrong

    #244962
    Robin W
    Moderator

    upgrade to the latest version of bbp style pack

    dashboard>updates and select bbp style pack and update

    then go to

    dashboard>settings>bbp style pack>Custom CSS

    and add this

    .bsp-mark-all {
    display : none ; 
    }
    alm1
    Participant

    Wordpress: 6.8.1
    bbPress: 2.6.13.

    shortcode on my Forum page:
    [bbp-single-forum id=846]

    website: https://www.pcrnmra.net/redwood/
    Forum page R.E.D. “Crew Lounge”

    I would like to remove the “POST COMMENT” section on my Forum page (R.E.D. “Crew Lounge”).

    In my Settings/Discussions page, I made sure that ALL of the boxes there are unchecked.

    Is there a way to remove the “POST COMMENT”? section?

    TIA

    #244956
    alm1
    Participant

    Wordpress: 6.8.1
    bbPress: 2.6.13.

    shortcode on my Forum page:
    [bbp-single-forum id=846]

    website: https://www.pcrnmra.net/redwood/
    Forum page R.E.D. “Crew Lounge”

    Is it possible to remove the “MARK ALL TOPICS AS READ” button?

    TIA

    Robin W
    Moderator

    This is working – the topic index shortcode you are using will show all tooics and then allow new topics with a forum select dropdown.

    You are seeing that first.

    After that you are seeing another ‘new topic’ box that says
    Create New Topic in “R.E.D. Crew Lounge”

    then you are also seeing and comment box.

    so I would suggest you replace

    [bbp-topic-index]
    [bbp-topic-form forum_id=846]

    with

    [bbp-single-forum id=846]

    That will then display the topics and only a reply to that forum

    I would also turn off comments, you do that by

    dashboard>settings>discussion>default post settings> and turn off all 3

    That will stop it for new pages, then you need to go into

    dashboard>pages>edit pages and the R.E.D. “Crew Lounge” page and find comments and turn it off

    alm1
    Participant

    Wordpress: 6.8.1
    bbPress: 2.6.13.

    shortcodes on my Forum page:
    [bbp-topic-index]
    [bbp-topic-form forum_id=846]

    website: https://www.pcrnmra.net/redwood/
    Forum page R.E.D. “Crew Lounge”

    My site has only one forum (id=846), but when I add the shortcode
    [bbp-topic-form forum_id=846], the dropdown for Forum: still defaults to –No forum –.

    I researched this and found that the shortcode
    [bbp-topic-form forum_id=846] is supposed to fix this, but it is not working for me.

    TIA

    Robin W
    Moderator

    Put this in the custom css/additional css part of your theme

    #bbpress-forums {
    	width: 85% !important;
    	margin: 0 auto !important;
    }

    you can amend the 85% to get the width you want

    ariajames
    Participant

    Hello everyone,

    I’m currently setting up a forum on my WordPress site using the bbPress plugin. While the basic setup was straightforward, I’m now looking to customize the forum’s layout and enhance its functionality to better suit the needs of my community. Specifically, I’m interested in adjusting the forum layout to match my site’s theme, implementing user-friendly navigation menus, and adding features like user badges or ranks. I’ve come across various tutorials, but I’m seeking comprehensive resources or guides that delve into these customization aspects in more detail. Additionally, if any engineering-focused projects or examples demonstrate advanced bbPress customizations, I’d love to explore them. Any recommendations or insights would be greatly appreciated!
    Reference Links:

    Step by step guide to setting up a bbPress forum – Part 1


    https://www.wpexplorer.com/beginners-guide-buddypress-bbpress/
    https://www.greengeeks.com/tutorials/create-forum-wordpress-bbpress/
    https://www.theengineeringprojects.com/2022/11/simple-home-diy-projects-for-embedded-hobbyists.html

    #244792
    Robin W
    Moderator

    bbpress uses custom post types, so uses their status in the posts table (not post meta) to determine whether to display.

    So on trashing a topic, I would expect the post_status on the posts table to be changed to trash.

    To enable you to ‘untrash’ a topic (say if it was a mistake) in tbe post_meta table, I would then expect to see

    _bbp_pre_trashed_replies	a:4:{i:0;i:33965;i:1;i:33963;i:2;i:33959;i:3;i:33956;}
    _wp_trash_meta_status	publish
    _wp_trash_meta_time	1748443956

    The trash status being the status BEFORE it was trashed, so that it can go back to this if you made a mistake.

    I am not sure what the other statuses are doing there, if you have been trashing and untrashing, other stuff might happen, and other bbpress plugins might be adding things.

    I’d suggest you try creating a test topic and then trashing it, and seeing what happens, so that you can see a ‘clean’ set of entries.

    If you still have problems, then it could be a theme or plugin issue, so I’d try creating and trashing a topic with the below happening.

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    #244740
    angeljs
    Participant

    When I add the recent replies widget to my theme, I see the following code where the links should be:

    <span class="dashicons dashicons-visibility wvrbbp-fav-sub" style="font-size:80%;vertical-align:middle;"></span>

Viewing 25 results - 1 through 25 (of 32,421 total)
Skip to toolbar