Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 2,201 through 2,225 (of 14,219 total)
  • @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

    @robin-w

    Moderator

    contact me via

    Contact me

    In reply to: blank Screen

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    I see this has been fixed on the bbpress-notify support page.

    https://wordpress.org/support/topic/error-regarding-roles-on-all-pages-of-learndash-site/

    The next sentence I am saying in a very nice way, so please do not take offence. Free software comes with free support offered by unpaid volunteers, so if you get a problem fixed, please make sure you post back if it gets fixed – 10 mins of my life I won’t get back in looking at this problem.

    @robin-w

    Moderator

    if you have upgraded, then you should see this as text in the theme support tab

    You are using the theme Twenty Twenty-Two or a Twenty Twenty-Two child theme – enable this section to get bbpress to display correctly

    @robin-w

    Moderator

    I took it from

    BBpress keeps loading the empty index.php in the TwentyTwentyTwo Child theme

    that you were using a child theme.

    what thene are you using?

    In reply to: Editor autoresize

    @robin-w

    Moderator

    wish I had time, but this looks like a js approach

    https://wp-qa.com/tinymce-autoresize

    In reply to: Editor autoresize

    @robin-w

    Moderator

    also this?

    https://www.tiny.cloud/docs-4x/plugins/autoresize/

    suggests just using autoresize rather than wp version?

    It would be a neat feature to have, but I don’t have the time.

    If you crack it, do come back

    In reply to: Editor autoresize

    @robin-w

    Moderator

    Not even looked at it, but does this plugin have any answers?

    Advanced TinyMCE Configuration

    @robin-w

    Moderator

    same as above, but your theme will let set it as homepage

    @robin-w

    Moderator

    ok, I’ve released version 5.0.6 of my style pack plugin.

    Once you have updated to this version you will find

    dashboard>settings>bbp style pack>theme support where you can enable theme support for your 2022 child theme

    please confirm that this works

    @robin-w

    Moderator

    no it’s my bad coding !!

    I hadn’t spotted that you were using a child theme.

    I add some code to pick up on this, and be back in the next day

    @robin-w

    Moderator

    always good to be called awesome – thanks made my day !!! 🙂

    @robin-w

    Moderator

    ok, so just looked the documentation says

    ‘& lt;’

    when it should say

    ‘<‘
    etc.
    This is just internet stuff between stating and interpreting.

    so if you copy the code in your first post, then this is the correct code to have.

    I’ll look to correct the documentation

    @robin-w

    Moderator

    just loaded that code to my test site, and it runs fine.

    suggest you delete and try it again

    @robin-w

    Moderator

    I’d suspect css related, but as said before, I’d need a link to a live example.

    @robin-w

    Moderator

    add this plugin

    bbp style pack

    then go to

    dashboard>settings>bbp style pack and the tab will let you fix this issue

    @robin-w

    Moderator

    ok, given that I cannot access site (in effect you are sending me a photo of your car engine, rather than letting me see the car itself) I can only suggest 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

    is this in basic bbpress, or are you using an approval plugin?

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    that link goes to

    …./wp-admin/post.php?post=594&action=edit

    so your back end edit of the page, not the page 🙂

Viewing 25 replies - 2,201 through 2,225 (of 14,219 total)