Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,276 through 1,300 (of 32,432 total)
  • Author
    Search Results
  • #226169
    Robin W
    Moderator

    ok, to save me searching where is ‘I can see where this is being generated in the bbpress plugin PHP code’

    #226168

    In reply to: Issue with Polylang

    Robin W
    Moderator

    so typing for instance

    http://domain.com/forums/topic/admin-gui/edit/

    in the url does not work either?

    #226159
    alastair123
    Participant

    Hi Guys,
    I’ve taken it upon myself to try and create my own customised forum – I’ve got it mostly working how I’d like, but I’ve hit a brick wall in trying to easily customise how the pagination should look for the lists of topics and also replies.

    I can see where this is being generated in the bbpress plugin PHP code, but ideally I would leave that alone as my changes could disappear on a plugin upgrade.

    I tried following a useful tutorial I found on WPUP, but it didn’t generate any pagination at all – perhaps I am on a different plugin version or something.

    Any advice on how to go about this would be really appreciated!

    #226157

    In reply to: Issue with Polylang

    Robin W
    Moderator

    so I’m presuming that

    http://domain.com/forums/topic/admin-gui/edit/

    would work ie it is the ‘/fr’ that is the problem ?

    #226138
    m1ngum0u
    Participant

    @robin-w could you check your engagements.php on your test forum?
    (/yoursite/wp-content/plugins/bbpress/includes/common/engagements.php)

    i’ve got
    public function get_users_for_object( $object_id = 0, $meta_key = '', $meta_type = 'post' )

    i think $meta_key value shouldn’t be empty…

    #226125
    m1ngum0u
    Participant

    I’m using WP in my native language.
    In forum parameters I’m changing visibility option to third (make forum hidden).
    just trying to translate it to en correctly

    first is 'make global'
    second is make private
    third is make hidden
    #226121
    m1ngum0u
    Participant

    Hi! I’ve got that:

    Error thrown
    Call to a member function get_users_for_object() on null

    When i turning visibility option to “Hide” it happens.
    And I cannot access any topics and forums.I can only access profile page of bbPress

    Found this method in engagements.php(/includes/common)(/includes/users), capabilities.php (/includes/users)

    any suggestions to solve it?
    using bbPress 2.6.9 and WordPress 5.2.13 with Pointfinder theme.

    #226073
    AdventureRidingNZ
    Participant

    Thanks Robin.

    After your comment on my other issue I pasted this code into the custom css part of my child theme and it worked when placed in there.
    So I went back to my child theme and found a typo in an earlier entry which meant nothing after that was being picked up. Once that was fixed and the document version updated it picked up both these changes.

    The child theme css is /themes/newsphere-child-theme/style.css?ver=1.0.2
    and I’ve put “my child theme css ATTN Robin W” in it to make it findable.

    So my forum-Author column is now wider as I had wanted thank you, but the forum-content area has not reduced correspondingly meaning the author section overlaps the content section and I can’t see a specific width designation for the forum-content area to update.

    #bbpress-forums div.bbp-forum-content, #bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content {
        margin-left: 130px;
        padding: 12px 12px 12px 0;
        text-align: left;
        position: relative;
    }
    #226069
    Robin W
    Moderator

    the code is correct, but you have lots of style sheets, and I cannot see it in any.

    I’m presuming it is called ‘style.css’ and if it hasn’t, perhaps you can add

    /*
    my child theme css
    */

    or any distinctive text to the top of the style sheet, so I can see which one it is in the browser.

    Robin W
    Moderator

    try this is the custom css part of your theme

    #bbpress-forums div.wp-editor-container {
         line-height: inherit !important;
    }
    #226066
    AdventureRidingNZ
    Participant

    The Author section seems to have a width of 115px and I’d like to widen that. I’ve tried using the below code which I pulled from a the inspect bar in Chrome and pasted into my child themes styles.css but it doesn’t work.

    Can anybody help?

    EddieB’s BMW R100GS

    /* Make Forums author section wider */
    #bbpress-forums div.bbp-forum-author, #bbpress-forums div.bbp-reply-author, #bbpress-forums div.bbp-topic-author {
        width: 140px !important;
    }
    #226049
    Robin W
    Moderator

    try this

    add_filter( 'get_the_archive_title', function ($title) {
     if ( is_category() ) {
     $title = single_cat_title( '', false );
     } elseif ( is_tag() ) {
     $title = single_tag_title( '', false );
     } elseif ( is_author() ) {
     $title = '<span class="vcard">' . get_the_author() . '</span>' ;
     }
     
     return $title;
    });

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    AdventureRidingNZ
    Participant

    On pages where I use the bbp-single-forum shortcode I am having an issue with the ‘Create new Topic’ text box displaying.

    The topic Title field displays and can be populated fine but the main content textbox appears as a slim expandable box only a few pixels high. If you expand it no text can be entered into the box.

    Also on the pages where the bbp-single-forum shortcode is being used the Home and Update icons do not display correctly, instead presenting a broken image type icon. Removing the bbp-single-forum shortcode makes the admin bar icons display correctly.

    An example of a page with this issue is https://www.adventureridingnz.co.nz/motorcycles/bmw/

    #226014
    Robin W
    Moderator

    I am not certain, but on save a function is run that includes the wordpress function ‘sanitize_text_field’ which may well be stripping the @

    what the code does is to try and find out the user_id of the name entered, and then passes this to

    bbp_add_moderator( $forum_id, $user_id );

    If I am guessing that this is not something you need to do too often, you could do it programatically if you know how?

    in essence there are 2 functions

    bbp_add_moderator( $forum_id, $user_id );
    bbp_remove_moderator( $forum_id, $user_id );
    #225998
    nes421
    Participant
    Active Style Pack, logged in:
    
    <div class="bbp-reply-author">
    <a href="(....)" title="Zobacz profil: uzytkownik421" class="bbp-author-link">
    <span class="bbp-author-avatar">
    <img alt="" src="(....)" srcset="(....)" class="avatar avatar-80 photo" loading="lazy" width="80" height="80">
    </span>
    <span class="bbp-author-name">
    uzytkownik421
    </span>
    </a>
    
    Active Style Pack, logged out:
    
    <div class="bbp-reply-author">
    <img alt="" src="(....)" srcset="(....)" class="avatar avatar-80 photo" loading="lazy" width="80" height="80">
    uzytkownik421
    		
    
    Looks like something replaces 'function bbp_get_reply_author_link' bbpress/includes/replies/template.php
    #225996
    Robin W
    Moderator

    ok, I am seeing this when logged in or logged out with style pack active

    <span class="topic-author">
    <a href="/forums/user/testuser1/" title="View testuser1's profile" class="bbp-author-link">
    <span class="bbp-author-avatar">
    <img alt="" src="..." srcset="..." class="avatar avatar-14 photo" loading="lazy" width="14" height="14">
    </span>
    <span class="bbp-author-name">testuser1
    </span>
    </a>
    </span>

    not sure which you are saying is different as your original post says ‘when user logged in’ in both cases??

    Robin W
    Moderator

    find
    wp-content/plugins/bbpress/templates/default/bbpress/feedback-no-access.php

    transfer this to your pc and edit the text as desired

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/feedback-no-access.php

    bbPress will now use this template instead of the original

    untested, but of you add

    <?php bbp_get_template_part( 'form', 'user-login' ); ?>

    to the end of that form, it should also show a login

    #225899
    Robin W
    Moderator

    I appreciate your frustration, but not sure ‘fault’ is the correct word.

    bbpress has changed something – but the ‘fix’ when it comes may not ‘fix’ you, as your site is adding a no-js class (from either the ‘Publisher’ theme or a plugin) which then isn’t overwritten as is normal practice by a test within your theme or the plugin.

    you could try adding this to the custom css of your theme

    .no-js {
    display : inline !important
    }

    to override the bbpress setting

    #225897
    Robin W
    Moderator

    Untested, but find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    transfer this to your pc and edit

    change line 31

    from

    <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>

    to

    <?php if ( bbp_current_user_can_access_create_topic_form() && (bbp_get_forum_id() != '2927') ) : ?>

    and save

    where 2927 is the forum you don’t want to show the form for

    then create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original

    If you want multiple forums, you could create and array and test against that

    #225894
    Robin W
    Moderator

    so do you want to hide the new topic form every time this particular forum displays (easier), or just for this particular shortcode on a page (more difficult) ?

    #225886
    Editor Mike
    Participant

    My dashboard takes me here when I click for latest updates.

    Releases

    But that is not up to date, how do we know what is in an update before we install it?

    #225871
    bradm413
    Participant

    bbPress Version 2.6.9
    WP version 5.8.2
    site: https://branchtheworld.com

    I have searched and haven’t found an exact case like what I’m looking for. I would like to hide the “New Topic” form that displays when using this shortcode:

    [bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]

    See screenshot here:
    screenshot

    Is this something I’ll need to do with custom coding, or is there a plugin or another simple way to achieve this?

    #225855
    Robin W
    Moderator

    your theme/developer has added the ‘no-js’ class to the very top, hence why the other codes are not working.

    can you try this snippet

    add_action( 'wp_footer', 'rew_supports_js' );
    
    function rew_supports_js() {
    	echo '<script>document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/g, '') + " js ";</script>';
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #225835

    In reply to: Forum Width

    Robin W
    Moderator

    The width is governed by a div with the class rt-container, but it is not clear what craetes that.

    Try this in the custom css part of your theme

    .rt-container {
    	width: 1500px !important;
    }
    #225824
    dusemedia
    Participant

    That plugin works fine for the WP Classic Editor but not for the BBPress Teeny editor.

    The paste as plain text code in the documentation above works fine for the regular BBPress TinyMCE editor but not for the BBPress Teeny editor.

Viewing 25 results - 1,276 through 1,300 (of 32,432 total)
Skip to toolbar