Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 4,751 through 4,775 (of 64,318 total)
  • Author
    Search Results
  • #209377
    webcreations907
    Participant

    They may have quit working on it.

    I did some digging through their code, and came up with something for you to try if you want.

    You’ll add the below code to your theme’s functions.php file, once you add the code and save the file. Reload your WordPress admin area by refreshing the page/browser, then remove the code and re-save the file.

    Go to your discussions page, and try out that button(Apply settings to existing posts) again and see if it works for you.

    
    
    if(!function_exists('bbppt_reset_topics_for_posts_meta_fix')){
    	function bbppt_reset_topics_for_posts_meta_fix(){
    		$args = array(
    		    'meta_key' => 'bbpress_discussion_comments_copied',
    		    'post_type' => 'post',
    		    'post_status' => 'any',
    		    'posts_per_page' => -1
    		);
    		$posts = get_posts($args);
    		if($posts){
    			foreach ($posts as $post) {
    				delete_post_meta( $post->ID, 'bbpress_discussion_topic_id');
    			    delete_post_meta( $post->ID, 'bbpress_discussion_comments_copied');
    
    			    $comments = get_comments( array( 'post_id' => $post->ID, 'order' => 'ASC' ) );
    			    if($comments){
    			    	foreach ($comments as $comment) {
    			    		delete_comment_meta( $comment->comment_ID, 'bbppt_imported');
    			    	}
    			    }
    			    
    			}
    		}
    	}
    	add_action( 'admin_init', 'bbppt_reset_topics_for_posts_meta_fix' );
    }
    
    
    #209375
    adishor22
    Participant

    This probably comes too late to be of any use to you, and maybe your error had a different cause, but I encountered this problem on my site yesterday and was able to fix it by deleting some replies that did not have associated parent topics in the wp_posts database.

    I accessed wp_posts using PHP My Admin, entered “reply” next to “post type”, and manually deleted all posts that had “0” under their “Post parent”.

    In my case the error appeared after I clicked on “Replies” – “Add new” – “Preview” in the dashboard. It created an errant entry in the database. It’s probably a bbPress bug.

    Please use maximum caution before modifying the database though, and don’t do it if you don’t have a proper backup.

    #209372
    Robin W
    Moderator

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

    Code Snippets

    change the ‘-10 days’ to say ‘-90 days’ if you want 3 months

    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 );
    		}
    }
    #209358
    Robin W
    Moderator

    just tried it, it is all good, you must have missed a character off somewhere, just add it to the end

    <?php
    function hello_elementor_child_enqueue_scripts() {
    wp_enqueue_style(
    'hello-elementor-child',
    get_stylesheet_directory_uri() . '/style.css',
    [
    'hello-elementor'
    ],
    '1.0.0'
    );
    }
    add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts' );
    function ele_disable_page_title( $return ) {
    return false;
    }
    add_filter( 'hello_elementor_page_title', 'ele_disable_page_title' );
    add_filter( 'bbp_register_topic_post_type', 'rew') ;
    
    function rew ($rew) {
    
    $rew = array(
    				'labels'              => bbp_get_topic_post_type_labels(),
    				'rewrite'             => bbp_get_topic_post_type_rewrite(),
    				'supports'            => bbp_get_topic_post_type_supports(),
    				'description'         => esc_html__( 'bbPress Topics', 'bbpress' ),
    				'capabilities'        => bbp_get_topic_caps(),
    				'capability_type'     => array( 'topic', 'topics' ),
    				'menu_position'       => 555555,
    				'has_archive'         => ( 'forums' === bbp_show_on_root() ) ? bbp_get_topic_archive_slug() : false,
    				'exclude_from_search' => true,
    				'show_in_nav_menus'   => true,
    				'public'              => true,
    				'show_ui'             => current_user_can( 'bbp_topics_admin' ),
    				'can_export'          => true,
    				'hierarchical'        => false,
    				'query_var'           => true,
    				'menu_icon'           => '',
    				'source'              => 'bbpress',
    			)  ;
    			
    return $rew ;
    }
    
    add_filter( 'bbp_register_reply_post_type', 'rew2') ;
    
    function rew2 ($rew) {
    
    $rew2 = array(
    				'labels'              => bbp_get_reply_post_type_labels(),
    				'rewrite'             => bbp_get_reply_post_type_rewrite(),
    				'supports'            => bbp_get_reply_post_type_supports(),
    				'description'         => esc_html__( 'bbPress Replies', 'bbpress' ),
    				'capabilities'        => bbp_get_reply_caps(),
    				'capability_type'     => array( 'reply', 'replies' ),
    				'menu_position'       => 555555,
    				'exclude_from_search' => true,
    				'has_archive'         => false,
    				'show_in_nav_menus'   => true,
    				'public'              => true,
    				'show_ui'             => current_user_can( 'bbp_replies_admin' ),
    				'can_export'          => true,
    				'hierarchical'        => false,
    				'query_var'           => true,
    				'menu_icon'           => '',
    				'source'              => 'bbpress',
    			)  ;
    			
    return $rew2 ;
    }
    #209352
    webcreations907
    Participant

    Hi,

    Did you try asking the developer of that plugin?
    You can post on their support page here:https://wordpress.org/support/plugin/bbpress-post-topics/, other users of that plugin might be able to help if you post on there.

    #209347

    In reply to: Split up my Tags page

    webcreations907
    Participant

    Hello,

    How about just adding filter buttons to your current page so that users on your site aren’t directed to another page, instead the tags are displayed based on “Filter” type buttons they click while on that same page. Kinda like a filtered portfolio type set up.

    Example
    Filter buttons at the top of your tag cloud(i.e A-F, G-L,M-S, etc), when user clicks say “A-F”, then all the tags that are within that range are shown, while the rest are hidden. But you’d still be on the same page. Then have a “All” button so they could get back to the default view of all them being shown.

    Just a bbpress user here, just had a idea for you on that so thought I’d mention it.

    #209335

    In reply to: Freshness is way off

    webcreations907
    Participant

    No problem, glad that’s working out for you so far. 🙂

    You can remove the code when bbpress releases a fix for it, it’s just a temporary solution until it gets worked out.

    #209332

    In reply to: Freshness is way off

    ericsims
    Participant

    Alright, I pasted it in to functions.php, and it seems to be working so far. Thanks so much for sharing! I’ll keep an eye on it over the coming days and hope it keeps working.

    Will I need to remove this code if/when bbPress is updated to incorporate this fix?

    #209326

    In reply to: Freshness is way off

    Alexander Agnarson
    Participant
    #209322
    Stephen Ekpa
    Participant

    Hi…
    I’m trying to combine bbPress and bbPress Topics for Posts addon in a certain way. But I needed to extend the bbPress Topics for Posts, a dev. work which was successful.

    But in the process of extending the addon plugin, the “Apply settings to existing posts” section in the addon setting was touched, which created unwanted forums that needed to be deleted. So I reset the forum completely.

    But now, I’m hitting on “Apply settings to existing posts”, but it is not working with old post?. Please, what can I do to get old post to sync again?

    #209308

    In reply to: @mentions

    webcreations907
    Participant

    Oh sorry, no it doesn’t do that, it just emails the user you mention.

    This one https://wordpress.org/plugins/comment-mention/, seems to show the mentions block you’re wanting, but looks like it would need to be changed to work in the bbPress comment editor.

    #209304

    In reply to: Freshness is way off

    webcreations907
    Participant

    The below should update the “Topic” page and the main “Forum” page.

    Once you add the code, you’ll have to add a reply to a topic for it to update. Or run the forum repair Robin W mentioned above.

    Add the below code to your functions.php file of your theme (preferably child theme), or use the code snippet plugin.

    
    if(!function_exists('ticket3297_bbpress_update_latest_activity')){
    	function ticket3297_bbpress_update_latest_activity( $reply_id, $topic_id, $forum_id ){
    		
    		$new_time = get_post_field( 'post_date', $reply_id );
    		
    		if ( ! empty( $new_time ) ) {
    			update_post_meta( $forum_id, '_bbp_last_active_time', $new_time );
    		}
    		update_post_meta( $forum_id, '_bbp_last_active_id', $reply_id);
    		update_post_meta( $forum_id, '_bbp_last_reply_id', $reply_id );
    
    		$forum_obj = get_post( $forum_id );
    		if( $forum_obj && $forum_obj->post_parent !== 0 && bbp_is_forum_category( $forum_obj->post_parent ) ){
    		
    			update_post_meta( $forum_obj->post_parent, '_bbp_last_active_id', $reply_id );
    			update_post_meta( $forum_obj->post_parent, '_bbp_last_reply_id', $reply_id );
    			if ( ! empty( $new_time ) ) {
    				update_post_meta( $forum_obj->post_parent, '_bbp_last_active_time', $new_time );
    			}
    		}
    
    	}
    	add_action( 'bbp_new_reply', 'ticket3297_bbpress_update_latest_activity',10,3 );
    }
    
    if(!function_exists('ticket3297_bbpress_delete_update_latest_activity')){
    	function ticket3297_bbpress_delete_update_latest_activity(){
    			$reply_id = bbp_forum_query_last_reply_id();
    			
    			ticket3297_bbpress_update_latest_activity( $reply_id, bbp_get_reply_topic_id( $reply_id ), bbp_get_reply_forum_id( $reply_id ) );
    
    	}
    	add_action('bbp_deleted_reply','ticket3297_bbpress_delete_update_latest_activity');
    	add_action('bbp_trashed_reply','ticket3297_bbpress_delete_update_latest_activity');
    }
    
    

    That should run when replying, deleting, and trashing replies.

    #209298

    In reply to: Freshness is way off

    Mike Witt
    Participant

    Sorry, I guess this is still an open ticket, right?
    https://bbpress.trac.wordpress.org/ticket/3297

    #209297

    In reply to: Freshness is way off

    Mike Witt
    Participant

    Still not working for me either, bbPress 2.6.4.

    #209291
    tjldesigns
    Participant

    Hi there,

    We seem to be getting some discrepancies around the panels which include the following for example:

    ‘This forum has 3 topics, and was last updated 3 weeks, 5 days ago by Name Surname.’
    Viewing 4 topics – 1 through 4 (of 4 total)

    Sadly on our set-up, these stats don’t seem to be matching up to the actual real edits, ie it states 3 topics, when there are 4, which you can see by the second line the system displays, it says ‘Viewing 4 topics’ yet above it says there are only 3 topics?

    Is this standard, and maybe we are just misunderstanding what it’s counting? If anyone has any advise that would be so much appreciated :).

    We are using:

    – WordPress v: WordPress 5.3.2
    – bbPress v: Version 2.6.4
    – Sadly can’t include a link as it’s behind a login restricted area but we can liaise if anyone can help and facilitate this access

    Thanks ever so much,
    Tonya

    #209270

    Topic: Split up my Tags page

    in forum Themes
    Clivesmith
    Participant

    I have a page that just shows tags https://wateratairports.com/airports-by-iata-code/, it is working great and getting bigger over 300 it could grow to 1000 which is OK on a big screen but on a mobile, not good, I would like to add a line at the top of the tags offering a shortcut ie if you want A-F click this then it will take the user to a page that shows tags stating A and ending with F.

    I am sure I can create the line with links to another page, where I am having a problem is how to only return the tags between A and F.

    The template I am using is

    /**
    * Template Name: bbPress – Topic Tags
    *
    * @package bbPress
    * @subpackage Theme
    */

    get_header(); ?>

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

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

    <?php while ( have_posts() ) : the_post(); ?>

    <div id=”bbp-topic-tags” class=”bbp-topic-tags”>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    <div class=”entry-content”>

    <?php get_the_content() ? the_content() : _e( ‘<p>This is a collection of tags that are currently popular on our forums.</p>’, ‘bbpress’ ); ?>

    <div id=”bbpress-forums”>

    <?php bbp_breadcrumb(); ?>

    <div id=”bbp-topic-hot-tags”>

    <?php wp_tag_cloud( array( ‘smallest’ => 15, ‘largest’ => 15, ‘number’ => 400, ‘taxonomy’ => bbp_get_topic_tag_tax_id() ) ); ?>

    </div>
    </div>
    </div>
    </div><!– #bbp-topic-tags –>

    <?php endwhile; ?>

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

    Is there a way to select what tags are shown ?, I am happy to create more templates.
    hope this makes snese

    #209265

    In reply to: Formatting not Apply

    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, 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.

    Then come back

    #209264

    In reply to: migrating from Lithium

    kurtgarrison
    Participant

    Hi John, our company did decide to shut down our Lithium forum and again exploring the idea of importing into bbPress. The bbPress import tool allows importing by connecting to a database. We wouldn’t be able to do that with Lithium. They will provide an XML file on shutdown. Is there a way to import from a file. I reviewed the bbPress provided PHP import files for mapping including the example that can be edited for Forums not included in the dropdown list. So we could edit our data fields to match.

    Any help or insights would be great appreciated!

    thanks,
    Kurt

    #209261
    nabeelpommy
    Participant

    Hello! I am using bbpress and when I type anything in topic and try to apply formatting like bold, italic text, it show the code instead of applied formatting, suppose I applied B for bold it shows <b> Text</b> and does not make text bold , same like other command , like if I try to make text as heading3 its shows <H3> Text </H3> instead of text in Heading 3 style.
    What is problem , thx in advance

    Regards
    Like I use b tag here and my text has bold , but in my case it show command name alognwith text instead of applying that command

    #209258
    Robin W
    Moderator

    not used elementor, but this should let you style bbpress

    bbp style pack

    #209252

    Hi,

    I’ve created a website using Elementor and LearnDash. I’ve installed and activated a forum using BBPress. However, when I try to edit the forum with Elementor I get an error message saying ‘Sorry the content area was not found in your page’.

    Could you please advise how I can style my forum with Elementor? I’ve already got into the Elementor setting and ticked the boxes to edit forums, topics and replies.

    Thanks,

    Ben

    #209239
    kurtgarrison
    Participant

    Hi, our company is shutting down a Lithium forum and exploring the idea of importing into bbPress. The bbPress import tool allows importing by connecting to a database. We wouldn’t be able to do that with Lithium. They will provide an XML file on shutdown. Is there a way to import from a file. I reviewed the bbPress provided PHP import files for mapping including the example that can be edited for Forums not included in the dropdown list. So we could edit our data fields to match.

    Any help or insights would be great appreciated!

    thanks,
    Kurt

    #209235
    owhited
    Participant

    I installed bbpress. In the dashboard, the menu items like “Forums”, “Topics” and “Replies” appear for the keymaster role. But it doesn’t appear for Participant role. Do I need to change any settings?

    #209229
    Robin W
    Moderator

    sorry, no idea why.

    Beyond free help, esp. given that divi is a paid product and bbpress is free.

    yogaville
    Participant

    The Divi Theme Builder Header is not loading on BBPress search results. Instead, it looks as though it is loading the default WordPress header.

    Incorrect header
    http://iytawebsite.staging.wpengine.com/forums/search/introductions/

    Correct Header

    Home

    I contacted Elegant Themes already and they directed me here.
    Thoughts?

    Wordpress v5.3.2
    BBPress v2.6.4

Viewing 25 results - 4,751 through 4,775 (of 64,318 total)
Skip to toolbar