Robin W (@robin-w)

Forum Replies Created

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

    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Forum Display item 4

    In reply to: BB Press and WP theme

    @robin-w

    Moderator

    yes, just affects bbpress

    In reply to: BB Press and WP theme

    @robin-w

    Moderator
    In reply to: Update Topic On Reply

    @robin-w

    Moderator

    ok, I now understand what you want.

    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_action ('bbp_new_reply_post_extras' , 'rew_update_topic') ;
    add_action ('bbp_edit_reply_post_extras' , 'rew_update_topic') ;
    
    function rew_update_topic ($reply_id) {
    	$topic_id = bbp_get_reply_topic_id( $reply_id );
    	$topic_data = apply_filters( 'rew_update_topic', array(
    		'ID'           => $topic_id,
    	) );
    
    $topic_id = wp_update_post( $topic_data );
    }
    In reply to: Update Topic On Reply

    @robin-w

    Moderator

    sorry, I am trying to help you, but am still unclear what it is you want.

    Can you define what you mean by ‘updated’??

    In reply to: Update Topic On Reply

    @robin-w

    Moderator

    sorry, still need more.

    Do you mean that you don’t want anyone to have replies, but instead replies by anyone to update topic content and not leave a reply ?

    In reply to: Update Topic On Reply

    @robin-w

    Moderator

    sorry, can you explain further.

    There is no ‘update’ button on a topic unless this is lost in translation, there is edit and submit.

    can you detail a series of steps and what you want to happen?

    In reply to: Tags in Topics

    @robin-w

    Moderator

    you can use just that list or have it open as per the default.

    to display a list

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Form and look at option 18

    In reply to: Shortcodes Forum

    @robin-w

    Moderator

    please explain further what you are trying to achieve?

    @robin-w

    Moderator

    it still works

    you could also add buddypress which has a pm system, or look at ab93’s suggestion.

    @robin-w

    Moderator

    this still works

    bbPress Messages

    @robin-w

    Moderator

    don’t worry, I will fix it, but I need some time to check that all is working as it should ๐Ÿ™‚

    @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

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