Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 7,550 total)

  • Robin W
    Moderator

    @robin-w

    It’s like using the shortcode

    , or is it using the shortcode [bbp-search] ??


    Robin W
    Moderator

    @robin-w

    are you also using buddypress?
    and what other bbpress related plugins are you using ?


    Robin W
    Moderator

    @robin-w

    forums belong to categories


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed

    In reply to: Sub Forums Or Topics

    Robin W
    Moderator

    @robin-w

    So you can either

    Create ‘operating systems’ as a category, and have Windows, Linux, Apple, Android etc. as forums belonging to this parent category

    or

    Create ‘operating systems’ as a forum, and have Windows, Linux, Apple, Android etc. as forums belonging to this parent forum.

    The first of you don’t want topics in the parent forum, the 2nd if you do

    You set the ‘type’ in dashboard>forums>edit forum and on the right hand side you will see ‘forum atributes’ wity type within that and parent forum underneath


    Robin W
    Moderator

    @robin-w

    yes that looks like a good solution !


    Robin W
    Moderator

    @robin-w

    If you just want to remove it from the list then you could amend loop-single-forum.php

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    change it to (assuming 40250 is the fiorum id)

    
    <?php
    
    /**
     * Forums Loop - Single Forum
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    if ( !bbp_get_forum_id() == '40250')) {
    ?>
    
    <ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>
    
    	<li class="bbp-forum-info">
    
    		<?php if ( bbp_is_user_home() && bbp_is_subscriptions() ) : ?>
    
    			<span class="bbp-row-actions">
    
    				<?php do_action( 'bbp_theme_before_forum_subscription_action' ); ?>
    
    				<?php bbp_forum_subscription_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '&times;' ) ); ?>
    
    				<?php do_action( 'bbp_theme_after_forum_subscription_action' ); ?>
    
    			</span>
    
    		<?php endif; ?>
    
    		<?php do_action( 'bbp_theme_before_forum_title' ); ?>
    
    		<a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>
    
    		<?php do_action( 'bbp_theme_after_forum_title' ); ?>
    
    		<?php do_action( 'bbp_theme_before_forum_description' ); ?>
    
    		<div class="bbp-forum-content"><?php bbp_forum_content(); ?></div>
    
    		<?php do_action( 'bbp_theme_after_forum_description' ); ?>
    
    		<?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>
    
    		<?php bbp_list_forums(); ?>
    
    		<?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>
    
    		<?php bbp_forum_row_actions(); ?>
    
    	</li>
    
    	<li class="bbp-forum-topic-count"><?php bbp_forum_topic_count(); ?></li>
    
    	<li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></li>
    
    	<li class="bbp-forum-freshness">
    
    		<?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
    
    		<?php bbp_forum_freshness_link(); ?>
    
    		<?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
    
    		<p class="bbp-topic-meta">
    
    			<?php do_action( 'bbp_theme_before_topic_author' ); ?>
    
    			<span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
    
    			<?php do_action( 'bbp_theme_after_topic_author' ); ?>
    
    		</p>
    	</li>
    
    </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
    
    <?php } ?>

    Not tested but should work, if not then might be another bbpress plugin overwriting the template – come back


    Robin W
    Moderator

    @robin-w

    ok, the code does not allow for pagnination if you have nested replies allowed in the forum settings.

    That is just the way the code is written, I am not an author of the code.


    Robin W
    Moderator

    @robin-w

    Put this in your child theme’s function file – or use

    Code Snippets

    add_filter( 'bbp_get_replies_per_page', 'rew_replies');
    
    function rew_replies () {
    $replies = 5 ;
    return $replies ;
    }

    Robin W
    Moderator

    @robin-w

    hmm… not sure what to suggest next


    Robin W
    Moderator

    @robin-w

    I would suggest you reverse the order for answers, as pagination will not solve it.

    This may work

    bbPress – Sort topic replies


    Robin W
    Moderator

    @robin-w

    you want sub 10 hour response on a sunday ?????


    Robin W
    Moderator

    @robin-w

    enable bbpress

    then

    dashboard>tools>forums>reset forums

    Then decativate and delete bbpress and any dependent plugind

    In reply to: Where Do I Put This?

    Robin W
    Moderator

    @robin-w

    sorry, that is usually theme specific, so beyond help here


    Robin W
    Moderator

    @robin-w

    so did you load this as a plugin eg

    Save this file as ‘close_old_topics.php’
    Compress/zip this file, so you have a zipped version.
    then in worpress go to
    Dashboard>plugins>add new and click ‘upload’ and then upload the zipped file you saved above, and then activate.


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed


    Robin W
    Moderator

    @robin-w

    This plugin seems to do that and claims bbpress support

    I have not tried it, so please come back and let us know if it works

    Highlight Search Terms


    Robin W
    Moderator

    @robin-w

    great – thanks for letting us know


    Robin W
    Moderator

    @robin-w

    which version of bbpress are you using ?


    Robin W
    Moderator

    @robin-w

    there is a fuction

    bbp_delete_topic function that you can substitute which I have not tested


    Robin W
    Moderator

    @robin-w

    this will close topics with no activity in the last 10 days

    
    /*
    Plugin Name: BBPress Close Old Posts
    Description: Close BBPress 2.0+ posts that haven't been updated in X days. 
    Author: Raygun
    Version: 0.1
    Author URI: http://madebyraygun.com
    
    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    */ 
    
    register_activation_hook(__FILE__, 'bbpress_topic_scheduler');
    
    add_action('bbpress_daily_event', 'bbpress_close_old_topics');
    
    function bbpress_topic_scheduler() {
     wp_schedule_event(time(), 'daily', 'bbpress_daily_event');
    }
    
    function bbpress_close_old_topics() {
    	// Auto close old topics
    	$topics_query = array(
    		'author' => 0,
    		'show_stickies' => false,
    		'parent_forum' => 'any',
    		'post_status' => 'publish',
    		'posts_per_page' => -1
    	);
    	if ( bbp_has_topics( $topics_query ) )
    		while( bbp_topics() ) {
    			bbp_the_topic();
    			$topic_id = bbp_get_topic_id();
    			$last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) );
    			if ($last_active < strtotime( '-10 days') )
    				bbp_close_topic( $topic_id );
    		}
    }
    ?>

    Robin W
    Moderator

    @robin-w

    great – glad you are fixed


    Robin W
    Moderator

    @robin-w

    I appreciate that generic words on setting up do not always cut it, but the guide is just that a guide, not intended to be definitive in all cases.

    Given that I have neither a link to your current site or a real idea of what you are after, it is hard to help.

    Maybe a link to your current site would help my unedrstanding


    Robin W
    Moderator

    @robin-w

    that’s a category and forums underneath


    Robin W
    Moderator

    @robin-w

    hmm… those capabilities should allow this to happen.

    I’d suspect that these are not being added – how are you doing this?

Viewing 25 replies - 26 through 50 (of 7,550 total)