Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 651 through 675 (of 6,774 total)
  • Author
    Search Results
  • #214158
    Robin W
    Moderator

    the original file is in

    bbpress\bbpress.2.6.5\bbpress\templates\default\css\bbpress.css

    BUT as Mike says, you should either make changes in your theme’s CHILD theme, or copy the bbpress.css to your CHILD theme

    so copy the abive file to

    /wp-content/themes/%your-theme%/css/

    and make changes there

    #214146
    robertherold
    Participant

    I thought if I changed it here:

    View post on imgur.com

    Then I need to change it here too:

    add_filter (‘bbp_get_user_slug’ , ‘rew_get_user_slug’ ) ;
    function rew_get_user_slug ($slug) {
    $default = ‘users‘ ;
    // Filter & return
    return apply_filters( ‘rew_get_user_slug’, get_option( ‘_bbp_user_slug’, $default ) );
    }

    #214145
    Robin W
    Moderator

    The default does not need changing.

    How are you doing this

    ‘If I rewrite User Base to user ‘

    #214143
    Robin W
    Moderator

    hmmm… the code works fine on my test site.

    I can only suggest 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

    #214141
    Robin W
    Moderator

    I think this should do it, but check that it works, and try it from topics/replies freshness etc.

    add_filter ('bbp_get_user_slug' , 'rew_get_user_slug' ) ;
    
    function rew_get_user_slug ($slug) {
    	$default = 'users' ;
    	// Filter & return
    	return apply_filters( 'rew_get_user_slug', get_option( '_bbp_user_slug', $default ) );
    }

    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

    #214056
    Robin W
    Moderator

    yes this seems to be a bug.

    in

    \bbpress\includes\forums\functions.php

    line 197 has

    // No forum parent was passed (should never happen)
    	if ( empty( $forum_parent_id ) ) {
    		bbp_add_error( 'bbp_new_forum_missing_parent', __( '<strong>ERROR</strong>: Your forum must have a parent.', 'bbpress' ) );

    but a top level forum will have zero so empty !

    (I’m not a bbpress author, I just help moderate here, so not under my direct powers to change)

    To correct this for another user, I did the following :

    created a hidden forum – then noted the ID (in this case 4537)

    then in

    \bbpress\templates\default\bbpress\form-forum.php

    changed line 138 etc. from

    <p>
    						<label for="bbp_forum_parent_id"><?php esc_html_e( 'Parent Forum:', 'bbpress' ); ?></label><br />
    
    						<?php
    							bbp_dropdown( array(
    								'select_id' => 'bbp_forum_parent_id',
    								'show_none' => esc_html__( '&mdash; No parent &mdash;', 'bbpress' ),
    								'selected'  => bbp_get_form_forum_parent(),
    								'exclude'   => bbp_get_forum_id()
    							) );
    						?>
    					</p>

    to

    <?php
    					//the code in incudes/forums/functions won't let post parent be blank.
    					//to get this to work, we have created a hidden forum in the site.  This forums ID is 4537
    					//if the hidden forum exists, then use this forums id 
    					//otherwise show the post parent section
    					$forum_parent_id = bbp_get_forum_id( 4537 );
    					if (!empty( $forum_parent_id )) { ?>
    					 <input type="hidden" id="bbp_forum_parent_id" name="bbp_forum_parent_id" value="4537">
    					 <?php
    					}
    					else {
    					?>
    					<p>
    						<label for="bbp_forum_parent_id"><?php esc_html_e( 'Parent Forum:', 'bbpress' ); ?></label><br />
    
    						<?php
    							bbp_dropdown( array(
    								'select_id' => 'bbp_forum_parent_id',
    								'show_none' => esc_html__( '&mdash; No parent &mdash;', 'bbpress' ),
    								'selected'  => bbp_get_form_forum_parent(),
    								'exclude'   => bbp_get_forum_id()
    							) );
    						?>
    					</p>
    					<?php } ?>

    This template then gets saved to your child themes directory as

    wp-content/themes/%your-theme-name%/bbpress/form-forum.php

    bbPress will now use this template instead of the original

    Finally, add an action to re-write the parent forum from 4537 to zero post forum creation

    add_action( 'bbp_new_forum_post_extras', 'ltc_limit_forum', 10 ,1  );
    
    function ltc_limit_forum ($forum_id) {
    	//this function is fired when a forum is created
    	//set post parent to zero
    	wp_update_post(
    		array(
    			'ID' => $forum_id, 
    			'post_parent' => 0
    			)
    	);
    }

    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

    You could amend that function to have an if statement so if forum parent is 4537 then create forum parent as 0, but in this case there were no times when a sub forum was being created, so it was not needed.

    I know this is quite convoluted, but it worked !!

    There is a trac ticket for this issue somewhere, so the authors are aware

    #214040
    ricks03
    Participant

    I have bbPress installed and configured.

    If I create a page, with the shortlink: [bbp-forum-index]
    then I can go to the page attributes, and change the Template from the Default Template to “Full Width Page (no sidebar)”, which is a template available from my Theme (Responsive by Cyberchimps), and it looks great.

    When I attempt to browse any of my forums from there I, of course, leave that Page, and enter the normal forum pages, which use the Default Template again. What I’d like to do is change what theme Template is used for all of bbPress. Possible?

    I don’t have any need to edit the template itself, I just want to change which template the bbPress pages use.

    Thanks!

    Rick

    #213993
    Chris
    Participant

    Hello,
    I’m trying to migrate an old phpbb 3.0.2 based forum to new bbPress based forum. The default importer gave me errors like “no forums to import” and “no users to import”. I found this importer fix: https://gist.github.com/TheRobotFactory/e8ac4b3dea7920d69f1a959d216f92a3 and it fixed the user import, but still the other stuff (except posts) fail: forums, topics, etc.
    Any known importer fix to be able to import from phpbb 3.0.2?

    #213935
    uksentinel
    Participant

    Hi @egyptimhotep

    Almost, when I user logs in, and selects there default avatar located at top right of screen, they then have access to (Passwords change, Profile and Log-Off) but I am looking to change that link / avatar so that the user has access to there replies / Profile Topics Started / Replies Created / Engagements / Favorites / Subscriptions / Edit as you described above

    Very much like what happens on this forum 😉

    Thank you

    https://uktechhub.com/forums/

    #213793
    p3t3rr
    Participant

    UPDATE:

    I found the issue. 2 weeks back I added the following function to functions.php > child theme, because I wanted to rename the Keymaster to Administrator:

    // change user role name 'Verwalter' to 'Administrator'
    function ntwb_bbpress_custom_role_names() {
    	
    	// Keymaster
            bbp_get_keymaster_role() => array(
                'name'         => 'Administrator',
                'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
            )
    }
    add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
    

    It successfully renamed the role and I was done with the issue. However, it apparently removed all the other default bbpress roles. I thought this function is exclusively for renaming roles as the name suggests.

    I went back and included all other default roles into that function in the child theme (The complete rename roles function can be seen eg here.) Now I see all roles in settings > forum > automatically assign roles. Also in user management I see all forum roles. Also, new forum registrants are automatically assigned to subscriber.

    problem solved.

    #213786
    Robin W
    Moderator

    something strange going on!

    I can only suggest 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

    I’d start by taking out any code in your child theme’s functions file !

    #213779
    p3t3rr
    Participant

    I just noticed the following: as a site admin I cannot change forum roles of users. I can only assign the role ‘administrator’ or ‘-nor roles for these forums-‘. No option to assign moderators or anything else.

    How could this have happened @robin-w? At one point I installed buddypress, but deinstalled it again.

    I already deactivated and activated bbpress and went through repair forums > default user roles. When I did the repair all users were assigned forum role ‘administrator’.

    #213716
    p3t3rr
    Participant

    Hi there,

    I am currently setting up a bbpress forum. This is why I post a view threads atm because I have questions. Hopefully, it’s not perceived as spam

    I noticed that new users are automatically assigned to the forum role administrator, eventhough automatic role assignment as forum admin for new users is not checked under settings > forum > user settings for forum.

    Why is this? Am I missing something?

    New users should just get the wordpress default role subscriber and forum role participant.

    Hopefully you can help. best regards, peter

    #213437
    fl3xtra
    Participant

    Got it. I’ll give it a show. I think it was default to 2 links. And got the moderation plugin. Thanks for the suggestion.

    #213393
    Oleksandr
    Participant

    topic as draft
    There is no matter. Such functionality doesn’t exist by default.
    The error occurs with any topic status. Main – the topic must be saved.

    #213382
    Oleksandr
    Participant

    Same with a completely new site with a default theme.

    #213362
    Robin W
    Moderator

    this may be what you need to change the default template

    bbPress WP Tweaks

    #213327

    In reply to: Login URL

    Robin W
    Moderator

    the simplest way would be to just take out the bbpress login

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-user-login.php

    transfer this to your pc and edit to just delete all the content (or you could put a link to your page)

    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/form-user-login.php

    bbPress will now use this template instead of the original

    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
    #213284
    fl3xtra
    Participant

    Hi all

    I have two issues. First is that the area
    Allow users to edit their content for xx minutes after posting
    If checked, setting to “0 minutes” allows editing forever.

    I can’t change it to 0. Default keeps going to 5 minutes.

    Secondly if a reply has been edited, I have to manually approve it. Is there a way to disable that so it automatically approves?

    #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?

    #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);
    #213173
    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.

    Then come back

    #213153
    Robin W
    Moderator

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php

    transfer this to your pc and edit

    you’ll see

    		<?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php elseif ( ! bbp_is_forum_category() ) : ?>
    
    			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>

    change this to

    <?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>
    		
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    			
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			
    
    		<?php elseif ( ! bbp_is_forum_category() ) : ?>
    		
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>

    and save

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

    bbPress will now use this template instead of the original, and the topic form will now appear before the forums

    #213133
    Ahmad Karim
    Participant

    I want the same structure for my forum topics to be like this:

    http://domain.com/forums/forum-slug/topic-slug/

    I don’t want it to look like this, which is currently how it is showing by default:

    http://domain.com/forums/topic/topic-slug/

    If I have same topics in two different forums the topic will be messed up

    Neither I want it to look like this

    http:/domain.com/forums/forum/forum-slug/

    This is so redundant. Shouldn’t it look like this? http:/domain.com/forums/forum-slug/

    Can someone help here please?

Viewing 25 results - 651 through 675 (of 6,774 total)
Skip to toolbar