Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 2,101 through 2,125 (of 14,141 total)
  • In reply to: My bbPress looks ugly

    @robin-w

    Moderator

    I’d guess that it is related to your elementor element that contains it – basically bbpress is trying to fit it’s stuff into a box that is not right for it.

    Beyond free help I’m afraid

    @robin-w

    Moderator

    ok.

    there are dozens of editors that are add-ons for wordpress, some work well with bbptress custom post types, some not so well.

    Is there a particular issue with using the wp standard editor for this part?

    @robin-w

    Moderator

    However, when I try to edit the forum with Elementor

    can you explain what you are wanting to edit?

    @robin-w

    Moderator

    ok, so you are correct that topics and replies should be public.

    You don’t say how you detected a brute force, and if these were default or easily guessed usernames etc. The whole idea of a brute force attack is to try loads of usernames in the hope one is correct.

    bbpress just uses WordPress login, so if you were seeing login attempts this might be just a plain brute force on a wordpress site, unrelated to bbpress.

    Identifying users would be unlikely to come from a topic display, given that a private forum does not show public topics either on screen or through rss.

    However bbpress does have a profile page which is publicly displayable, and that might be a route. ie if the profile page of a display name does not 404, then username is valid.

    you can use :

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Profile

    where you can choose who to display profiles to, and therefore prevent profile pages of your users being identifiable.

    @robin-w

    Moderator

    topics (and replies) gain their visibility from the forum they belong to.

    [edit]

    just reread the original post… will respond back again shortly

    @robin-w

    Moderator

    But topics within it have to be set โ€˜publicโ€™ for logged in participant users to see

    where are you setting this?

    forums have a visibility status of public/private/hidden, but topics have no such setting.

    @robin-w

    Moderator

    ok, I’ve just tried this on my test site with just twentyten and bbppress and it sends with carriage returns, so possible that the email system you are using or indeed the email recipient software is stripping – may be may not be.

    otherwise 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

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>bug fixes

    you will see and option to set yourself as keymaster

    once done you can remove the style pack plugin, or use it’s useful features ๐Ÿ™‚

    @robin-w

    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Subscription Emails

    If that works and you don’t want to keep the plugin, then the email stuff is in the plugin includes/functions_email.php

    @robin-w

    Moderator

    ok,

    Dashboard>tools>forums>repair forums and run the counts

    @robin-w

    Moderator

    try

    dashboard>settings>permalink and just click save – this resets the permalinks and sometimes fixes

    @robin-w

    Moderator

    ok, that should do it ๐Ÿ™‚

    @robin-w

    Moderator

    ok, can you see topics and replies, but not forums?

    If so, are you admin and keymaster? check your profile in dashboard>users>

    @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

    only show if user is logged out

    function bbp_goto_login_page() {
    if (!is_user_logged_in ()) {
    echo '<p><a href="/login"><div class="gotologin">You must be logged in</div></a></p>' ;
    }
    }

    But you should be seeing the login automatically – what theme and other plugins are you using?

    @robin-w

    Moderator

    you probably need to take this up with the eduma theme authors, as this is a paid theme

    @robin-w

    Moderator

    no problem, glad you are fixed !!

    @robin-w

    Moderator

    link to your forum page please

    @robin-w

    Moderator

    private and hidden forums will not show up on google, as bots cannot see them – in essence if you cannot see it without logging in then neither can google

    @robin-w

    Moderator

    Add this additional plugin

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Theme Support and there is a box to tick to get bbpress to work with the new 2022 block theme

    @robin-w

    Moderator

    for the furst two, add this to your theme custom css

    .forum h1.page-title, .forum div.page-description p {
      display : none ;
    }

    for the last, install this additional plugin

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Breadcrumbs

    @robin-w

    Moderator

    ok, I’ve found the problem, and this filter fixes

    add_filter ('bbp_after_has_search_results_parse_args', 'rew_search') ;
    
    function rew_search ($args) {
    	/*mods and above get permissions to see all from line 50 of \bbpress\includes\search/template.php which sets a list of $default['post_status']
    	//participants/spectators get $default['perm'] = 'readable' set instead of $default['post_status'].  
    	'perm' is a wordpress wp_query setting, and wordpress does not have 'hidden' status, so allows hidden forums to show
    	//so if $default['perm'] is set, we add a 'post_status' as well to restrict to statuses user is allowed
    	*/
    	if (!empty($args['perm'])) {
    		$post_statuses = array(bbp_get_public_status_id()) ;
    		// Add support for private status
    		if ( current_user_can( 'read_private_topics' ) || current_user_can( 'read_private_forums' ) ) 
    			$post_statuses[] = bbp_get_private_status_id();
    		}
    		// Add support for hidden status
    		if ( current_user_can( 'read_hidden_forums' )) {
    			$post_statuses[] = bbp_get_hidden_status_id();
    		}
    		// Join post statuses together
    		$args['post_status'] = $post_statuses;
    	}
    return $args ;
    }

    if you are using

    bbp style pack


    then this is included in version 5.0.8 just released

    Otherwise 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

    I’ll update the bbpress trac ticket shortly

    @robin-w

    Moderator

    thanks – I can see the issue – suggest you change the keymaster pw to prevent this site being hacked

    I’ll now use my test site to see if I can work out what is happening

    @robin-w

    Moderator

    1. can’t see as I don’t have access
    2. when you say ‘blank bbpress’ did you do the full tests above?

    @robin-w

    Moderator

    A lot of mobile changes depend on the theme being used.

    These are the css changes that this site uses for smaller devices

    /* Do not fix #header for non-desktops */
    @media screen and ( max-width: 782px ) {
    	#header {
    		top: 0;
    		z-index: 99999;
    		position: absolute;
    	}
    	#wpadminbar {
    		z-index: 88888;
    		height: 56px !important;
    		position: absolute;
    	}
    	#wp-toolbar {
    		width: 100%;
    	}
    	#main {
    		margin: 100px 10px 40px 10px;
    	}
    	body:not(.trac):not(.home-page) #main {
    		margin-top: 140px;
    	}
    	#footer {
    		padding: 10px;
    		margin: 10px;
    	}
    	#footer div.links,
    	#footer div.details {
    		float: none;
    		margin: 10px 0;
    	}
    	#bb-menu-icon,
    	#mobile-menu-button {
    		display: block;
    		position: absolute;
    		right: 0;
    		padding: 33px 20px 33px 33px;
    		text-decoration: none;
    	}
    	#header #nav,
    	#wporg-header #wporg-header-menu {
    		margin: 0;
    		float: right;
    		overflow: visible;
    	}
    	#header #bb-nav,
    	#wporg-header #wporg-header-menu {
    		position: absolute;
    		width: 100%;
    		right: 0;
    		top: 81px;
    		border-bottom: 1px solid #aaa;
    	}
    	#header #bb-nav li,
    	#wporg-header #wporg-header-menu li {
    		width: 100%;
    		text-align: center;
    		margin: 0;
    		padding: 0;
    	}
    	#header #nav #bb-nav li a,
    	#wporg-header #wporg-header-menu li :link,
    	#wporg-header #wporg-header-menu li :visited {
    		display: block;
    		margin: 0;
    		padding: 20px;
    		color: #000;
    		text-shadow: none;
    		border-radius: 0;
    	}
    	#header #nav #bb-nav li.current a,
    	#header #nav #bb-nav li a:hover {
    		color: #fff;
    	}
    	#header #bb-nav,
    	#bbpress-forums .bbp-pagination-count,
    	.bbp-topic-meta,
    	#wporg-header #wporg-header-menu {
    		display: none;
    	}
    	#header #nav:hover #bb-nav,
    	#header #nav:focus #bb-nav,
    	#wporg-header #wporg-header-menu.toggled {
    		background-color: #eee;
    		display: block !important;
    	}
    	#wporg-header #wporg-header-menu.toggled {
    		background: #eee;
    	}
    	#header #nav:hover #bb-menu-icon:before,
    	#header #nav:focus #bb-menu-icon:before,
    	#wporg-header #mobile-menu-button[aria-expanded="true"]:before {
    		color: #fff;
    	}
    	#wp-admin-bar-my-account img.avatar {
    		height: 38px !important;
    		width: 38px !important;
    	}
    }
    
    /* Mobile */
    @media only screen and (max-width: 480px) {
    	#bbpress-forums div.bbp-topic-author img.avatar,
    	#bbpress-forums div.bbp-reply-author img.avatar {
    		width: 72px;
    		height: 72px;
    		margin: -5px 0 0 -5px;
    		transform: rotate(-5deg);
    	}
    
    	#bbpress-forums .bbp-author-role {
    		border: none;
    		background: transparent;
    		padding: 0;
    		margin: 0;
    	}
    
    	#bbpress-forums p.bbp-topic-post-date,
    	#bbpress-forums p.bbp-reply-post-date {
    		position: absolute;
    		right: -13px;
    		top: -17px;
    		font-size: 10px;
    		margin: 0;
    	}
    
    	#bbpress-forums div.bbp-topic-author .bbp-author-avatar + br,
    	#bbpress-forums div.bbp-reply-author .bbp-author-avatar + br,
    	#bbpress-forums div.bbp-topic-ip,
    	#bbpress-forums div.bbp-reply-ip {
    		display: none;
    	}
    
    	#bbpress-forums li.bbp-body div.type-topic span.bbp-admin-links,
    	#bbpress-forums li.bbp-body div.type-reply span.bbp-admin-links {
    		display: block !important;
    		border-top: 1px dotted #ddd;
    		margin: 10px 10px 0 10px;
    		padding: 5px 0;
    		position: relative !important;
    		top: 0;
    		left: 0;
    	}
    }

    You can play with them to get your site looking nicer

    either add them to the custom css part of your theme, or use

    Code Snippets

Viewing 25 replies - 2,101 through 2,125 (of 14,141 total)