Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 3,726 through 3,750 (of 14,219 total)
  • @robin-w

    Moderator

    ok, that is part of the issue.

    I’m still looking, but whilst I think [bbp-topic-index] will protect against users seeing posts they shouldn’t, you might just want to check for your site.

    I added an extra filter on [bsp-display-topic-index] that does a double check, and this is causing the issue.

    I don’t actually think that filter is needed, but I am doing some extra checks to make sure, so just make sure [bbp-topic-index] is hiding stuff it should until I confirm.

    @robin-w

    Moderator

    Question – are you also running the bbp-private-groups plugin?

    @robin-w

    Moderator

    great- glad you are fixed, and sorry for the spelling !

    @robin-w

    Moderator

    Goad the first ones fixed.

    sorry, but the above fault finding applies again πŸ™‚

    @robin-w

    Moderator

    hmmm…interesting..

    the shortcode [bsp-display-topic-index] is from my stylepack plugin, whereas [bbp-topic-index] is from bbpress.

    If this was working ok, I’ll need to work out what has changed to make it not work πŸ™‚

    @robin-w

    Moderator

    so has this just started? new site? new bbpress?

    try

    dashboard>settings>permalinks and just click save – I don’t expect this to fix, but it will eliminate !

    @robin-w

    Moderator

    moderation does 2 checks for stuff in

    dashboard>settings>discussion

    1st for blacklist words – produces ‘Your topic cannot be created at this time’ error

    2nd for moderation – either the number of links or words. If these are failed, the topic is allowed but put into pending.

    So which and what do you want to happen?

    @robin-w

    Moderator

    usual fault finding applies

    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

    unless you list the errors, I can’t help you πŸ™‚

    At the moment you are just telling me that your car is making a funny noise

    @robin-w

    Moderator

    Sorry, I’m being brain dead this afternoon.

    Spectate is a capability shared by many roles, so the code above is rubbish !

    Try this

    function forum_user_is_spectator(){
    if ( is_bbpress() && is_user_logged_in() ) {
        $user_ID = get_current_user_id() ;
        $role = bbp_get_user_role( $user_id );
        if ($role == bbp_get_spectator_role()){
           wp_enqueue_script( 'spectator-js', get_template_directory_uri() . '/js/spectator.js', array(), false, true);
           }
        }
    }

    @robin-w

    Moderator

    you add action is right, and I’d have this as the function (not tested!)

    function forum_user_is_spectator(){
    if ( is_bbpress() && is_user_logged_in() ) {
       $User_ID = get_current_user_id() ;
    	$Spectator = (!empty(current_user_can( 'spectate' )) ? 1  : 0) ;
        if ($Spectator){
           wp_enqueue_script( 'spectator-js', get_template_directory_uri() . '/js/spectator.js', array(), false, true);
           }
        }
    }

    @robin-w

    Moderator

    this is free software, supported for free by volunteers like myself. I will raise a ticket when I get some time to do so, I have a life outside of this forum πŸ™‚

    @robin-w

    Moderator

    It’s kinda weird that when I edit this php file you mention β€œcontent-single-topic.php”, it didn’t show those changes on the forum pages.

    ok, question, does your theme have bbpress files associated with it? or is a plugin affecting this

    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

    πŸ™‚

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    ok, so what are you using to restrict the forum visibility

    @robin-w

    Moderator

    thanks, I’ll raise a ticker when I get a moment

    @robin-w

    Moderator

    I’m running 2.6.6 on 5.7 on my test sites, all I can suggest is

    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

    In reply to: Topic stats

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    that code has been moved to content-single-topic.

    Can you just recheck your settings in

    dashboard>settings>forums and look at subscriptions and favorites are set – I have no reason to doubt except past experience πŸ™‚

    If so, you may need to upgrade in

    dashboard>tools>forums>upgrade forums

    @robin-w

    Moderator

    yes it works with 5.7

    In reply to: Topic stats

    @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

    no, most bbpress sites will be 2.6.6 and this was released in November 2020, so if this was an issue it should be well known by now.

    @robin-w

    Moderator

    thanks,

    I’d suggest you try

    dashboard>tools>forums>repair and run one at a time

    In reply to: Topic stats

    @robin-w

    Moderator

    great – glad you are fixed πŸ™‚

Viewing 25 replies - 3,726 through 3,750 (of 14,219 total)