Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for ' . default . '

Viewing 25 results - 876 through 900 (of 6,789 total)
  • Author
    Search Results
  • #205796

    Hello, and thanks for the feedback.

    bbPress does not use iconography in the forums or topics lists. Typically images in those locations are used to denote new activity since the user last visited, which is a feature bbPress does not have.

    Looking at your screenshot, bbPress default styling looks nearly identical to it.

    The avatar styling in that screenshot looks custom which forum and site owners are encouraged to do. Customizing communities is super fun.

    The default styling should be refreshed, or a new template pack could be introduced. Either way, it would be nice to have things be a bit prettier.

    #205791
    tapiohuuhaa
    Participant

    IMO small icons among text looks very bad. IMO it would be better, if icons are on left like in XenForo forus.

    See
    https://www.sanaristikkofoorumi.net/wordpress/2019-11-16-13-40-47-www-sanaristikkofoorumi-net-58b4f9888eb8/

    On the right side is a sidebar, where small icon is on the left like here in the freshness list ( I just don’t like that the position is not always the same.

    It would be nice, if bbPress fourums could look as default more professional.

    #205728
    scabbrox
    Participant

    I think I may have found it….

    It’s in the bbpress.php file (of the pre-update version). Is this it?

    ———–
    /**
    * The main function responsible for returning the one true bbPress Instance
    * to functions everywhere.
    *
    * Use this function like you would a global variable, except without needing
    * to declare the global.
    *
    * Example: <?php $bbp = bbpress(); ?>
    *
    * @return The one true bbPress Instance
    */
    function bbpress() {
    return bbpress::instance();
    }

    /**
    * Hook bbPress early onto the ‘plugins_loaded’ action.
    *
    * This gives all other plugins the chance to load before bbPress, to get their
    * actions, filters, and overrides setup without bbPress being in the way.
    */
    if ( defined( ‘BBPRESS_LATE_LOAD’ ) ) {
    add_action( ‘plugins_loaded’, ‘bbpress’, (int) BBPRESS_LATE_LOAD );

    // “And now here’s something we hope you’ll really like!”
    } else {
    bbpress();
    }

    endif; // class_exists check

    function add_new_roles( $bbp_roles )
    {
    $bbp_roles[‘bbp_trial’] = array(
    ‘name’ => ‘Trial’,
    ‘capabilities’ => custom_capabilities( ‘bbp_trial’ )
    );

    $bbp_roles[‘bbp_warlord’] = array(
    ‘name’ => ‘Warlord’,
    ‘capabilities’ => custom_capabilities( ‘bbp_warlord’ )
    );

    $bbp_roles[‘bbp_general’] = array(
    ‘name’ => ‘General’,
    ‘capabilities’ => custom_capabilities( ‘bbp_general’ )
    );

    $bbp_roles[‘bbp_member’] = array(
    ‘name’ => ‘Member’,
    ‘capabilities’ => custom_capabilities( ‘bbp_member’ )
    );

    $bbp_roles[‘bbp_council_member’] = array(
    ‘name’ => ‘Council Member’,
    ‘capabilities’ => custom_capabilities( ‘bbp_council_member’ )
    );

    return $bbp_roles;
    }

    add_filter( ‘bbp_get_dynamic_roles’, ‘add_new_roles’, 1 );

    function add_role_caps_filter( $caps, $role )
    {
    if( $role == ‘bbp_trial’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_warlord’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_general’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_member’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_council_member’ )
    $caps = custom_capabilities( $role );

    return $caps;
    }

    add_filter( ‘bbp_get_caps_for_role’, ‘add_role_caps_filter’, 10, 2 );

    function custom_capabilities( $role )
    {
    switch ( $role )
    {

    /* Capabilities for ‘councilmember’ role */
    case ‘bbp_council_member’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => false,

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_forums’ => false,
    ‘edit_others_forums’ => false,
    ‘delete_forums’ => false,
    ‘delete_others_forums’ => false,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘member’ role */
    case ‘bbp_member’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => false,
    ‘throttle’ => false,
    ‘view_trash’ => false,

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_forums’ => false,
    ‘edit_others_forums’ => false,
    ‘delete_forums’ => false,
    ‘delete_others_forums’ => false,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => false,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => false,
    ‘delete_topics’ => false,
    ‘delete_others_topics’ => false,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => false,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => false,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => false,
    ‘edit_topic_tags’ => false,
    ‘delete_topic_tags’ => false,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘warlord’ role */
    case ‘bbp_warlord’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘general’ role */
    case ‘bbp_general’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘trial’ role */
    case ‘bbp_trial’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => false,
    ‘throttle’ => false,
    ‘view_trash’ => false,

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_forums’ => false,
    ‘edit_others_forums’ => false,
    ‘delete_forums’ => false,
    ‘delete_others_forums’ => false,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => false,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => false,
    ‘delete_topics’ => false,
    ‘delete_others_topics’ => false,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => false,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => false,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => false,
    ‘edit_topic_tags’ => false,
    ‘delete_topic_tags’ => false,
    ‘assign_topic_tags’ => true,
    );

    break;

    default :
    return $role;
    }
    }

    #205720
    Robin W
    Moderator

    the bit you have altered is in my style pack plugin :

    dashboard>settings>bbp style pack>topic/reply display>item 20.

    However as bbpress now wraps this part in a <ul> you can’t use a <table> in that part.

    However the new template gives you the login part below it which the old did not, so it gets you most of the way there.

    Alternatively you could amend the template which is

    templates/default/bbpress/form-topic.php if you know how to FTP files

    #205677
    pipipi07
    Participant

    If default=21, I was able to input 7 characters in Japanese!
    Apparently, 18-20 can be up to 6 characters, 21-23 can be up to 7 characters, 24 can be up to 8 characters in Japanese. This was a new discovery!

    When bbPress was changed to 2.6, wordpress was upgraded to 5.3 as well. As you say, it may have an impact. I will try a little more to find out what’s wrong.
    For the time being, I decided to set 60 instead of 20.

    Thank you for your cooperation!

    #205659

    In reply to: Child CSS

    hydrogriff
    Participant
    • Yes. W3TC with CSS minification.
    • Yoast SEO. As far as I know, it doesn’t interact with CSS files.
    • No.
    • No.

    Related change test: Tested with both screen and all. Did not work.

    Additional information:

    I have dequeued bbpress stylesheets for non-bbpress pages, using the below code.

    
    function dequeue_bbpress_style() {
        if ( class_exists('bbPress') ) {
          if ( ! is_bbpress() ) {
            wp_dequeue_style('bbp-default');
            wp_dequeue_style( 'bbp_private_replies_style');
            wp_dequeue_script('bbpress-editor');
          }
        }
    }
    add_action( 'wp_enqueue_scripts', 'dequeue_bbpress_style', 99 );
    

    I hope this helps.

    I also noted another issue where the replies were not loading (both topic replies and threaded replies) for any topics.

    #205652
    Adunakhor
    Participant

    Strange. I just typed a reply in here and submitted it and now its not here.

    What I said in that new reply was that I was certain that I was able to edit that section in one of the tabs prior to the plugin update, but now I am unable to find that section. That is part of the problem, the page is showing HTML for a table, but I cannot find anywhere in the plugin where that can be edited, though I am certain it was there before, which is how I changed it from the default text.

    Where in the plugin did you find the default message text?

    #205651
    Robin W
    Moderator

    @thefightingperfectionist – the default message is just ‘you must be logged in to reply to this topic.’ can you say how you have extended this message to include your site details

    #205643

    Different themes use different styling for different reasons.

    If I recall correctly, Twenty Seventeen does not use the text-decoration attribute, but rather uses some kind of text-shadow or bottom-border. It’s a weird anomaly with how that theme decided to do things.

    It’s nearly impossible for bbPress to work perfectly with all themes, but we do try to keep the default styling working well with the themes that come bundled with WordPress.

    This should be solvable with a bit of custom CSS. I’ll create a Trac ticket and see if we can bring this back for you with this theme specifically.

    #205638
    Chuckie
    Participant

    Mine still show underline on mouse hover. But then I sent my CSS styling to do that anyway as my theme by default didn’t.

    #205589
    pipipi07
    Participant

    Thank you for thinking together, @casiepa!
    I’m sorry for the space after the dollar. I missed it.
    But I fixed it but it didn’t work.

    For Ver2.5, if $default = 20, you should have been able to send up to 20 characters in Japanese.

    #205576
    livefree
    Participant

    In using bbstyle pack, when I have it set to have edit profile in the menu, it refers to this link…
    /users/*username*/edit
    … but I end up with an error page…
    “Sorry, This Page Is Gone.
    The page you are trying to view no longer exists or has been moved. You may try the search form below to find it.”

    I also tried the bbstyle pack shortcode [bsp-profile] and same result as above.

    You asked on another thread…
    What have you got set for dashboard>settings>forums>forum user slugs>user base ?
    It is set to the default… I never changed it…
    users

    I found an old plugin as a workaround, but I would rather not add another plugin, especially one that is not updated for the past two years…
    /plugins/bbp-profile-link-shortcode/

    When I use that plugin, it works fine for profile edit… I put their shortcode in a sidebar widget… and it refers to this link…
    /users/*username*/
    … this link works to reach Profile.

    Here is the problem…

    I have my wp in a sub folder of the domain, WordPress Address (URL).
    And, the Site Address (URL) is the domain root.

    bbstyle pack is using the WordPress Address (URL) … adding the folder to the link string … and not the Site Address (URL)…like this…

    /domain/folder/users/*username*/edit
    … this will not work… “Page is Gone”

    /domain/users/*username*/edit
    … this works.

    Is there a way to change the setting for bbstyle package to use the Site Address (URL) as opposed to the WordPress Address (URL)?

    #205563
    Robin W
    Moderator

    sorry, you might need to start again and express a single issue that I can try and help with.

    1. At present I understand that you are using style pack, but have set to not have edit profile in the menu. I therefore do not understand what you are pressing/clicking/selecting that you need help with
    2. which plugin are you referring to in ‘the workaround is this plugin, but I would rather not add another plugin, especially one that is not updated for the past two years.’
    3. I simply don’t understand what you are saying about what works and doesn’t work – can you write it again into one single thread. The default edit for profile is /users/*username*/edit. what have you got set for dashboard>settings>forums>forum user slugs>user base ?

    #205541
    Pascal Casier
    Moderator

    Hi @pipipi07,
    First of all, there should be NO space between the dollar sign and the word ‘default’, so please make sure to change that 3 times (so $default, not $ default)

    If you put
    $default = 20;
    then how many Japanese characters were you able to put in v2.5?

    #205529
    pipipi07
    Participant

    Thank you for making it 2.6!
    However, there was a problem after the update.

    I use bbpress in Japanese.
    In ver.2.5, a code that sets the topic title to 20 characters in Japanese was added to functions.php and it worked properly.
    This is the code.

    function title_max_length ($ default) {
    $ default = 20;
    return $ default;
    }
    add_filter ('bbp_get_title_max_length', 'title_max_length');

    But after 2.6, it didn’t work.
    For example, if default = 20, only 6 characters will be reflected in the title in Japanese. If it is half-width alphanumeric characters, up to 20 characters are correctly reflected.

    I know this is a multibyte issue, but I don’t know how to deal with it. Can I change the limit on the number of characters in a title even with multibyte?
    I hope to find a good solution.

    I am not good at English. I’m sorry in terrible English. thank you for reading!

    #205523
    livefree
    Participant

    I have to use the workaround and can’t use the default edit profile link… which I would prefer …
    the default link is …
    /forumslug/users/emailgmail-c*o*m/edit
    … it doesn’t work

    the edit profile link is…
    …/forumslug/users/emailgmail-c*o*m

    the workaround is this plugin, but I would rather not add another plugin, especially one that is not updated for the past two years.

    Any thoughts on how I could list the edit profile correctly, say, in a widget or with a code?

    #205474
    Chuckie
    Participant

    We have shortcodes for the login and password reset process.

    The login form has a logout button that avoids the confirmation prompt.

    The default logout experience asks the user to confirm.

    What would be nice is ability for a logout shortcode that we can put on our own page so that the question is asked consistent with the theme.

    I am using My Theme Login plugin so I can specify what page to use for logout.

    As mentioned, the login form is avoiding the prompt but it would be nice if it was optional to show the prompt and that it could be done on our own page.

    #205429

    Topic: User Avatar

    in forum Troubleshooting
    livefree
    Participant

    WP Version 5.2.4
    bbPress Version 2.5.14
    bbp style pack Version 4.3.2

    With bbp style, I have tried the Gravatar option for User’s avatars.
    It seems it will be too complicated for many.

    What is the best option to setup self-uploads for avatars for the forum?
    And, to change out the default avatar for the forum with a custom one?

    #205414
    Robin W
    Moderator

    ok, the code works in my test site, so a reply edit admin link show ‘hello’ instead of ‘Edit’.

    If this is not the case, then it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, 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.

    Then come back

    #205368
    Robin W
    Moderator

    ok looks like you are going to need to get familiar with the templates and some coding then

    In essence you need to copy some templates across to your child theme, and then amend them

    You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.

    so if you wanted to amend loop-single-forum you would do the following

    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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    #205357
    Robin W
    Moderator

    visbility hidden should make a forum only visible to moderators and keymasters

    If you are not seeing that then it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, 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.

    Then come back

    #205335
    stracy2
    Participant

    Hi Robin,

    If you instead go to Dashboard>Forums>Edit and a set “Visibility” to “Hidden”, the forum is still visible (listed) to a user with the Forum Role of “Participant” (although they cannot visit the forum).

    Can you confirm? This isn’t the expected, default bbPress behavior for a “Hidden” forum according to forum visibility documentation.

    By “default” I mean bbPress without “bbp Private Forums” installed. I understand you are the author (awesome job!). If “Hidden” actually hid a forum, I wouldn’t require “bbp Private Forums” and I’d skip the need to donate to you :).

    #205288
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, 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.

    #205217
    trevorstokes
    Participant

    Hi,
    I have never edited any of our users’ roles. Some users have the bbp_participant role, but not all.
    When does this (default) role get assigned?
    How can I set all those that have no bbp role?
    The checkbox “Automatically give registered visitors the PARTICIPANT forum role ” is checked.

    Wordpress 5.2.4.
    BBPress 2.5.14

    #205182
    Robin W
    Moderator

    could be many things

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, 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.

    Then come back

Viewing 25 results - 876 through 900 (of 6,789 total)
Skip to toolbar