Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 401 through 425 (of 6,780 total)
  • Author
    Search Results
  • #225727
    Robin W
    Moderator

    @johnjamesjacoby

    as far as I understand, the issue is detailed in changeset 7190 – yes?

    so it is basically to hide the ‘generate passwword’ in form-user-passwords.php if the user’s browser does not support js or it is disabled.

    If so, at the moment all bbpress pages end up with a no-js class as bbpress sets ‘no-js’ as the default, which means that the quicktags do not display on the topic and reply forms as they need js but the css thinks it is no-js, and the visual editor does not work for the same reasons.

    At the moment you only test for js using the script technique in form-user-passwords.php viz

    <script type="text/javascript">
    	document.body.className = document.body.className.replace( 'no-js', 'js' );
    </script>

    so I would suggest 1 of 2 approaches

    1. putting this test in more generally so it runs on any bbpress page (as usefully suggested by @webcreations907) maybe by adding to the main function, or adding a filter in \includes\core\filters.php to run the script

    so something like :

    add_filter ('bbp_body_class' , bbp_test_js) ;
    function bbp_test_js ($classes) {
    ?>
    <script type="text/javascript">
    	document.body.className = document.body.className.replace( 'no-js', 'js' );
    </script>
    <?php
    return $classes ;
    }

    so that others could disable it

    2. changing the class to bbp-no-js should work, if you do this in the bbp_body_class function and the form-user-passwords.php and in css, then I can no reason why it would not work if that is the sole intention of this.

    #225417
    Ai Roux
    Participant

    Hello there,
    I’ve installed bbpress on my forum, my theme is Fashify and my forum theme is the default one, nothing has been changed.
    I setted the page of the forum with “full width”, and my default setting for the site has a right sidebar.

    How can I do to keep the full width template when I navigate through the forum ? I can’t find any setting for that.

    Thanks by advance

    #224410
    Robin W
    Moderator

    it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #224391
    pluckvermont
    Participant

    So our site typically has minimal users, myself and a few admins. We login properly and make the edits to the site.

    We have a forum set-up coming online. Our registrants to the forum will get an email when they register. They’ll register from the bbpress shortcode I included on a page.

    Instead of saying “Welcome the forum”, the email they receive says New User Registration.
    The URL it provides is the /wp-login, not the page with the bbpress login shortcode. It’s a default WP registration and login.

    I’d liked to customize emails going to forum registrants that are specific to the forum.

    Does that make sense?

    Thx–

    a7xfanben
    Participant

    How can I edit the background color of sticky threads in a forum? I cannot find the current/default color in my style.css file or anywhere else so far.

    Thanks!

    #224326
    Robin W
    Moderator

    ok, I cannot replicate – might be a multisite issue, might not.

    all I can suggest further is the standard advice :

    it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Then come back

    #224292
    Robin W
    Moderator

    FORUMS

    \templates\default\bbpress\content-archive-forum.php
    lists forums

    calls
    loop forums or feedback-no-forums

    \templates\default\bbpress\loop-forums.php
    does forum list headers

    calls
    loop-single-forum

    \templates\default\bbpress\loop-single-forum.php
    lists each forum, last post and freshness

    _____________________________________
    SINGLE FORUM

    \templates\default\bbpress\content-single-forum.php
    lists sub forums if needed using loop-forums
    calls
    loop-topics
    calls
    form topic

    \templates\default\bbpress\loop-topics.php
    does topic list headers

    calls loop-single-topic

    \templates\default\bbpress\loop-single-topic.php
    lists each topic in the forum, last post and freshness

    lists topic content

    ___________________________________________
    SINGLE TOPIC

    \templates\default\bbpress\content-single-topic.php
    if show lead topic set, calls content-single-topic-lead

    calls
    loop-replies
    form-reply

    \templates\default\bbpress\loop-replies.php
    does reply list headers

    calls loop-single-reply

    \templates\default\bbpress\loop-single-reply.php

    lists reply content

    #224268
    Ludovic S. Clain
    Participant

    Hi Robin,
    thank you for your reply.

    For your reference, wp-cli commands often (if not all) have default outputs and they do not need to be explicitly declared unless particular outputs are expected.

    Here is a list of all post types available on my WordPress installation:

    https://markuphero.com/share/5dn5FOkMzGNpG9R6Unbx

    As you can see, I have a custom post type named ‘sfwd-lessons’ so if I run the command wp post list --post_type=sfwd-lessons I have all these custom posts which are listed with the default outputs:

    https://markuphero.com/share/8Mbqbgujeaou2QH60l1k

    But when i’m trying wp post list --post_type=topic the output is empty:

    https://markuphero.com/share/3APucSjLM0IHRgLHIuVb

    https://markuphero.com/share/V3pihOOXPNQWUx3Knzqd

    Have you really tried it on your end?

    Warm regards,
    Ludovic

    #224183
    JohnnyScience
    Participant

    So I just got bbPress installed and working on getting it setup.

    I noticed the URL being a bit long and redundant:

    .com/forums/forum/ohio-medical/

    Is it possible in setting to pull one of those “forums” out of the URL?

    Thanks!

    #224174
    Robin W
    Moderator

    it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #224159
    Robin W
    Moderator

    spectators should not be able to create topics.
    Participants by default can.

    you will either need to

    change participant permissions -see this

    Custom Capabilities

    or add

    Private groups

    and set up topic permissions which will then let you set up a group with permission to reply only

    #224121

    In reply to: Shortcodes in Sidebar

    Robin W
    Moderator

    suspect that as bbpress has custom post types, your sidebar manager is responsible

    so standard testing advice is

    it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #224107
    Robin W
    Moderator

    untested, but this should take out newlines and change the excerpt length to 150 – just change the 150 in the code to whatever length you want.

    so firstly you need to alter the default in wordpress which is 55 so

    add_filter( 'excerpt_length', 'rew_change_default_length' ) ;
    
    function rew_change_default_length () {
        return 150;
    }

    then alter it in the bbpress function, and change to take out line breaks

    add_filter ('bbp_get_topic_excerpt' , 'rew_remove_line_breaks', 10 , 3) ;
    
    function rew_remove_line_breaks ($excerpt, $topic_id, $length){
    		$topic_id = bbp_get_topic_id( $topic_id );
    		//change length here
    		$length   = 150 ;
    		$excerpt  = get_post_field( 'post_excerpt', $topic_id );
    
    		if ( empty( $excerpt ) ) {
    			$excerpt = bbp_get_topic_content( $topic_id );
    		}
    
    		$excerpt = trim( strip_tags( $excerpt ) );
    		
    		//take out line breaks
    		$excerpt = preg_replace("/\r|\n/", "", $excerpt);
    
    		// Multibyte support
    		if ( function_exists( 'mb_strlen' ) ) {
    			$excerpt_length = mb_strlen( $excerpt );
    		} else {
    			$excerpt_length = strlen( $excerpt );
    		}
    
    		if ( ! empty( $length ) && ( $excerpt_length > $length ) ) {
    			$excerpt  = mb_substr( $excerpt, 0, $length - 1 );
    			$excerpt .= '&hellip;';
    		}
    		
    		
    		// Filter & return
    		return apply_filters( 'rew_get_topic_excerpt', $excerpt, $topic_id, $length );
    }

    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

    #224093
    Robin W
    Moderator

    @joel-mohanraj
    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php

    transfer this to your pc and edit

    so you will want to take the link out of line 34

    <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>

    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/loop-single-forum.php

    bbPress will now use this template instead of the original

    amending the freshness will require you to amend the bbp_get_forum_freshness_link function. if you are familiar with filters you can use the filter on line 585 of \includes\forums and a str_replace to take out the link

    #223994
    Robin W
    Moderator

    Just had a thought and dug in the code further, the duplicate check doesn’t apply to those roles/users that can ‘throttle’

    // No duplicate checks for those who can throttle
    	if ( user_can( (int) $r['post_author'], 'throttle' ) ) {
    		return true;
    	}

    bbPress User Roles and Capabilities

    so default Keymaster and Moderator can post duplicates

    #223974
    Robin W
    Moderator

    ok, so

    I understand from this threat that the layout of search results or topic-tag pages can be customized based on the template files stored in the bbpress/templates/default/bbpress folder.

    In order to retain the customization during updates of the bbpress plugin, I have created the same folder structure inside the directory of my child theme (see screenshot).

    yes that is correct and should work, BUT you would do better to only copy those templates you are changing/altering – bbpress will then use those you have changed from your child theme directory and use the unchanged from the plugin directory..

    so what are users clicking to get the topic tags page ?

    #223964
    Jan
    Participant

    Hi there,

    I understand from this threat that the layout of search results or topic-tag pages can be customized based on the template files stored in the bbpress/templates/default/bbpress folder.

    In order to retain the customization during updates of the bbpress plugin, I have created the same folder structure inside the directory of my child theme (see screenshot).

    The only change I’d like to make is for the topic-tag page to look exactly like the search-result page (see screenshot) –> list of forum threats in full length rather than list of titles only.

    In order to realize that I need to…

    1) copy a ?-search.php file from the plugin directory into the respective subfolder of the child theme and
    2) rename it into a ?-topic-tag.php file.

    Is this correct? If so, which ?-search and ?-topic-tag file do I need to consider?

    Many thanks for your support in advance.

    Best regards,
    Jan

    #223901
    daviddossantos
    Participant

    Hello

    I am aware I can change the display name for each user manually by navigating to dashboard>users>all users>edit user and change “Display name publicly as” but I was hoping there was a way I could change the default “Display name publicly as” to first name only so all existing forum topics/ users change to first name only and future users also only show first name only. Is this possible?

    #223897

    In reply to: search input box

    Robin W
    Moderator

    If you have allowed the serach, then it should appear in your main forum list.

    If it is not, it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #223882
    Robin W
    Moderator

    you need to be a keymaster to see forums in the dashboard – check your settings

    dashboard>users

    If you are not, then you need to get a keymaster to set you up.

    If you are a keymaster it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #223873
    Robin W
    Moderator

    it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    Robin W
    Moderator

    \includes\replies\template.php

    line 127

    function bbp_has_replies

    but be aware -lots of plugins filter this.

    it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #223835

    In reply to: Portion not translated

    Robin W
    Moderator

    best I can suggest is :

    it could be a theme or plugin issue

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #223770

    In reply to: Add Custom User Roles

    Robin W
    Moderator

    ok, I think it was just loading in the wrong place, try

    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
    add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
    
    function add_new_roles( $bbp_roles )
    {
    /* Add a role called naturopath */
    $bbp_roles['bbp_naturopath'] = array(
    'name' =>'Naturopath',
    'capabilities' =>custom_capabilities( 'bbp_naturopath' )
    );
    
    return $bbp_roles;
    }
    
    function add_role_caps_filter( $caps, $role )
    {
    /* Only filter for roles we are interested in! */
    if( $role == 'bbp_naturopath' )
    $caps = custom_capabilities( $role );
    
    return $caps;
    }
    
    function custom_capabilities( $role )
    {
    switch ( $role )
    {
    
    /* Capabilities for 'naturopath' role */
    case 'bbp_naturopath':
    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' => false,
    '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;
    }
    }

    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

    Chuckie
    Participant

    @wendylady, also, if you install the “Advanced Editor Tools” plugin you can get your TinyMCE toolbar to show the menu bar. I just tried it. This menu bar has the “Restore last draft” on it.

    But I have not added any code to include the “restoredraft” button on the toolbar itself.

    But as previously mentioned, the autosave is defaulting to 30 seconds.

Viewing 25 results - 401 through 425 (of 6,780 total)
Skip to toolbar