Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 4,176 through 4,200 (of 14,295 total)
  • @robin-w

    Moderator

    @newest- ok, thanks for that.

    It works the other way around, you add a topic to a post, not a post to a topic.

    so when you publish or edit a wordpress post, you can attach a topic to it.

    I didn’t write the original plugin, and Gutenberg made it not work, so I have been given editing rights to try and fix it.

    so start by going to

    dashboard>settings>discussion and you will see topics for posts about half way down – here you can set up the default actions.

    Then as a test create a post.

    on the right hand side you should see Post and Block options, make sure you have clicked Post

    You should then see near the bottom either in the main but or in the sidebar a ‘Topics for Posts’ box, which will show the defaults.

    If you don’t see this (as Gutenberg unhelpfully tries to hide anything useful to the user) click the 3 vertical dots on the right hand side right of publish and the settings cog, at the bottom you will find ‘preferences’ and in that you will find the option to show the topics for posts under additional panels section at the bottom

    Sorry this is all horrible – it’s not me making it so I promise you πŸ™‚

    @robin-w

    Moderator

    @newest not sure if you are describing your issue with topics for posts or your issue with posting images – I’d love to help, but I have limited time to read posts.

    Topics for posts works on when you publish a topic, so can you start there.

    @robin-w

    Moderator

    forums can be done using

    Private groups

    and forum visibility tab

    @robin-w

    Moderator

    great, and yes please post the completed functioning code once you have got it working !!

    @robin-w

    Moderator

    hmmm…not sure about the ‘leak in’ bit, how are lines being displayed if $prev etc. is blank?

    you could add a check

    so set

    $forum_id = bbp_get_forum_id() ;

    above the while statement and then check at the appropriate point

    if (wp_get_post_parent_id($prev_id)  != $forum_id) {
    etc.
    }

    @robin-w

    Moderator

    just had a quick look

    this should get you close, totally untested !!

    <?php $args = array( 'post_type' => 'topic', 'post_parent' => bbp_get_forum_id() ); 
    $loop = new WP_Query( $args );
    //get the current topic id or maybe depending in where you are putting this - bbp_get_reply_topic_id or bbp_get_reply_id()
    $topic_id = bbp_get_topic_id() ;
    while ( $loop->have_posts() ) : $loop->the_post(); 
    	$cur_id = get_the_ID();
    	if ($cur == $topic_id)  {
    		$prev = get_previous_post() ;
    		$prev_id = $prev->ID ;
    		$next = get_next_post();
    		$next_id = $next->ID ;
    	break ;
    	}
    endwhile;
    //so you now have $cur_id, $prev_id and $next_id
    //so create 3 lines
    if (!empty ($prev_id)) {
    	$permalink = get_permalink($prev_id) ;
    	$title = get_the_title ($prev_id) ;
    	echo '<a href="'.$permalink.'">'.$title.'</a>' ;
    }
    if (!empty ($cur_id)) {
    	$permalink = get_permalink($cur_id) ;
    	$title = get_the_title ($cur_id) ;
    	echo '<a href="'.$permalink.'">'.$title.'</a>' ;
    }
    if (!empty ($next_id)) {
    	$permalink = get_permalink($next_id) ;
    	$title = get_the_title ($next_id) ;
    	echo '<a href="'.$permalink.'">'.$title.'</a>' ;
    }
    ?>

    @robin-w

    Moderator

    @athep – have you solved this ?

    In reply to: move moderation

    @robin-w

    Moderator

    you will be looking for

    `<?php do_action( ‘bbp_theme_before_reply_admin_links’ ); ?>

    <?php bbp_reply_admin_links(); ?>

    <?php do_action( ‘bbp_theme_after_reply_admin_links’ ); ?>`
    in

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

    or in the bbpress templates section of your theme

    and look to move that under

    <?php do_action( ‘bbp_theme_after_reply_content’ ); ?>

    Don’t forget to out any changed files into a child theme to prevent them being overwritten

    @robin-w

    Moderator

    solution is

    .single-forum .post-navigation .nav-links {
                   display: none !important;
    }
    
    .single-topic .post-navigation .nav-links {
    	display: none;
    }
    

    @robin-w

    Moderator

    ok, if you have no keymaster, then install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>bug fixes

    and you will be able to set a keymaster, who can then see forums

    you can deactivate and delete the style pack plugin afterwards, or make use of its features

    @robin-w

    Moderator

    there are filters for topics and replies

    bbpress 2.6.6\includes\topics\functions.php lines 389 and 705

    $redirect_url = apply_filters( 'bbp_new_topic_redirect_to', $redirect_url, $redirect_to, $topic_id );
    $topic_url = apply_filters( 'bbp_edit_topic_redirect_to', $topic_url, $view_all, $redirect_to );

    bbpress 2.6.6\includes\replies\functions.php lines 473 and 768

    $reply_url = apply_filters( 'bbp_new_reply_redirect_to', $reply_url, $redirect_to, $reply_id );
    $reply_url = apply_filters( 'bbp_edit_reply_redirect_to', $reply_url, $redirect_to );

    which Weglot can apply query args to

    In reply to: BBPress set-up problem

    @robin-w

    Moderator

    how are you installing bbpress ?

    normally I would expect you to go into

    dashboard>plugins>add new and select bbpress, install and activate

    bbpress does not have ‘welcome to the bbpress installer’

    @robin-w

    Moderator

    ok, hard to help without a link – a bit like trying to fix a car by email πŸ™‚

    try

    #bbpress .post-navigation {
    display : none !important ;
    }

    add this to your theme’s custom css

    @robin-w

    Moderator

    sounds theme related – link to an example on your site please

    @robin-w

    Moderator

    @flamuren always good to help others – I did my first site in 2012, and it’s great to get things doing what you want – hope you carry on enjoying the challenges πŸ™‚

    @robin-w

    Moderator

    @newest can you define ‘doesn’t work either.’ that would help me fix it

    @robin-w

    Moderator

    most themes are fine, but I cannot guarantee it

    @robin-w

    Moderator

    translated..

    with the latest update there is a bug.
    Each time the article is updated, a new post is created in the forum.

    The update only affected a function that runs on plugin activation – but I will take a look

    @robin-w

    Moderator

    great – glad you are fixed !!

    @robin-w

    Moderator

    Great – thanks, and thanks for posting the solution, this might help others finding this thread πŸ™‚

    @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

    this turns comments on in bbpress

    add_filter ('bbp_force_comment_status' , 'rew_set_comments_on') ;
    
    function rew_set_comments_on () {
    	return true ;
    }

    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

    @robin-w

    Moderator

    I suspect it is in an amended version in your theme

    so look in the theme for a folder called bbpress – their amended version should be in there

    @robin-w

    Moderator

    ok, I’d start by logging a ticket with them and see what they come back with

    @robin-w

    Moderator

    πŸ™‚

Viewing 25 replies - 4,176 through 4,200 (of 14,295 total)