Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 6,926 through 6,950 (of 64,429 total)
  • Author
    Search Results
  • #194076
    squaremdesign
    Participant

    Need to migrate a Simple Press forum to BBPress – what is the best way to do this?

    #194071
    Robin W
    Moderator

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #194057
    Robin W
    Moderator

    ok, so this works on my test site

    in discussions-replies

    
    <?php add_filter ('bbp_before_has_replies_parse_args' , 'rew_filter_for_user' ) ?>
    <?php if ( bbp_get_user_replies_created( $user_id = bp_loggedin_user_id() ) ) : ?>
        <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
        <?php bbp_get_template_part( 'loop', 'replies' ); ?>
        <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    <?php else : ?>
        <p><?php _e( 'You have not replied to any topics.', 'bbpress' ); ?></p>
    <?php endif; ?>	

    and in functions

    function rew_filter_for_user ($args) {
     $uid = bbp_get_current_user_id();
     $args['author'] = $uid ;
     return $args ;
    }

    let me know if it works on yours

    #194056
    RobertL4807
    Participant

    My forums currently recognize “@user-name” with the dash.
    Anyone know how to get bbPress to recognize “@user name” with a space?

    Much appreciated
    Thanks

    #194055
    quigley05
    Participant

    1. I created a new template file titled discussions-replies and discussions-subscriptions under my WordPress child theme.

    2. I placed within discussions-replies the following code:

    <?php
    /*
    Template Name: Discussions Replies Created
    */
    get_header();
    
    // Page options
    $header = ghostpool_option( 'page_header' ) == 'default' ? ghostpool_option( 'page_page_header' ) : ghostpool_option( 'page_header' );
    $height = ghostpool_option( 'page_header_height', 'padding-bottom' ) != '' ? ghostpool_option( 'page_header_height', 'padding-bottom' ) : ghostpool_option( 'page_page_header_height', 'height' );
    $format = ghostpool_option( 'blog_format' );
    $style = ghostpool_option( 'blog_style' );
    $alignment = ghostpool_option( 'blog_alignment' );
    $cats = ghostpool_option( 'blog_cats' ) ? implode( ',', ghostpool_option( 'blog_cats' ) ) : '';
    $post_types = ghostpool_option( 'blog_post_types' ) ? implode( ',', ghostpool_option( 'blog_post_types' ) ) : ghostpool_option( 'blog_post_types' );
    $orderby = ghostpool_option( 'blog_orderby' );
    $per_page = ghostpool_option( 'blog_per_page' );
    $offset = ghostpool_option( 'blog_offset' );
    $image_size = ghostpool_option( 'blog_image_size' );
    $content_display = ghostpool_option( 'blog_content_display' );	
    $excerpt_length = ghostpool_option( 'blog_excerpt_length' );
    $meta_author = ghostpool_option( 'blog_meta', 'author' );
    $meta_date = ghostpool_option( 'blog_meta', 'date' );
    $meta_comment_count = ghostpool_option( 'blog_meta', 'comment_count' );
    $meta_views = ghostpool_option( 'blog_meta', 'views' );
    $meta_likes = ghostpool_option( 'blog_meta', 'likes' );
    $meta_cats = ghostpool_option( 'blog_meta', 'cats' );
    $meta_tags = ghostpool_option( 'blog_meta', 'tags' );
    $read_more_link = ghostpool_option( 'blog_read_more_link' );
    $pagination = 'page-numbers';
    
    ?>
    
    <div class="sub-nav-container">
    	<div class="sub-nav-pagetitle">
    		<h1><?php the_title(); ?></h1>
    	</div>
    	<div class="sub-nav-about-menu">
    		<?php wp_nav_menu( array( 'theme_location' => 'sub-nav-discuss-menu', 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'sub-nav-discuss-menu', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>
    	</div>
    	<div class="sub-nav-extramenu">
    	</div>
    </div>
    
    <div id="gp-content-wrapper" class="gp-container">
    
    	<?php do_action( 'ghostpool_begin_content_wrapper' ); ?>
    			
    	<div id="gp-inner-container">
    		
    		<div id="gp-content">
    
    			<div class="gp-entry-content">
    				
    				
    <div id="bbpress-forums">
    	<?php do_action( 'bbp_template_before_user_replies' ); ?>
    
    	<div id="bbp-user-replies-created" class="bbp-user-replies-created">
    		<div class="bbp-user-section">
    
    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_replies_created( $user_id = bp_loggedin_user_id() ) ) : ?>
        <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
        <?php bbp_get_template_part( 'loop', 'replies' ); ?>
        <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    <?php else : ?>
        <p><?php _e( 'You have not replied to any topics.', 'bbpress' ); ?></p>
    <?php endif; ?>	
    
    		</div>
    	</div>
    </div>				
    				
    			</div>
    			
    		</div>
    			
    		<?php get_sidebar( 'left' ); ?>
    
    		<?php get_sidebar( 'right' ); ?>
    
    	</div>
    	
    	<?php do_action( 'ghostpool_end_content_wrapper' ); ?>
    				
    	<div class="gp-clear"></div>
    	
    </div>
    
    <?php get_footer(); ?>

    In discussions-subscriptions template I inserted the following code:

    <?php
    /*
    Template Name: Discussions Subscriptions
    */
    get_header();
    
    // Page options
    $header = ghostpool_option( 'page_header' ) == 'default' ? ghostpool_option( 'page_page_header' ) : ghostpool_option( 'page_header' );
    $height = ghostpool_option( 'page_header_height', 'padding-bottom' ) != '' ? ghostpool_option( 'page_header_height', 'padding-bottom' ) : ghostpool_option( 'page_page_header_height', 'height' );
    $format = ghostpool_option( 'blog_format' );
    $style = ghostpool_option( 'blog_style' );
    $alignment = ghostpool_option( 'blog_alignment' );
    $cats = ghostpool_option( 'blog_cats' ) ? implode( ',', ghostpool_option( 'blog_cats' ) ) : '';
    $post_types = ghostpool_option( 'blog_post_types' ) ? implode( ',', ghostpool_option( 'blog_post_types' ) ) : ghostpool_option( 'blog_post_types' );
    $orderby = ghostpool_option( 'blog_orderby' );
    $per_page = ghostpool_option( 'blog_per_page' );
    $offset = ghostpool_option( 'blog_offset' );
    $image_size = ghostpool_option( 'blog_image_size' );
    $content_display = ghostpool_option( 'blog_content_display' );	
    $excerpt_length = ghostpool_option( 'blog_excerpt_length' );
    $meta_author = ghostpool_option( 'blog_meta', 'author' );
    $meta_date = ghostpool_option( 'blog_meta', 'date' );
    $meta_comment_count = ghostpool_option( 'blog_meta', 'comment_count' );
    $meta_views = ghostpool_option( 'blog_meta', 'views' );
    $meta_likes = ghostpool_option( 'blog_meta', 'likes' );
    $meta_cats = ghostpool_option( 'blog_meta', 'cats' );
    $meta_tags = ghostpool_option( 'blog_meta', 'tags' );
    $read_more_link = ghostpool_option( 'blog_read_more_link' );
    $pagination = 'page-numbers';
    
    ?>
    
    <div class="sub-nav-container">
    	<div class="sub-nav-pagetitle">
    		<h1><?php the_title(); ?></h1>
    	</div>
    	<div class="sub-nav-about-menu">
    		<?php wp_nav_menu( array( 'theme_location' => 'sub-nav-discuss-menu', 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'sub-nav-discuss-menu', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>
    	</div>
    	<div class="sub-nav-extramenu">
    	</div>
    </div>
    
    <div id="gp-content-wrapper" class="gp-container">
    
    	<?php do_action( 'ghostpool_begin_content_wrapper' ); ?>
    			
    	<div id="gp-inner-container">
    		
    		<div id="gp-content">
    
    			<div class="gp-entry-content">
    				
    <div id="bbpress-forums">				
    <div id="bbp-user-subscriptions" class="bbp-user-subscriptions">				
    				
    <h2>Subscribed Forums</h2>				
    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_forum_subscriptions( $uid ) ) : ?>
        <?php bbp_get_template_part( 'pagination', 'forums' ); ?>
        <?php bbp_get_template_part( 'loop', 'forums' ); ?>
        <?php bbp_get_template_part( 'pagination', 'forums' ); ?>
    <?php else : ?>
        <p><?php _e( 'You are not currently subscribed to any forums.', 'bbpress' ); ?></p>
    <?php endif; ?>
    				
    <br><br>	
    				
    <h2>Subscribed Topics</h2>				
    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_topic_subscriptions( $uid ) ) : ?>
        <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
        <?php bbp_get_template_part( 'loop', 'topics' ); ?>
        <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
    <?php else : ?>
        <p><?php _e( 'You are not currently subscribed to any topics.', 'bbpress' ); ?></p>
    <?php endif; ?>
    
    </div>
    </div>				
    				
    				
    				
    			</div>
    			
    		</div>
    			
    		<?php get_sidebar( 'left' ); ?>
    
    		<?php get_sidebar( 'right' ); ?>
    
    	</div>
    	
    	<?php do_action( 'ghostpool_end_content_wrapper' ); ?>
    				
    	<div class="gp-clear"></div>
    	
    </div>
    
    <?php get_footer(); ?>

    3. I then created two new pages with WordPress under their parent named “Discussions”, one page titled Replies and the other Subscriptions. I then assigned each page to their proper template that I just had created.

    4. Now when I load the pages, the code is asking for a current user, however it ignores and shows on Replies all replies made by all users; on Subscriptions it shows that the user has made NO subscriptions, even though they have.

    #194053
    quigley05
    Participant

    Hi Robin,

    Not quite sure I understand the question. The template names are mentioned within the code I provided and they are located in a page I’ve created in the WordPress backend, not one that is already provided within Buddypress or BBpress.

    Would it be at all helpful to receive access to my backend? Hope this was helpful.

    #194051
    quigley05
    Participant

    Hi Robin,

    I’m pasting what I’ve wrote in earlier messages as the issue hasn’t changed. Feel free to access these pages through the login as I think that will help clarify things.

    The ‘Replies Created’ template is replacing the one originally within the buddypress profile section. It currently displays a list of all global replies within the forum, versus just the current user’s replies.
    (https://obeii.com/discussions/replies/) (testuser / test1234)

    <?php
    /*
    Template Name: Discussions Replies Created
    */
    get_header();
    ?>
    
    <div class="sub-nav-container">
    	<div class="sub-nav-pagetitle">
    		<h1><?php the_title(); ?></h1>
    	</div>
    	<div class="sub-nav-about-menu">
    		<?php wp_nav_menu( array( 'theme_location' => 'sub-nav-discuss-menu', 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'sub-nav-discuss-menu', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>
    	</div>
    	<div class="sub-nav-extramenu">
    	</div>
    </div>
    
    <div id="gp-content-wrapper" class="gp-container">
    
    	<?php do_action( 'ghostpool_begin_content_wrapper' ); ?>
    			
    	<div id="gp-inner-container">
    		
    		<div id="gp-content">
    
    			<div class="gp-entry-content">
    				
    				
    <div id="bbpress-forums">
    	<?php do_action( 'bbp_template_before_user_replies' ); ?>
    
    	<div id="bbp-user-replies-created" class="bbp-user-replies-created">
    		<div class="bbp-user-section">
    
    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_replies_created( $user_id = bp_loggedin_user_id() ) ) : ?>
        <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
        <?php bbp_get_template_part( 'loop', 'replies' ); ?>
        <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    <?php else : ?>
        <p><?php _e( 'You have not replied to any topics.', 'bbpress' ); ?></p>
    <?php endif; ?>	
    
    		</div>
    	</div>
    </div>				
    				
    			</div>
    			
    		</div>
    			
    		<?php get_sidebar( 'left' ); ?>
    
    		<?php get_sidebar( 'right' ); ?>
    
    	</div>
    	
    	<?php do_action( 'ghostpool_end_content_wrapper' ); ?>
    				
    	<div class="gp-clear"></div>
    	
    </div>
    
    <?php get_footer(); ?>

    The ‘Subscribed Forums’ template is also replacing the one originally within the Buddypress profile section. It currently ignores the current user and claims they have no content even though they do. The page also contains ‘Subscribed Topics’ using similar code, which that sections works as expected with no known issues.
    (https://obeii.com/discussions/subscriptions/) (testuser / test1234)

    <?php
    /*
    Template Name: Discussions Subscriptions
    */
    get_header();
    ?>
    
    <div class="sub-nav-container">
    	<div class="sub-nav-pagetitle">
    		<h1><?php the_title(); ?></h1>
    	</div>
    	<div class="sub-nav-about-menu">
    		<?php wp_nav_menu( array( 'theme_location' => 'sub-nav-discuss-menu', 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'sub-nav-discuss-menu', 'fallback_cb' => 'null', 'walker' => new Ghostpool_Custom_Menu ) ); ?>
    	</div>
    	<div class="sub-nav-extramenu">
    	</div>
    </div>
    
    <div id="gp-content-wrapper" class="gp-container">
    
    	<?php do_action( 'ghostpool_begin_content_wrapper' ); ?>
    			
    	<div id="gp-inner-container">
    		
    		<div id="gp-content">
    
    			<div class="gp-entry-content">
    				
    <div id="bbpress-forums">				
    <div id="bbp-user-subscriptions" class="bbp-user-subscriptions">				
    				
    <h2>Subscribed Forums</h2>				
    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_forum_subscriptions( $uid ) ) : ?>
        <?php bbp_get_template_part( 'pagination', 'forums' ); ?>
        <?php bbp_get_template_part( 'loop', 'forums' ); ?>
        <?php bbp_get_template_part( 'pagination', 'forums' ); ?>
    <?php else : ?>
        <p><?php _e( 'You are not currently subscribed to any forums.', 'bbpress' ); ?></p>
    <?php endif; ?>
    				
    <br><br>	
    				
    <h2>Subscribed Topics</h2>				
    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_topic_subscriptions( $uid ) ) : ?>
        <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
        <?php bbp_get_template_part( 'loop', 'topics' ); ?>
        <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
    <?php else : ?>
        <p><?php _e( 'You are not currently subscribed to any topics.', 'bbpress' ); ?></p>
    <?php endif; ?>
    
    </div>
    </div>				
    				
    				
    				
    			</div>
    			
    		</div>
    			
    		<?php get_sidebar( 'left' ); ?>
    
    		<?php get_sidebar( 'right' ); ?>
    
    	</div>
    	
    	<?php do_action( 'ghostpool_end_content_wrapper' ); ?>
    				
    	<div class="gp-clear"></div>
    	
    </div>
    
    <?php get_footer(); ?>
    #194036
    Robin W
    Moderator

    ok, can I ask what you are trying to achieve?

    where does this display ?

    is this in buddypress or bbpress screen?

    #194029
    RobertL4807
    Participant

    Looking for an admin panel plugin to be able to monitor latest posts and replies.

    Also, a word blocker plugin would be great too.

    I see a couple admin panel plugins but they are 3 software versions old.

    Any suggestions?

    Much appreciated.
    Kindest,
    Robert

    #194027
    Robin W
    Moderator

    this is a support forum for bbpress which ruins under wordpress, so if you are not wordpress then your thread is irrelevant 🙂

    #194022
    kwinanaonline
    Participant

    I have tried to create a topic as a user and it does not have a box to enter the description… Please see image below.

    WP version – 4.9.7
    bbPress version – 2.5.14
    Link to site

    Related Image

    #194021
    Robin W
    Moderator

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #194020
    Robin W
    Moderator

    If you know how to use ftp, then

    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

    Then on your pc create a text file called content-single-forum.php and put the following contents into it

    <?php
    
    /**
     * Single Forum Content Part
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    ?>
    
    <div id="bbpress-forums">
    
    	<?php bbp_breadcrumb(); ?>
    
    	<?php bbp_forum_subscription_link(); ?>
    
    	<?php do_action( 'bbp_template_before_single_forum' ); ?>
    
    	<?php if ( post_password_required() ) : ?>
    
    		<?php bbp_get_template_part( 'form', 'protected' ); ?>
    
    	<?php else : ?>
    
    		
    		<?php if ( bbp_has_forums() ) : ?>
    
    			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
    
    		<?php endif; ?>
    
    		<?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    			
    			<?php bbp_single_forum_description(); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php elseif ( !bbp_is_forum_category() ) : ?>
    
    			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php endif; ?>
    		
    	
    
    	<?php endif; ?>
    
    	<?php do_action( 'bbp_template_after_single_forum' ); ?>
    
    </div>

    FTP this file to the directory you created above, so you end up with

    wp-content/themes/%your-theme-name%/bbpress/content-single-forum.php

    bbpress will then use this file.

    #194019
    Robin W
    Moderator

    I cannot say – that would require access to your sites files, database and admin, and I suspect your users PC – and well beyond any free help.

    all I can say is that wordpress is used on 74 million sites, and bbpress just uses wordpress logon, nothing more.

    #194016
    rasmusandesther
    Participant

    I have queried this in with the WordPress support and as expected they say it is a BBpress issue.

    So who is right?

    #194013

    In reply to: Odd slow-query

    Robin W
    Moderator

    not directly, but bbpress does call wordpress functions via wp_query, and suspect this is the result of one of those.

    #194011
    Indrekkor
    Participant

    Hello,

    Been optimizing my bbPress install, have managed to make it blazing fast with switching to MariaDB and configuring indexes.

    Now i got rid of the usual slow-queries from my slow-query.log now something appeared that i haven’t seen before.

    https://pastebin.com/rhUz90gf

    Is this a core bbPress query?

    
    SELECT   wp_posts.ID FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1  AND wp_posts.post_parent IN (LONG LIST OF IDs)
    AND (
      ( wp_postmeta.meta_key = '_bbp_forum_id' AND CAST(wp_postmeta.meta_value AS SIGNED) NOT IN ('11212874','22','1778309','2273738') )
    ) AND wp_posts.post_type = 'reply' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC, wp_posts.ID DESC LIMIT 0, 1;
    #194008
    Robin W
    Moderator

    bbpress just uses wordpress login, so at best this is a wordpress issue, so suggest you log it there

    Welcome to the WordPress.org support forums

    #194007
    rasmusandesther
    Participant

    The text was a reply, when I asked if used bookmarks to log in or if she did anything different when logging in.

    The user has now sent me two screenshots where I can see she is logged in as a different users, again neither her old or new username.

    So I would say it is a BBpress issue.

    #194006
    Robin W
    Moderator

    that’s not what the text you quoted says – she states that it is an old username.

    Anyway this is a wordpress not bbpress issue, and is highly likely that it is user pc/browser/cookie/remember me issue.

    Wordpress powers 10% of the internet, if this happened then it would be a major security issue for the whole of the internet 🙂

    #194004

    In reply to: bbpress with Mailster

    Robin W
    Moderator

    bbpress just uses wordpress registration, so the question is

    Is there any way that we can automatically send a welcome email to the people that have registered using Mailster plugin?

    and ask mailster 🙂

    #194002

    Topic: bbpress with Mailster

    in forum Plugins
    Anmol DR Pant
    Participant

    Is there any way that we can automatically send a welcome email to the people that have subscribed to the website through bbpress registration using Mailster plugin?

    #194000
    Robin W
    Moderator

    log in is a wordpress issue, bbpress just uses the wordpress login

    when you say ‘being logged in as a different user.’ is this logging in as user ‘a’ and getting user ‘b’, or on entering the site being already logged in as user ‘b’.

    #193994
    dinsl
    Participant

    Hello there!

    Is it possible to migrate from IPB 4 to bbpress? From the importer i see only the option IPB 3 and doesn´t work as the IPB 4 database is different.

    I saw also one thread https://codex.bbpress.org/getting-started/importing-data/import-forums/invision/ but not for the IPB 4x version. Can somebody help me please?

    Thanks in advance

    #193986
    mortalites
    Participant

    I started using bbPress recently and I made a few forum Categories and forums/Subforums but for some reason anytime I make a new forum. It adds a a horizontal line at the bottom of the Forum Archives Page. Right now I have 3 forums and there are 3 horizontal Lines. I have done the following troubleshooting and it has not fixed the issue.

    I removed bbp style pack which is the only forum plugin I have installed.
    I tried creating new forums/sub forums and using no descriptions.

    I am using Astra 1.4.1 Theme
    I have not tried changing themes. I have had this theme the entire time.
    Here is the forum I set up. I looked at the Browser Dev Tools but I am not sure why its creating new Div sections.
    https://www.leagueofnations.xyz/forums/

    Please let me know what other information I can provide. I am not sure if this is a bbpress issue or an issue with the Astra Theme.

    Thanks

Viewing 25 results - 6,926 through 6,950 (of 64,429 total)
Skip to toolbar