Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 7,276 through 7,300 (of 64,329 total)
  • Author
    Search Results
  • #190796

    In reply to: Repair tool with cron

    Robin W
    Moderator

    what functions are you using to create the topics/replies – if you are creating topics and replies using bbpress functions, then repair shouldn’t be needed.

    do you want me to take a look at your import code ?

    #190793
    liderxlt
    Participant

    Hi, I have a project which updates the forum daily through an import program.

    What I need is to run the repair tool that has bbpress once a day, when all imports are finished.

    I found this code but I can not make it work.

    function bbp_register_default_repair_tools() {
    
      // Topic meta
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-topic-meta',
      'description' => __( 'Recalculate parent topic for each reply', 'bbpress' ),
      'callback' => 'bbp_admin_repair_topic_meta',
      'priority' => 5,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_reply_post_type() )
      ) );
    
      // Forum meta
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-forum-meta',
      'description' => __( 'Recalculate parent forum for each topic and reply', 'bbpress' ),
      'callback' => 'bbp_admin_repair_forum_meta',
      'priority' => 10,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Forum visibility
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-forum-visibility',
      'description' => __( 'Recalculate private and hidden forums', 'bbpress' ),
      'callback' => 'bbp_admin_repair_forum_visibility',
      'priority' => 15,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type() )
      ) );
    
      // Sync all topics in all forums
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-all-topics-forums',
      'description' => __( 'Recalculate last activity in each topic and forum', 'bbpress' ),
      'callback' => 'bbp_admin_repair_freshness',
      'priority' => 20,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Sync all sticky topics in all forums
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-all-topics-sticky',
      'description' => __( 'Recalculate sticky relationship of each topic', 'bbpress' ),
      'callback' => 'bbp_admin_repair_sticky',
      'priority' => 25,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type() )
      ) );
    
      // Sync all hierarchical reply positions
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-all-reply-positions',
      'description' => __( 'Recalculate the position of each reply', 'bbpress' ),
      'callback' => 'bbp_admin_repair_reply_menu_order',
      'priority' => 30,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_reply_post_type() )
      ) );
    
      // Sync all BuddyPress group forum relationships
      bbp_register_repair_tool( array(
      'id' => 'bbp-group-forums',
      'description' => __( 'Repair BuddyPress Group Forum relationships', 'bbpress' ),
      'callback' => 'bbp_admin_repair_group_forum_relationship',
      'priority' => 35,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type() )
      ) );
    
      // Update closed topic counts
      bbp_register_repair_tool( array(
      'id' => 'bbp-sync-closed-topics',
      'description' => __( 'Repair closed topics', 'bbpress' ),
      'callback' => 'bbp_admin_repair_closed_topics',
      'priority' => 40,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type() )
      ) );
    
      // Count topics
      bbp_register_repair_tool( array(
      'id' => 'bbp-forum-topics',
      'description' => __( 'Count topics in each forum', 'bbpress' ),
      'callback' => 'bbp_admin_repair_forum_topic_count',
      'priority' => 45,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type(), bbp_get_topic_post_type() )
      ) );
    
      // Count forum replies
      bbp_register_repair_tool( array(
      'id' => 'bbp-forum-replies',
      'description' => __( 'Count replies in each forum', 'bbpress' ),
      'callback' => 'bbp_admin_repair_forum_reply_count',
      'priority' => 50,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Count topic replies
      bbp_register_repair_tool( array(
      'id' => 'bbp-topic-replies',
      'description' => __( 'Count replies in each topic', 'bbpress' ),
      'callback' => 'bbp_admin_repair_topic_reply_count',
      'priority' => 55,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Count topic voices
      bbp_register_repair_tool( array(
      'id' => 'bbp-topic-voices',
      'description' => __( 'Count voices in each topic', 'bbpress' ),
      'callback' => 'bbp_admin_repair_topic_voice_count',
      'priority' => 60,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Count non-published replies to each topic
      bbp_register_repair_tool( array(
      'id' => 'bbp-topic-hidden-replies',
      'description' => __( 'Count pending, spammed, & trashed replies in each topic', 'bbpress' ),
      'callback' => 'bbp_admin_repair_topic_hidden_reply_count',
      'priority' => 65,
      'overhead' => esc_html__( 'High', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
      ) );
    
      // Recount topics for each user
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-topics',
      'description' => __( 'Recount topics for each user', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_topic_count',
      'priority' => 70,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Recount topics for each user
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-replies',
      'description' => __( 'Recount replies for each user', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_reply_count',
      'priority' => 75,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_reply_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Remove unpublished topics from user favorites
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-favorites',
      'description' => __( 'Remove unpublished topics from user favorites', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_favorites',
      'priority' => 80,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Remove unpublished topics from user subscriptions
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-topic-subscriptions',
      'description' => __( 'Remove unpublished topics from user subscriptions', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_topic_subscriptions',
      'priority' => 85,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Remove unpublished forums from user subscriptions
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-forum-subscriptions',
      'description' => __( 'Remove unpublished forums from user subscriptions', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_forum_subscriptions',
      'priority' => 90,
      'overhead' => esc_html__( 'Medium', 'bbpress' ),
      'components' => array( bbp_get_forum_post_type(), bbp_get_user_rewrite_id() )
      ) );
    
      // Remove unpublished forums from user subscriptions
      bbp_register_repair_tool( array(
      'id' => 'bbp-user-role-map',
      'description' => __( 'Remap existing users to default forum roles', 'bbpress' ),
      'callback' => 'bbp_admin_repair_user_roles',
      'priority' => 95,
      'overhead' => esc_html__( 'Low', 'bbpress' ),
      'components' => array( bbp_get_user_rewrite_id() )
      ) );
      }
    #190791

    In reply to: Freshness Date Format

    Robin W
    Moderator

    ok so leave in the code that you have – that will make the default into date

    then add this

    function rew_forum_freshness_link( $forum_id = 0) {
    	echo rew_get_forum_freshness_link( $forum_id );
    }
    
    function rew_get_forum_freshness_link( $forum_id = 0 ) {
    		$forum_id  = bbp_get_forum_id( $forum_id );
    		$active_id = bbp_get_forum_last_active_id( $forum_id );
    		$link_url  = $title = '';
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_reply_id( $forum_id );
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_topic_id( $forum_id );
    
    		if ( bbp_is_topic( $active_id ) ) {
    			$link_url = bbp_get_forum_last_topic_permalink( $forum_id );
    			$title    = bbp_get_forum_last_topic_title( $forum_id );
    		} elseif ( bbp_is_reply( $active_id ) ) {
    			$link_url = bbp_get_forum_last_reply_url( $forum_id );
    			$title    = bbp_get_forum_last_reply_title( $forum_id );
    		}
    
    		$time_since = bbp_get_forum_last_active_time( $forum_id );
    
    		if ( !empty( $time_since ) && !empty( $link_url ) )
    			$anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>';
    		else
    			$anchor = esc_html__( 'No Topics', 'bbpress' );
    
    		return apply_filters( 'rew_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );
    	}

    and where you want to show a ‘since’ freshness link change

    bbp_forum_freshness_link() to
    rew_forum_freshness_link()

    You should put any amended templates into your child theme

    come back if you don’t know how to do that

    #190780
    markleeuw
    Participant

    Hi guys,

    My bbpress doesnt work correctly for my users.

    Some say they cant make a topic, i tested with a test account and it looks like with participant and moderator role i can make a topic but its gone after i refresh the page how is this possible?

    Image and video hosting by TinyPic

    here you soo that i made a topic

    Image and video hosting by TinyPic

    and now its gone.

    how is this possible?

    #190774
    emgb_520
    Participant

    I have installed a plugin called “MENU SWAPPER”. This allows for each page/post on the site to choose any menu that has been created to be displayed on that page/post.

    Originally, the functionality of this plugin did not include ANY of the forum pages. I figured out what to add to the menu swapper code to get the individual forums and the topics to have the functionality to swap menus. See the code below, I added “forum” and “topic” to make that happen.

    function mswp_add_swap_meta_box() {
    $post_types = array(
    ‘post’,
    ‘page’,
    ‘forum’,
    ‘topic’
    );

    The only pages on the site where there is no MENU SWAPPER functionality are the forums archive page here: https://scoutfantasysports.com/forums/

    I am assuming this is because there isn’t really a “PAGE” in wordpress for this.

    The menu on that page needs to be the same as on the individual forum pages here: https://scoutfantasysports.com/forum/fantasy-talk/

    I need to know how to make this happen because it looks like I will need to edit a bbPress plugin file to do it.

    Thanks.

    #190771
    u_Oi
    Participant

    I wonder if I can suggest this for next versions of bbpress? (Something similar to “Popular” or “No-Reply” labels)

    Just in case anyone needed… here is a plugin:

    https://plugins.dev4press.com/gd-topic-prefix/

    #190768
    emgb_520
    Participant

    Yes, bbPress is linked in the navigation as “Forums”.

    #190766
    Robin W
    Moderator

    ok, so you have bbpress as an iten in a menu – yes ?

    If so is it a page, a link or what ?

    #190755
    ejsails
    Participant

    Hi,
    who can help / who knows a migration tool from wpforo to bbpress
    Greets,
    Ej

    jobibex
    Participant

    I have a job board http://www.jobibex.com that uses Jobify theme and I just installed bbpress to allow job seekers and employers discuss issues related to job market. I created two forums one for jobseekers to post their resumes as topics so interested employers can view their resumes and contact them and the other for employers to post vacancies in the form of topics.

    For jobseekers’ topics I want to restrict the content and format of the topic. They can only fill out a form that includes their biodata such as education, experience, location,expected salary and a brief profile description.

    Similarly, employers will have to fill out a form describing the vacancies they are advertising. When they open a new topic in this section they will have to fill a predesigned form which includes: title, salary, required experience and education, location, working hours etc.

    Is there an option in bbpress to achieve this?

    #190724
    markleeuw
    Participant

    you are right. members is not from bbpress. But aqually dont know which plugin members is from, how can i find this out.

    there is a page but i cannot edit it its blanko but the page works.

    #190721
    markleeuw
    Participant

    huh not??? i thought it was bbpress.

    #190719
    Robin W
    Moderator

    I presume that members are part of buddypress or another plugin – it’s not a bbpress concept.

    #190714
    emgb_520
    Participant

    I have installed a menu swapper plugin and this is the only page that doesn’t allow me to change the navigation with that plugin.

    Is there a way to do this within bbPress? I need a different nav displayed than the one that is currently there.

    Thanks.

    #190707
    cinsin
    Participant

    I’m glad you say that, at least it’s clear to me on how private and hidden should be used in theory, but it seems somewhere the plugins got mixed-up. bbPress Capabilities was last updated 4 years ago which means is probably not safe to use but fixes my problem, Members might or might not reply to my post, not really willing to pay for raising possible bugs, will let you know.

    #190702
    cinsin
    Participant

    I did thank you. I found out that the one permission that is required to view private topics from bbPress Capabilities permissions, and which works on the Participant role is read_hidden_forums! the only pain is that is needs to be set on each user one by one, manageable for now.

    Robin W
    Moderator

    well it does have the issue that it doesn’t work on bbpress 🙂

    Sorry, not one I’m going to investigate, bbpress cannot be responsible for making sure every other plugin in the world works with it

    Yanur Islam Piash
    Participant

    Their plugin is working well. No issues. They are working each and every other pages. Just not in the bbpress archive pages.

    #190694
    Robin W
    Moderator

    Again easiest solution is to not to show the avatar

    #bbpress-forums p.bbp-topic-meta img.avatar {

    display : None ;
    }

    The issue isn’t actually with this css, but changing it is the quickest solution !

    #190692
    Robin W
    Moderator

    you may also need to use this

    bbPress Genesis Extend

    #190690
    u_Oi
    Participant

    Thank You. Well, I saw the issue since the first time I installed bbpress and there wasn’t any extra plugin.

    Notice Bar is fixed now, but Avatar and Username still floating…

    If it helps… I can deactivate all plugins right now!?

    #190689
    Robin W
    Moderator

    not sure if it’s theme or plugin – maybe be a combination

    anyway if you are happy not to have the avatar showing in that line, then this fixes

    #bbpress-forums div.bbp-template-notice img.avatar {
    	float: left;
    }

    add it to your custom css.

    #190686
    u_Oi
    Participant

    When I change to any default wordpress theme the issue seems fixed. I thought It is something related with the theme

    Minimal Coming Soon & Maintenance Mode

    Inline Image Upload for BBPress

    WP User Avatar


    Yoast SEO

    #190685
    Robin W
    Moderator

    ok, nothing obvious.

    apart from bbpress, what other bbpress related plugins are you using ?

    #190682

    In reply to: Text background

    Robin W
    Moderator

    add this to your custom css and alter the image to the one you want

    #bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
    	background-image: url("paper.gif");
    }
Viewing 25 results - 7,276 through 7,300 (of 64,329 total)
Skip to toolbar