Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 6,351 through 6,375 (of 64,408 total)
  • Author
    Search Results
  • #197866
    kennethykw
    Participant

    Now I am using bbpress, when I try to login using wrong password/ blank password. it will redirect me to wp-login.php. How can I set the redirect to the same login page?

    inderpreet2018
    Participant

    Hi,

    I want to send notification to my members/ participants, when ever new Forum is created. I found plugin that send email notification when new topic and replies created.

    bbPress Notify (No Spam)

    Is there any plugin/code that helps me to send email notification when new Forum is created??

    Thanks

    #197816
    meathelix01
    Participant

    Hey all,

    So I have BuddyBoss and Learndash with bbpress and I want to edit the single forum.

    What I exactly want to do is place the Topic Area above the Forums Area. So just swap them around, how am I able to do this?

    Thanks

    #197803
    saudor
    Participant

    Hello, I am trying to cut down on spam and defaulting all new users to spectator/subscriber mode and use certain “tasks” such as using the site to automatically change their role to participant/member.

    I found this link but all it does is just make the forum role blank:

    how to change forum roles programmatically

    Can someone point me in the right direction? Thanks!

    BBpress Version 3.2. Updated to 4.1 but still same issue

    #197795
    Olivier
    Participant

    Hi !

    Some texts are missing on the dashboard Widget : any idea ?
    I tried with only bbpress plugin enabled and the default WP theme, same problem.

    It was working when I installed bbpress the first time.
    I already tried the tools provided to repair bbpress.

    Thanks πŸ™‚

    Dashboard widget capture

    #197792
    Barry
    Participant

    The short and simple answer … is no πŸ™‚

    bbPress is a plugin for WordPress and it requires many of the features and facilities that WordPress provides in order to function.

    What CMS are you using?

    #197786
    qianjiu
    Participant

    This is my website: https://www.9skymachining.com We are a mechanical processing company. I started with WordPRESS, but I changed it now. I am using CMS now, but I want to add a BBpress forum. I don’t know if there is any way?

    #197781
    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 deosnlt work, also 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.

    Then come back

    #197754
    shemakeswebsites
    Participant

    Hello everyone. I’m using the following snippet that will display the first name and last initial for users in buddypress. However, in bbpress it has no effect. Any ideas on how I could edit this to get it to work for bbpress? I’m so sad that something like this isn’t a default option.

    $changeLastInitial = new changeLastInitial;
    add_filter('bp_displayed_user_fullname', array(
        $changeLastInitial,
        'last_initial'
    ), 7, 1);
    add_filter('bp_get_member_name', array(
        $changeLastInitial,
        'last_initial'
    ), 7, 1);
    add_filter('bp_get_the_profile_field_value', array(
        $changeLastInitial,
        'last_initial_xprofle'
    ), 7, 3);
    add_filter('bp_core_get_user_displayname', array(
        $changeLastInitial,
        'bp_core_get_user_displayname'
    ), 7, 2);
    
    class changeLastInitial
    {
        function bp_core_get_user_displayname($name, $id)
        {
            $name = $this->last_initial($name);
            return $name;
        }
        function last_initial_xprofle($value, $type, $id)
        {
            if ($id == 1) {
                $value = $this->last_initial($value);
            }
            return $value;
        }
        function last_initial($name)
        {
            $name_a = explode(' ', $name);
            // if there is at least two parts to the name
            if (count($name_a) == 2) {
                // replace the last part of the name with the first letter of the last part
                $name_a[count($name_a) - 1] = substr($name_a[count($name_a) - 1], 0, 1);
                // put it all back together
                $name  = implode(' ', $name_a).".";
            }
            return $name;
        }
    }
    #197751
    Robin W
    Moderator

    bbpress just uses wordpress registration, so the issue is with that.

    Firstly check that you have membership ticked in dashboard>settings>general so that anyone can register.

    If you are not receiving emails, then what is set in
    dashboard>settings>general>email address
    and does it match your site?
    1. You should be aware that many spam filters strip messages that do not come from the correct address. So if your site is mysite.com and your email address in wordpress settings>general is fred@gmail.comthen it is likely that messages will be dumped in transit. You need to set up email to come from your site eg fred@mysite.com, your hosting provider can help if needed.
    2. Just bbpress?
    Then you need to see if this is wordpress wide or just bbpress.
    Try https://wordpress.org/plugins/check-email/

    #197742

    Hi everyone,

    I use WordPress 5.03 with BBpress version 2.5.14.
    My website is http://club.geef-model.nl

    The issue that I experience with my forum is that I don’t receive a notification when I new user is registered.

    Most likely it is just one box I have to enable πŸ˜‰
    but I cannot find it.

    I hope there is somebody who has the solution for me.

    Thank you in advance for your help and response.

    With kind regards,
    Klaziena Waerts, the Netherlands

    My site is in Dutch and when I must translate it, or change it (for a short while) to English is that no problem at all πŸ™‚

    #197740
    cindyy
    Participant

    Hi! I tried typing @mention user for reply. but when I try displaying it by query.. it didn’t have the link to the user tag. i just display a plain text

    #197739
    Gomle
    Participant

    Hi, I hope it’s ok to ask my question here. I am trying to import about 175.000 posts, 11400 threads from simplepress 5.x to bbpress.
    All tables are in the same db, on the same server.

    It imported the threads ok, and the first 9000 posts. But after this the script seems to have a problem continue the import. It goes very slow.

    I have tried started again and again, and when I stop the script, and start it again – it imports about 50 before it stops importing – but it keeps running though.

    When I press Stop – I go to the Repair-tab in another browser-window, and reset the counting, then I go back and restart the import using “Delete all information from earlier imports” with 1 second delay, and 100 at the time.

    Still imports around 50 more, and then it stops. So now I am at about 17.600 posts. 10%.

    Will this not work for 175.000 posts? Am I doing something wrong?

    Server CPU is at 0%

    #197723
    Robin W
    Moderator

    ok, let’s try something more basic

    this code just replaces the bbp_get_user_favorites_link, but puts the home url as the permalink

    function rew_get_user_favorites_link( $args = '', $user_id = 0, $wrap = true ) {
    		if ( ! bbp_is_favorites_active() ) {
    			return false;
    		}
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'favorite'  => __( 'Favorite',  'bbpress' ),
    			'favorited' => __( 'Favorited', 'bbpress' ),
    			'user_id'   => 0,
    			'topic_id'  => 0,
    			'before'    => '',
    			'after'     => ''
    		), 'get_user_favorites_link' );
    
    		// Validate user and topic ID's
    		$user_id  = bbp_get_user_id( $r['user_id'], true, true );
    		$topic_id = bbp_get_topic_id( $r['topic_id'] );
    		if ( empty( $user_id ) || empty( $topic_id ) ) {
    			return false;
    		}
    
    		// No link if you can't edit yourself
    		if ( ! current_user_can( 'edit_user', (int) $user_id ) ) {
    			return false;
    		}
    
    		// Decide which link to show
    		$is_fav = bbp_is_user_favorite( $user_id, $topic_id );
    		if ( ! empty( $is_fav ) ) {
    			$text       = $r['favorited'];
    			$query_args = array( 'action' => 'bbp_favorite_remove', 'topic_id' => $topic_id );
    		} else {
    			$text       = $r['favorite'];
    			$query_args = array( 'action' => 'bbp_favorite_add',    'topic_id' => $topic_id );
    		}
    
    		$permalink = home_url() ;
    
    		$url  = esc_url( wp_nonce_url( add_query_arg( $query_args, $permalink ), 'toggle-favorite_' . $topic_id ) );
    		$sub  = $is_fav ? ' class="is-favorite"' : '';
    		$html = sprintf( '%s<span id="favorite-%d"  %s><a href="%s" class="favorite-toggle" data-topic="%d">%s</a></span>%s', $r['before'], $topic_id, $sub, $url, $topic_id, $text, $r['after'] );
    
    		// Initial output is wrapped in a span, ajax output is hooked to this
    		if ( ! empty( $wrap ) ) {
    			$html = '<span id="favorite-toggle">' . $html . '</span>';
    		}
    
    		// Return the link
    		return apply_filters( 'rew_get_user_favorites_link', $html, $r, $user_id, $topic_id );
    	}

    so remove my previous suggestion, and add the above function

    Then where you have

    bbp_user_favorites_link($fav_args); in your code

    replace with

    echo rew_get_user_favorites_link($fav_args);

    #197701
    For Games
    Participant

    I know the Yoast SEO has many problems with BBpress. I wrote a small plugin to help Yoast SEO working better with BBPress.

    This plugin improved the following problem with yoast wordpress seo in bbpress:
    1, Canonical lost on single forum
    2, Canonical lost on single topic page
    3, Canonical lost on user profile page
    4, Canonical lost on topic tag page
    5, Meta title incorrect on user profile page
    6, Meta title incorrect on topic tag
    7, Meta description lost on topic archive
    8, Meta description lost on user profile page
    9, Meta description lost topic tag page
    10, Meta description lost on single topic page
    11, Meta description lost on single forum page

    BBP Improvements for yoast

    #197699
    For Games
    Participant

    I know the Yoast SEO has many problems with BBpress. I wrote a small plugin to help Yoast SEO working better with BBPress.

    This plugin improved the following problem with yoast wordpress seo in bbpress:
    1, Canonical lost on single forum
    2, Canonical lost on single topic page
    3, Canonical lost on user profile page
    4, Canonical lost on topic tag page
    5, Meta title incorrect on user profile page
    6, Meta title incorrect on topic tag
    7, Meta description lost on topic archive
    8, Meta description lost on user profile page
    9, Meta description lost topic tag page
    10, Meta description lost on single topic page
    11, Meta description lost on single forum page

    Hope this plugin can help someone else has the same problems.

    BBP Improvements for yoast

    #197698
    For Games
    Participant

    I know the Yoast SEO has many problems with BBpress. I wrote a small plugin to help Yoast SEO working better with BBPress.

    This plugin improved the following problem with yoast wordpress seo in bbpress:
    1, Canonical lost on single forum
    2, Canonical lost on single topic page
    3, Canonical lost on user profile page
    4, Canonical lost on topic tag page
    5, Meta title incorrect on user profile page
    6, Meta title incorrect on topic tag
    7, Meta description lost on topic archive
    8, Meta description lost on user profile page
    9, Meta description lost topic tag page
    10, Meta description lost on single topic page
    11, Meta description lost on single forum page

    Hope this plugin can help someone else has the same problems.

    BBP Improvements for yoast

    #197697
    Gomle
    Participant

    Just 5 years since the last post, so I thought it was time to get some life back into this thread.

    Simple press 5.7, to BBpress newest.
    Forum has about 11500 threads, 178.000 posts on 9000 users.

    It imports all the threads, but it stalls at 9200 posts.

    Can I just press STOP and then START?
    What should I do to let it continue from where it stopped?

    #197696
    Larry Lewis
    Participant

    Been looking around about how to convert an old VBulletin forum into BBPress where all of the users in VB are already in WP. What I was planning on doing was processing the topics finding the WP user for the post and then adding it to BBPress.

    Only there doesn’t seem to be an API type widget to add a post, is there a bit of a hint somewhere as to what I need to do that will let me add the topics (as topic or reply) so that I can do it diresctly if necessary?

    Thanks
    Larry

    #197693
    mattbru
    Participant

    Robin, Yes – I’ve dug pretty deep myself and it is all pretty complicated.

    I’ve tried the action you provided and it does not do anything different, unfortunately.

    Topics

    Earlier – I did try “hacking” (editing bbpress core plugin code) and changing the redirect as you did here with the hook. But I could not get it to stay on the homepage then either.

    Hm. Maybe its not possible? I coudlnt find the exact code where it was happening. I thought it was inside the bbp_favorites_handler() function located here: bbpress/includes/users/functions.php line 430 Looks like youre using that hook on line 481 (bbp_favorites_handler).

    I wonder if it has to do with either of these actions:
    template_redirect
    bbp_template_redirect

    I tried this modified version of your hook code:

    add_action( 'bbp_favorites_handler', 'tcdf_redirect_to_home_page' , 99, 1) ;
    function tcdf_redirect_to_home_page ($success) {
    	if ( true === $success && (is_front_page() || is_home() || is_page(2)) ) {
    		$redirect = home_url() ;
    		wp_safe_redirect( $redirect );
    		// For good measure
    		exit();
    	}		
    }

    No luck. πŸ™

    #197677
    mattbru
    Participant

    Thank you for taking a look Robin.
    Below is the entire block of code for the post block.
    The lines youll be concerned with are 76-80 and 84-93. But ultimately it is line 92 <?php bbp_user_favorites_link($fav_args); ?>

    
    <?php
    /**
     * BuddyPress topic "query"
     * Show grid of all topics inside "ul.container"
     * @link http://hookr.io/plugins/bbpress/2.5.9/functions/bbp_has_topics/
     * 
     */
    	$topic_id = bbp_get_topic_id();
    	$forum_id = bbp_get_topic_forum_id($topic_id);
    	$date = bbp_get_topic_post_date($topic_id,true);
    	$time = reformat_bbp_post_time($date);
    
    	$title = bbp_get_topic_title();
    		$content = strip_tags(bbp_get_topic_content());
    		$content = trim(preg_replace('/^[ \t]*[\r\n]+/m','',$content)); 
    		$content = preg_replace('/(Attachments:).*$/','',$content); 
    		$content = preg_replace('/(This topic was modified).*$/m','',$content); 
    		$excerpt = getSummary($content,186);
    
    	$forum_title = get_post_field( 'post_title', $forum_id, 'raw' );
    	$forum_link = bbp_get_forum_permalink( $forum_id );
    	
    	$user_id = get_post_field('post_author', $topic_id);
    	$avatar = get_avatar( $user_id, 30 );
    	$author_name = esc_html( get_the_author_meta( 'display_name', $user_id ) );
    	
    	$voice_count = bbp_get_topic_voice_count($topic_id);
    	$voice_label = $voice_count === 1 ? 'voice' : 'voices';
    	$reply_count = bbp_get_topic_reply_count($topic_id);
    	$reply_label = $reply_count === 1 ? 'comment' : 'comments';
    	$image_size = 'post-featured';
    
    	// get topic post featured image
    	$src = wp_get_attachment_image_src( get_post_thumbnail_id($topic_id), $image_size);
    	$imgsrc = get_the_post_thumbnail($topic_id) != '' ? $src[0] : '';
    	$image_type = 'img';
    	$has_image = true;
    
    	// attempt to get the file attachment
    	$attachments = d4p_get_post_attachments($topic_id);
    	$attachment_url = wp_get_attachment_image_src( $attachments[0]->ID, $image_size);
    	$attachment_url = $attachment_url[0];
    
    	$cn = d4p_topic_attachments_count($topic_id);
    	
    	// if its empty, set src as attachment url
    	if ($imgsrc == '' && !empty($attachment_url)) {
    		$imgsrc = $attachment_url;
    		$image_type = 'bg-img attachment';
    	}
    	
    	// if its still empty, set src as first image found in the post
    	if (empty($imgsrc)) {
    		/**
    		 * catch_that_image()
    		 * Gets the first image in the body of the post
    		 * defined in /library/custom-theme-functions.php
    		 */
    		$imgsrc = catch_that_image($title,true);
    		if (empty($imgsrc)) {
    			$has_image = false;
    			$image_type = 'none';
    		} else {
    			$image_type = 'bg-img catch';
    		}
    	}
    
    	$is_ss = bbp_is_topic_super_sticky() ? 'super-sticky' : 'not-super-sticky';
    	$bgcolor = get_post_meta( $topic_id, 'sticky_post_color', $single = false );
    	$bgcolor = (!empty($bgcolor)) ? $bgcolor[0] : '';
    
    	if (!empty($bgcolor)) {
    		$image_type .= ' color-'.$bgcolor;
    	}
    
    	// gold count
    	$gold_count = bbp_get_topic_favoriters($topic_id);
    	$gold_count = count($gold_count);
    	$before_html = '<span class="gold-count">'.$gold_count.'</span>';
    	$fav_args = array('before' => $before_html);
    
    ?>
    	<li class="fourth a <?php echo $image_type; ?>" data-id="<?php echo $topic_id; ?>" data-userid="<?php echo $user_id; ?>" data-sticky="<?php echo $is_ss; ?>">
    		<?php if (!is_user_logged_in()) : ?>
    			<span id="favorite-toggle">
    				<?php echo $before_html; ?>
    				<span id="favorite-<?php echo $topic_id ?>" data-tooltip="Give Critter Gold">
    					<a href="#" class="favorite-toggle" data-topic="<?php echo $topic_id ?>" rel="nofollow">Favorite</a>
    				</span>
    			</span>
    		<?php else : ?>
    			<?php bbp_user_favorites_link($fav_args); ?>
    		<?php endif; ?>
    		
    		<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>">
    			<figure <?php if($has_image) : ?> style="background-image: url('<?php echo $imgsrc; ?>');"<?php endif; ?> class="<?php if(!$has_image) { echo 'no-img'; } ?>">
    			<?php if ($has_image) : ?>
    				<img src="<?php echo $imgsrc; ?>" alt="<?php echo $title; ?>">
    			<?php else : ?>
    				<h3><?php echo $title; ?></h3>
    			<?php endif; ?>
    				<span class="meta-inside">
    					<span class="read">Read Post</span>
    					<span class="data">
    						<span class="replies"><?php echo $reply_count; ?> <?php echo $reply_label; ?></span>
    					</span>
    					<span class="author">Started By <?php echo $avatar; ?> <?php echo $author_name; ?></span>
    				</span>
    			</figure>
    			<!-- <a href="<?php echo $forum_link; ?>"><?php echo $forum_title; ?></a> |  -->
    			<figcaption>
    			<?php if ($has_image) : ?>
    				<h3><?php echo $title; ?></h3>
    			<?php endif; ?>
    				<span class="meta">
    					<span class="category"><?php echo $forum_title; ?></span><span> | </span>
    <?php /*
    					<span><?php echo $voice_count; ?> <?php echo $voice_label; ?></span> | 
    */ ?>
    					<span class="comments"><?php echo $reply_count; ?> <?php echo $reply_label; ?></span> |
    					<time><?php echo $time; ?></time>
    				</span>
    			<?php if ($has_image) : ?>
    				<p><?php echo $excerpt; ?></p>
    			<?php endif; ?>
    			</figcaption>
    		</a>
    	</li>
    
    #197673

    In reply to: Create new forum error

    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 deosnlt work, also 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.

    Then come back

    #197672
    Robin W
    Moderator

    If you can – I’d try it with a standard theme (eg twentyxx) and no other plugins and confirm that it is a bbpress issue

    #197671
    Robin W
    Moderator

    bbpress just uses wordpress registration, so this should work for you

    WP After Registration Redirect User Advanced

    come back and confirm

    #197669
    lesles08
    Participant

    At certain points searching/filtering/sorting in the admin for bbpress custom post types (topics, replies, forums) I get a white screen with the error “Invalid post type.” It appears in the URL that it might be resending the post type which is creating an array so in the url it says &post_type=array& which is throwing the error.
    Example: https://mydomain.com/wp-admin/edit.php?orderby=modified&order=asc&s=Product+Releases&post_status=all&amp;post_type=Array&_wpnonce=d255a43653&_wp_http_referer=%2Fwp-admin%2Fedit.php%3Forderby%3Dmodified%26order%3Dasc%26s%3DProduct%2BReleases%26post_status%3Dall%26post_type%3Dtopic%26action%3D-1%26m%3D0%26bbp_forum_id%26action2%3D-1&action=-1&m=0&topic-prefix=0&bbp_forum_id=18134&filter_action=Filter&paged=1&action2=-1

    Is there any way to fix this? We are trying to sift through many many topics to do some edits on a forum that we are migrating and need better ways to find posts in the admin. Any input as to where to fix it or if it is even fixable would be greatly appreciated.

    WP version: 5.0.3
    bbPress version: 2.5.14
    Site: https://corepointuc.wpengine.com (it’s locked down private but this is an admin issue)
    Theme: Divi Child theme
    Not sure if this is a bug so please let me know if I need to report it as such. (ie. trac ticket)

    Thank you for any input or leads in the right direction!
    Leslie

Viewing 25 results - 6,351 through 6,375 (of 64,408 total)
Skip to toolbar