Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 6,826 through 6,850 (of 14,333 total)
  • @robin-w

    Moderator

    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

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

    @robin-w

    Moderator

    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

    great – glad you are fixed

    @robin-w

    Moderator

    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

    great – thanks for letting us know

    @robin-w

    Moderator

    which version of bbpress are you using ?

    @robin-w

    Moderator

    there is a fuction

    bbp_delete_topic function that you can substitute which I have not tested

    @robin-w

    Moderator

    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

    great – glad you are fixed

    @robin-w

    Moderator

    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

    that’s a category and forums underneath

    @robin-w

    Moderator

    hmm… those capabilities should allow this to happen.

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

    @robin-w

    Moderator

    link to an example on your site please

    @robin-w

    Moderator

    @robin-w

    Moderator

    [bbp-forum-index] gives a list of forums, not topics. you then click on a forum to get that forums topics.

    In reply to: Where Do I Put This?

    @robin-w

    Moderator

    sorry, not into selling stuff. and no I’m not the bbpress author.

    @robin-w

    Moderator

    great – thanks for posting the answer

    @robin-w

    Moderator

    ok, to understand what your issue might be, I need a link to your site

    @robin-w

    Moderator

    Private groups

    will get you most of the way there. You could then link your purchases to joining a group, but you’ll need a hook from whatever payment/membership plugin you are using

    @robin-w

    Moderator

    not sure what you are trying to achieve
    [bbp-forum-index] shows the forums, you click a forum and get a list of topics for that forum – ois that not happening?

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    great

    @robin-w

    Moderator

    great

    @robin-w

    Moderator

    Please forgive me my ignorance – don’t worry we were all there when we started !!

    bbpress uses the wordpress database and pages so is contained entirely within wordpress.

    at it’s simplest, just put a ‘custom link’ menu entry of url ‘/fourms/’ and navigation label of ‘forums’ into your menu.

    Alternately create a page with a title of say ‘forums’ and put [bbp-forum-index] in the content.

Viewing 25 replies - 6,826 through 6,850 (of 14,333 total)