Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1 through 25 (of 32,399 total)
  • Author
    Search Results
  • 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>

    #244628
    andiganter
    Participant

    After extensive testing and numerous attempts, I finally found the solution (thanks to ChatGPT). I would like to post it here because other users may encounter the same problem and appreciate a quick solution, and so that the effort is at least worthwhile for others. Here is the CSS code, which simply needs to be inserted at the bottom of the Customizer under “Custom CSS”:

    .entry-title {
      white-space: normal !important;
      word-break: break-word !important;
      overflow-wrap: break-word !important;
      hyphens: auto !important;
      line-height: 1.2 !important;
      max-width: 100% !important;
      text-align: center !important;
    }
    #244524
    Robin W
    Moderator

    it’s not really anyone’s ‘fault’ but bbpress would need to make the change to their code, so yes bbpress is ‘causing it’.

    #244499
    kampot888
    Participant

    I have the same problem.

    Buddyboss is slow to update and has old code, so I want to switch back to BBPRESS.

    Buddyboss doesn’t want to export, so they don’t provide a migration tool. For that reason, I don’t recommend it.

    #244427
    downybirch
    Participant

    I’d need to make a login for you, since only logged in users can see the private forums…

    Can you make up a dummy email (or pm me a working email) and I’ll set that up?

    For the record, this is the page giving the problem:

    https://scottishpolicy.org/forums/forum/constitution/

    It’s all in the process of development just now, so there’s not content as yet…

    I’d send a screenshot, but I don’t actually think that’d be a great deal of help.

    #244426
    downybirch
    Participant

    I’d need to make a login for you, since only logged in users can see the private forums…

    Can you make up a dummy email (or pm me a working email) and I’ll set that up?

    For the record, this is the page giving the problem:

    https://scottishpolicy.org/forums/forum/constitution/

    It’s all in the process of development just now, so there’s not content as yet…

    #244420
    downybirch
    Participant

    I’m running WP 6.8.1 wih bbp 2.6.13 and bbp style pack 6.3.0 on the Twenty Twenty-Four theme.

    When I view my forum as a logged in user, I get this at the head of the page:

    Private: Private: Constitution

    Is there a way to suppress this?

    It’s probably me… 🙂

    #244419
    downybirch
    Participant

    I’m running WP 6.8.1 wih bbp 2.6.13 and bbp style pack 6.3.0 on the Twenty Twenty-Four theme.

    When I view my forum as a logged in user, I see this under the Last Activity section:

    Last Activity: <a href="https://scottishpolicy.org/forums/topic/right-to-privacy/" title="Right to privacy">1 day, 9 hours ago</a>

    I’ve used Inspector to look at the code in the browser (Firefox and Brave – both are affected) and I can’t spot anything obvious.

    Is this a known issue?

    Is there a fix?

    #244353
    Robin W
    Moderator

    Changing this is not within the current plugins capability.

    I suspect that with the right code it could be done, but I have no idea how to do it.

    I’d suggest you hire a programmer

    #244349
    elsoar
    Participant

    Thank you for your help, sir.

    Unfortunately, people don’t look, but search engines do.

    Link structuring is extremely important.

    I removed the word “Forums” from the link
    Prefix all forum content with the Forum Root slug (Recommended)

    , but I don’t know how to add the forum name instead of the word “Topic.”

    #244347
    elsoar
    Participant

    Hello..

    Yes, I want Change my bbPress permalinks in my forum,

    from:

    Error

    to:
    https://bbpress.org/troubleshooting/error-5/

    So, I want:
    Delete: forums
    Delete: topic
    Add: ForumName “not forums btw”

    Can I do that plz?

    E.T.A.
    Why?
    Because my forum will be about cars, I’ll want to include the car brand in the permanent link.

    For example:

    https://cars.com/bmw/why-my-bmw-app-is-not-working

    Robin W
    Moderator

    You can add it to the menu

    Install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>login

    or you can use the
    [bbp-login]
    shortcode which will display a clickable link

    #244316

    Topic: Error

    in forum Installation
    Preeti Razdan
    Participant

    I just installed bbpress plug in. Why does my forum page show this :

    \

         

    Sculley
    Participant

    Hi there,

    We’re using bbPress with the Simple Membership plugin, and the site is built with the GeneratePress theme. Here’s the staging site for reference: https://iu9d4mv2wm-staging.onrocket.site/forums/

    Login is handled through Simple Membership, but profile behavior is different than the typical bbPress/WordPress setup.

    When a member creates a topic or reply, they can click on their avatar or name to access their forum profile — which includes favorites, subscriptions, activity, etc. However, if a user hasn’t posted yet, there’s no way for them to access their profile, because their avatar/name doesn’t appear anywhere.

    Is there a shortcode, function, or recommended method to add a “View My Profile” link at the top of the forums (or anywhere else), even if the user hasn’t posted?

    Thanks in advance for any guidance!

    #244266
    Chefranov
    Participant

    I tried, I installed bbPress, Block everywhere and Gutenberg 20.6.0 but it doesn’t work. If I don’t install Gutenberg plugin I get critical error on the site. If I install 20.6.0 then I don’t see reply window and see js errors:

    Store "core/interface" is already registered.
    
    Uncaught Error: You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.
    at t (implementation.ts:101:9)
    at 772 (index.min.js?ver=1.0.0:13:2251)
    at o (index.min.js?ver=1.0.0:34:44729)
    at index.min.js?ver=1.0.0:34:45918
    at o.O (index.min.js?ver=1.0.0:34:44999)
    at index.min.js?ver=1.0.0:34:45931
    at index.min.js?ver=1.0.0:34:45937

    #244247
    DragoWeb
    Participant

    Same notice here, with v2.6.13. So I patched includes/extend/buddypress/loader.php

    line 42 : esc_html__( 'Forums', 'bbpress' ),
    to : function_exists('esc_html__') && did_action('init') ? esc_html__( 'Forums', 'bbpress' ) : 'Forums',

    and line 119 : 'search_string' => esc_html__( 'Search Forums...', 'bbpress' ),
    to : 'search_string' => did_action('init') ? esc_html__( 'Search Forums...', 'bbpress' ) : 'Search Forums...',

    and it’s gone.

    I had several similar notices from different plugins, and I suspect WPML to cause this issue. I can’t deavtivate it because last time I did it was a complete mess 😅

    I don’t have much time to go further this now, but I saw this topic so I guess Bbpress is not causing it.

    #244200

    In reply to: Memory Leak?

    Chefranov
    Participant

    I tried this hack

    add_action('all', function($tag) {
        static $count = 0;
        if (strpos($tag, 'acf') !== false && $count++ > 300) {
            error_log('ACF hook overflow: ' . $tag);
            exit;
        }
    });

    and it response:

    [17-Apr-2025 10:10:24 UTC] ACF hook overflow: gettext_acf

    #244160

    Topic: Memory Leak?

    in forum Troubleshooting
    Chefranov
    Participant

    When I open Dashboard → Replies → Add new reply I get 500 error and this in php logs:

    [16-Apr-2025 13:27:10 UTC] PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in /Users/chefranov/Sites/mysite.loc/wp-includes/class-wp-object-cache.php on line 363
    [16-Apr-2025 13:27:10 UTC] PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in /Users/chefranov/Sites/mysite.loc/wp-includes/class-wp-fatal-error-handler.php on line 37
    #244114
    Robin W
    Moderator

    On the users, bbpress hooks to user_id’s, so in the database you would have a topic/reply author just held in the database as for instance 27, and then bbpress looks up the nicename for that in the user table, so no user in the table, then no name to display.

    On import with no ‘import users’ if the username does not exist it puts it as 0, and then it is displayed as ‘anonymous’

    So whist everything is possible if you can write code or know someone who can, there is no easy way to import usernames, as you would need to amend both the import code and the username display code.

    I have no experience of phpBB, so cannot comment on the other aspects. The importer was written some time ago by someone who no longer is actively involved in bbpress.

    #244084
    yosmc
    Participant

    Hi all,

    I’ve been doing a test run today to import my old phpBB board to bbpress, and it worked surprisingly well (as in: the whole process finished without hanging).

    In the end, though, I do have a number of problems, and I was wondering if anyone doing a similar import was able to solve them.

    – The old board has thousands of registered users (many of them spammers :/ ), and I didn’t want to clutter my WordPress install with all those accounts, especially since it’s a multisite install and I’m mainly migrating the board for archiving purposes. So I didn’t check the “import user accounts” box, but now all user names are just “Anonymous”. Any way to migrate the user names without the accounts?

    – It seems like quoted posts are broken, as the “bbcode_quote” tag isn’t applied where it should be.

    – Smilies aren’t imported properly. The relative path to the smilies is lost, and when there’s more than one smiley in a row, only the first one has an image tag.

    – [img] tags aren’t being properly converted either. Or rather the conversion seems to work ok, but after the actual link, the [img] code, which bbpress can’t read, is retained for some reason.

    – Like I said, overall conversion seemed to work well, but cluttered the error log with hundreds of these messages:

    PHP Warning: Trying to access array offset on value of type bool in /wp-content/plugins/bbpress/includes/admin/parser.php on line 1289

    Anything to worry about?

    – I understand that no attachments are imported by default, but maybe someone found a workaround?

    Thanks!

    #244067
    Robin W
    Moderator

    thanks for that – I think I understand 🙂

    so the function that is used to display replies is is held in

    \bbpress\includes\replies\template.php line 576`

    function bbp_get_reply_content( $reply_id = 0 ) {
    		$reply_id = bbp_get_reply_id( $reply_id );
    
    		// Check if password is required
    		if ( post_password_required( $reply_id ) ) {
    			return get_the_password_form();
    		}
    
    		$content = get_post_field( 'post_content', $reply_id );
    
    		// Filter & return
    		return apply_filters( 'bbp_get_reply_content', $content, $reply_id );
    	}

    so

    add_filter( 'bbp_get_reply_content', 'my_function', 10 , 2) ;
    
    function my_function ($content, $reply_id ){
    	//your code here 
    
    }
    #244065
    annually2523
    Participant

    A user posts a topic. That topic now has a couple of replies. We have implemented a standard of referencing other replies without quoting by simply using a hashtag and a number. Like ‘#5’ would be a reply to reply number 5 in the topic.

    We currently have a plugin (that I did not write but have access to) that upon ‘commit’ or save will analyse the content of the reply and convert all #[NUMBER] strings into anchor references to other replies before content is saved to db.

    This is just not very practical because when that same reply is edited the #[NUMBER] has now been wrapped in a tag to make it a link making editing the # part very annoying if that’s what users want to do.

    Instead we would like to make the analyses and the conversion of the reply when the readout from db happens. Or at least before any text/replies are shown. That means the code has to run on every reply every time it needs to be shown, but the content save is as the user saved it.

    Does that make any sense?

    #244064
    Robin W
    Moderator

    can you explain a bit more about what you are wishing to achieve.

    eg user posts a topic/reply/either? and then before being published
    automatic text is added – then same text each time
    Someone looks at the posts and does a manual edit
    some code looks for x and changes it to y
    nothing in the database is changed, but before any display soemthing happens?

    etc.

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