Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 3,401 through 3,425 (of 14,188 total)
  • @robin-w

    Moderator

    @robin-w

    Moderator

    try

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>bug fixes

    Fix Threaded Replies Jump

    @robin-w

    Moderator

    I’ve just taken a look at the front end restore.

    The bbpress restore function calls a wordpress function wp_untrash_post which sets the restored status to ‘draft’.

    I’m pretty sure that it didn’t used to do that, so am presuming it’s a wordpress change.

    However if you are using

    bbp style pack

    then I’ve added a fix for this to the ‘bbpress bug fixes’ tab.

    If you want code, then 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

    add_filter ('wp_untrash_post_status', 'rew_correct_untrash_status' , 10, 3) ;
    
    function rew_correct_untrash_status ($new_status, $post_id, $previous_status) {
    	$post_check = get_post( $post_id );
    	//update_post_meta ($post_id , 'rew_type', $post_check->post_type) ;
    	//if it's a reply or topic, then change status back to $previous_status
    	if ($post_check->post_type == bbp_get_reply_post_type() || $post_check->post_type == bbp_get_topic_post_type()) {
    		$new_status = $previous_status ;
    	}
    return $new_status ;
    }

    @robin-w

    Moderator

    There are 2 standard bbpress templates, one for the topic form, and one for the reply form.

    My plugin amends these templates, but I’d bet that so does the Yuozify plugin. Plugins tend to load in alphabetical order, so the Yuozify probably takes preference, but in any case, if we reversed it, my plugin would overwrite any changes they have made.

    I don’t have access to the Yuozify plugin as it is paid.

    Chances are that if we put a combined one in your child theme it would work, but this would be beyond free help, although not expensive.

    Maybe contact me via my contact page http://www.rewweb.co.uk/contact-me/ and I’ll see if I can help further

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    The code is in my style pack.

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Form

    and tick option 18.

    If this does not work, then it may be a theme or other plugin affecting

    @robin-w

    Moderator

    ok, so you have users who have a wordpress role, but no bbpress role – yes?

    If so, then testing for a bbpress role, or as you are suggesting a capability such as create_topic seems a sensible solution.

    @robin-w

    Moderator

    ok, so the first click of ‘trash’ should not delete the topic, but place it in the trash. You should then see ‘delete’ and ‘restore’ on the front end.

    Is this is not what you are seeing?

    You can also see the topic in the backend in the ‘trash’ selection

    @robin-w

    Moderator

    sorry, can you explain what you mean by clicking on β€œRecycle Bin”? Is this front end/backend or where are you seeing this?

    @robin-w

    Moderator

    I suspect those functions are bbpress version 1

    bbpress 2.x just uses wordpress login, so the standard wordpress function

    is_user_logged_in()

    will tell you if the user is logged in.

    @robin-w

    Moderator

    thanks for the update πŸ™‚

    @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

    hmm… I would suspect that it is not file related, but rather plugin, theme, role or database.

    I have gone through all the PHP files on the backend,

    That would be several hundred, and given plugins, probably thousands to look through the code of and understand, and would take weeks if not months πŸ™‚

    I would ask what you have looked at, but as I say I suspect that files as such are not the issue

    participants are in the database.

    Without any idea of what you changed to get to this point, it is impossible to advise what to do other than the above.

    Unless you have been changing files, then looking at them is probably pointless.

    Did you do the actions I suggested ?

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    I’ve just looked and then code in my style pack is not doing what I would expect – let me look at it again this week

    @robin-w

    Moderator

    several

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

    calls
    loop-replies
    form-reply

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

    calls loop-single-reply

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

    lists reply content

    @robin-w

    Moderator

    many on shared servers with eg LCN or Siteground, with sub 3s response.

    In reply to: bbPress + Elementor

    @robin-w

    Moderator

    are you using the hello theme?

    @robin-w

    Moderator

    ok, so if you are a keymaster then I can only suggest

    1. reset the permalinks – dashboard>settings>permalinks and just click save – this resets them.

    2. if that doesn’t fix, 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

    my personal view is that content wins out every time – ie if your content is worth reading then people will handle any reasonable load time.

    When the internet was slow, caching, minimisation and other tricks were worth spending days on to get right.

    I’ve not bothered caching forums pages on nay of my sites, although I do cache other pages.

    I’d suggest you try forums with cache switched on and off, and see if it makes any difference to load time that is noticeable – run each at least 10 times and total the time, and indeed to content changing.

    @robin-w

    Moderator

    so has the account you are trying to see the dashboard>forums/topics/replies got a keymaster role set ?

    @robin-w

    Moderator

    what is your bbpress role in

    dashboard>users

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    if they are not showing, then 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

    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

Viewing 25 replies - 3,401 through 3,425 (of 14,188 total)