Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,526 through 2,550 (of 32,508 total)
  • Author
    Search Results
  • #213388
    Robin W
    Moderator

    GDPR does not require the user to be able to do this, merely that the site admins can do it if demanded.

    I’m sure that someone could code this, but nothing I know of

    choiyugi67
    Participant

    Hello,

    I have 0 knowledge about making website and such… but please help!
    I want to make it like this –
    1. Forum name clicked
    2. Goes to Single Forum Layout page with corresponding forum ID (Edited with Elementor).
    3. When posted Topic is clicked, It’ll show the post, reply threads and reply form.

    I’m using Elementor’s bbpress widget and has bbp Style Pack (My WordPress theme is twenty-ninteen).

    First, I made a page with Forum Index, and created a Forum. I created a Forum from WordPress dashboard “Forum”.

    Second, When I click this Title of the Forum, it takes me to a WordPress Theme without “Edit with Elementor” gives me Content missing error. I’m having a trouble with this too, it seems like I have to add: the_content (); code or <?php the_content(); ?> on somewhere in the Theme Edit on dashboard. None of the Google search matched what I see on my css and php code list.

    Third, I created 3 different sub-pages to Forum Index page to put in Elementor’s Bbpress widget, changed layout to Single Forum and input ID of the forum that I found from the Dashboard’s Forum section.

    Problem is here, I can’t connect when the Forum name is clicked, direct to the Single Forum page.

    I noticed that Breadcrumb of the Single Forum page is Home > Forums > Forum > Videos.
    “Home” is Home, I don’t have a page name “Forums”-where is this coming from?
    The name of the page with Bbpress widget (Forum Index) is “Forum”.

    From seeing this error, It seems like I have to edit directly onto the Dashboard’s Forums section. but with these Forum page I don’t have access to Edit with Elementor.

    I appreciate anyone’s suggestions and help! If you need any more information or need to clarify anything, please let me know.

    Thank you.

    #213364

    In reply to: Adding style to forum

    Robin W
    Moderator

    the bbpress displays are built using templates.

    I’d start with looking at this

    bbp style pack

    which will let you do many things.

    to put your stats at the bottom, you’d need to look at creating a page for your forums and using

    
    [bbp-forum-index]

    then you can use gutenburg blocks or whatever editor you have to add the stats widget at the bottom

    #213359
    Robin W
    Moderator

    ok, I don’t think it is a css problem.

    cab you tell me which method you are using in no. 8 in here

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

    #213353
    malinky
    Participant

    Yes I did, but after running the php code snipped, the replies page is blank. Sometimes I get a Server is not available message when going to replies, but not every time.

    #213350

    In reply to: Login URL

    Robin W
    Moderator

    given that you don’t understand code, then the best I can offer is to remove the bbpress login from the topic and reply forms.

    This can be done by installing

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Form and activate item 15

    #213345

    In reply to: Login URL

    Robin W
    Moderator

    sorry, bbpress uses the standard wordpress login api, so it is code if you want to do something different

    #213342

    In reply to: Login URL

    Mushlih Almubarak
    Participant

    Sorry, I don’t really understand code, is there another way? Or can you simplify your explanation?
    Thank you very much

    #213339
    Robin W
    Moderator

    hmm – I just added that code to my test site, and it works fine with 2.6.5

    #213338
    Oleksandr
    Participant

    I use the next code in functions.php

    add_filter('bbp_get_topic_post_type_supports', 'register_bbpress_topic_type_supports');
    function register_bbpress_topic_type_supports( $args ) {
    	$args[] = 'excerpt';
    	$args[] = 'thumbnail';
    	$args[] = 'custom-fields';
    	return $args ;
    }
    #213332
    Robin W
    Moderator

    ok I suspect you are talking about wordpress post custom fields.

    if so, bbpress has never natively supported these, so I suspect you have code or an additional plugin such as acf or a bbpress plugin that is doing this.

    #213326
    Robin W
    Moderator

    sorry neither ‘standard custom field’ or the image means anything to me – perhaps you could say whether this is code a plugin or where you are seeing this or what you are trying to do etc.

    #213322
    Robin W
    Moderator

    ok, can you start by saying what you mean by ‘custom field’ – is this some code, a plugin or what ?

    Oleksandr
    Participant

    Custom Field doesn’t work with bbpress 2.6 and above
    I use custom fields for bbpress topics.
    I tried to turn off all plugins and change the theme to default but always receive next javascript error in the console:

    load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4 POST https://test.3d-kstudio.com/wp-admin/admin-ajax.php 400
    send @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4
    ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4
    ajaxAdd @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9
    i.wpList.<computed> @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9
    (anonymous) @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9
    dispatch @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:3
    r.handle @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:3
    #213314
    bobwhallz
    Participant

    Hi
    I have a transparent header built with Astra theme and Elementor page builder. I am also using BuddyPress on my site.

    I would like to change all the bbpress forum pages header to a different background color, none white, so the header menu can display properly.

    What css codes should i use?
    Bbpre Version 2.6.5 on latest WordPress installation
    Thank you

    #213311

    In reply to: Login URL

    Robin W
    Moderator

    so what should the url be ?

    I’ll then give you some code

    #213283
    malinky
    Participant

    Thanks for this Robin but unfortunately it didn’t work.

    After I ran the code the message was…
    Topics fixed…
    Replies fixed…
    All done…
    Total topics:2530
    Topics with no post_parent:33
    Total replies: 19274
    Replies with no post_parent:19273

    I ran the code twice (removing it and following the same process again), but the result was the same.

    #213276
    Robin W
    Moderator

    ok, I’ve re-written a bit just in case

    can you

    BEFORE DLOING THIS backup your site or have the ability to go back to a previous version

    1.deactivate and delete the existing plugin
    2. download this plugin

    fix forum import post parent

    3. install and activate
    4. create a page called whatever you like, and put the shortcode
    [fix-import]
    in it
    5. view the page – you should be able to see how many topics have blank post_parent before running.
    6. If you are happy – run this.

    #213266
    malinky
    Participant

    I ran that but it didn’t fix the issue.

    Strangely, the Replies page in the admin says there are over 19,000 replies but only two are showing up now. The others are no longer visible.

    Is it possible to run the code again but just for the replies? Maybe it was a memory limit issue. I’ve just upped the max_memory_limit to 256M.

    #213263
    lonelydime
    Participant

    It’s been about 10 years since I’ve attempted anything WordPress or PHP for that matter, but while this works it feels like it’s going to break in an update.

    add_filter( 'bbp_default_styles', 'rew_dequeue_bbpress_css' );
    
    function rew_dequeue_bbpress_css ($defaults ){
    	fixed_bbp_enqueue_style("bbp-default", "css/bbpress.css", array(), bbp_get_version());
    	unset ($defaults['bbp-default']) ;
    	return $defaults ;
    }
    
    function fixed_bbp_enqueue_style( $handle = '', $file = '', $deps = array(), $ver = false, $media = 'all' ) {
            // Attempt to locate an enqueueable
            $located = bbp_locate_enqueueable( $file );
    	$located = str_replace('/bitnami/wordpress', '', $located);
    		
            // Enqueue if located
            if ( ! empty( $located ) ) {
    
                    // Make sure there is always a version
                    if ( empty( $ver ) ) {
                            $ver = bbp_get_version();
                    }
    
                    // Make path to file relative to site URL
                    $located = bbp_urlize_enqueueable( $located );
    
                    // Register the style
                    wp_register_style( $handle, $located, $deps, $ver, $media );
    
                    // Enqueue the style
                    wp_enqueue_style( $handle );
            }
    
            return $located;
    }

    From what I can tell your snippet does, it just clears out the default css object so the loop to bbp_enqueue_style skips including it and then I can inject my own function. The scripts function seem more complicated because there are many more includes than one file and they’re based on pages from what I can tell. Is what I’ve done what you were referring to?

    #213246
    Robin W
    Moderator

    ok, that should have worked for replies as well – let me take another look at the code

    #213228
    Robin W
    Moderator

    I think I might know the issue.

    can you

    1. backup your site or have the ability to go back to a previous version
    2. download this plugin

    Fix forum


    3. install and activate
    4. create a page called whatever you like, and put the shortcode
    [fix-topics]
    in it
    5. view the page, select ‘run’ and click submit

    your topics and replies should now be fixed.

    #213186
    Robin W
    Moderator

    you can dequeue from bbpress and then reload as you wish

    so for styles

    add_filter( 'bbp_default_styles', 'rew_dequeue_bbpress_css' ) ;
    
    function rew_dequeue_bbpress_css ($defaults ){
    unset ($defaults['bbp-default']) ;
    return $defaults ;
    }

    and re-enqueue it using your own function

    #213185
    Robin W
    Moderator

    ok, thanks, but sorry I can’t really help further.

    I will state again that WordPress handles both registration and login, and as long as you don’t use the login widgets or shortcodes then bbpress should not be involved.

    I hope you get a resolution

    #213181
    lonelydime
    Participant

    Hello,

    I’m running a fresh install of WordPress from the bitnami helm chart using persistent storage on an NFS share. The path used by the containers is /bitnami/wordpress/wp-content/ to pull in plugins/etc. When I install bbPress, all of the css files and js files use the wrong path to include the assets.

    Here’s an example:

    <link rel='stylesheet' id='bbp-default-css' href='https://example.com/bitnami/wordpress/wp-content/plugins/bbpress/templates/default/css/bbpress.min.css'>
    
    <script type='text/javascript' src='https://example.com/bitnami/wordpress/wp-content/plugins/bbpress/templates/default/js/editor.min.js?ver=2.6.5'>

    I haven’t had any issues with other plugins thus far, but for some reason bbPress is wanting to use the full installation path instead of the web root. Is there a way of fixing this with some WP constant that I’m not setting? The installation of wordpress is in /opt/bitnami/wordpress and wp-content/ and wp-config.php are symlink’d to /bitnami/wordpress/wp-content and /bitnami/wordpress/wp-config.php.

    I have a temporary fix right now which will be wiped out when bbPress updates.

    File: wp-content/plugins/bbpress/includes/core/template-functions.php

    function bbp_enqueue_style( $handle = '', $file = '', $deps = array(), $ver = false, $media = 'all' ) {
            // Attempt to locate an enqueueable
            $located = bbp_locate_enqueueable( $file );
            //Ghetto fix
            $located = str_replace('/bitnami/wordpress', '', $located);
    function bbp_enqueue_script( $handle = '', $file = '', $deps = array(), $ver = false, $in_footer = false ) {
            // Attempt to locate an enqueueable
            $located = bbp_locate_enqueueable( $file );
            //Ghetto fix
            $located = str_replace('/bitnami/wordpress', '', $located);
Viewing 25 results - 2,526 through 2,550 (of 32,508 total)
Skip to toolbar