Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 4,826 through 4,850 (of 14,147 total)
  • @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

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    Doesn’t actually make a difference if you do both, but it only needs changing in forum user slugs.

    I’d suspect that you might need to refresh your browser or clear cache in your site if you are caching.

    @robin-w

    Moderator

    The default does not need changing.

    How are you doing this

    ‘If I rewrite User Base to user ‘

    @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

    @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

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    just set each forum to ‘private’

    @robin-w

    Moderator

    come back if you need further help

    @robin-w

    Moderator

    but yes, looks like the way conversion works is different, so use the new ‘to’ and just out your snitz from.

    I think this might be your problem

    CRITICALLY I also added the following as the example doesn’t had a bit that brings the actual topic content across !

    in the first post above.

    If you are starting again then make sure you blank the forums in wordpress first, so it does the whole job again

    dashboard>forums>reset forums.

    @robin-w

    Moderator

    My original import instructions are from v2 bbpress 7years ago.

    @robin-w

    Moderator

    @robin-w

    Moderator

    @bvaring – nothing I know of does this

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    your theme/elementor is doing this, not bbpress

    suggest you look in your theme colors to see if you can change

    background-color:#020413;

    @robin-w

    Moderator

    @kikismedia – bit confused

    If the code is on stackoverflow – can you post a link to it so that you help others who might find this thread
    if you have the code already – why are you asking~?

    @robin-w

    Moderator

    would involve string a list in the database and then adding a dropdown to the topic/reply form templates – quite doable but beyond free help

    @robin-w

    Moderator

    has been asked before an JJJ who wrote most of bbpress says it would be really hard to code.

    @robin-w

    Moderator

    These are all issues with your theme, not bbpress.

    However in the spirit of helpfulness, I’ll do this last one, but after that you need to refer to your theme’s support channels.

    So the best I can do without spending considerable time is :

    @media only screen and (max-width: 480px) {
    
    #bbpress-forums div.bbp-reply-author img.avatar {
    	position: relative !important ;
    }
    
    #bbpress-forums .bbp-body div.bbp-reply-author {
    	padding-left: 0px !important;
    }

    Which puts it on then left, but is not perfect

    @robin-w

    Moderator

    Not sure what your theme is trying to do here, so sorry not one I can fix

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    oops sorry the value should be transparent

    so

    background-color: transparent !important;

    and padding in the original code is causing the name issue

    so

    padding: 5px 20px;

    makes it wrap

    add

    padding : none !important ;

    so you end up with

    .reply a {
    font-size: 12px !important;
    background-color: transparent !important;
    padding : none !important ;
    }
    In reply to: Auto Moderator

    @robin-w

    Moderator

    the area that sets the default role is

    dashboard>settings>forums>roles and there you will see the default role

    @robin-w

    Moderator

    your themes style sheet

    http://www.rockin-wildcat.com/rwc/wp-content/themes/blog-diary-pro/style.css

    has line 2201 with

    .reply a {
    	display: inline-block;
    	border-radius: 0;
    	color: #fff;
    	position: relative;
    	font-size: 16px;
    	background-color: #46c4f3;
    	padding: 5px 20px;
    	-webkit-transition: all 0.3s ease-in-out;
    	-moz-transition: all 0.3s ease-in-out;
    	-ms-transition: all 0.3s ease-in-out;
    	-o-transition: all 0.3s ease-in-out;
    	transition: all 0.3s ease-in-out;
    }

    the background-color: #46c4f3; element is causing the box issue, and the font-size: 16px; the text issue

    I’d suggest you add these to the custom css area of your theme

    .reply a {
    	
    	font-size: 12px !important;
    	background-color: none !important;
    }

    you can adjust the font-size to whatever value you wish

    @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

Viewing 25 replies - 4,826 through 4,850 (of 14,147 total)