Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 17,776 through 17,800 (of 64,532 total)
  • Author
    Search Results
  • Preston
    Participant

    I’m finally getting back around to working on this and realized I’ll need to hide the topics from a specific user role as well. I can’t just remove spectate/participate capabilities because I need them to be able to post topics, just like users who aren’t logged in.

    I’m having trouble finding a way to get the current user’s role for bbPress so I can use it in the same manner I used the user’s ID above.

    I found this function, but it returns the WordPress role (administrator, editor, etc):

    function get_user_role() {
        global $current_user;
    
        $user_roles = $current_user->roles;
        $user_role = array_shift($user_roles);
    
        return $user_role;
    }

    Can I somehow adapt it to return the bbPress role instead? (keymaster, moderator, etc.)

    #154558

    In reply to: Truncated usernames

    Robkk
    Moderator

    long characters are going to show up like this anyway

    splitboard.co
    m

    you could lower the font-size a little bit more with css to allow maybe 2-3 more characters
    but its still going to break the word apart if there is a certain amount of characters anyway

    you could add more width to div.reply-author
    maybe to about 150px

    add this anywhere where you can put custom css

    #bbpress-forums div.bbp-topic-author, 
    #bbpress-forums div.bbp-reply-author {
    width: 150px;
    }

    you also might have to add some @media query css too if i missed it.

    #154555

    In reply to: Activate page

    Robin W
    Moderator

    there is no [bbp-activate] shortcode

    https://codex.bbpress.org/shortcodes/

    what are you trying to do?

    fractalmask
    Participant

    Removed multisite and converted to single

    bbpress tools shows

    You do not have sufficient permissions to access this page.

    may be issues in roles ? because multisite sets admin user as super-admin ?

    #154543
    evilhare
    Participant

    I have the same problem… I have the forum page set to show the bbpress sidebar but it doesn’t show

    #154542
    #154470
    Robkk
    Moderator

    you add this to your themes functions.php or a functionality plugin.

    you then use css to style the roles from there.

    add_filter('bbp_before_get_reply_author_role_parse_args', 'ntwb_bbpress_reply_css_role' );
    function ntwb_bbpress_reply_css_role() {
    
    	$role = strtolower( bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) ) );
    	$args['class']  = 'bbp-author-role bbp-author-role-' . $role;
    	$args['before'] = '';
    	$args['after']  = '';
    
    	return $args;
    }
    
    add_filter('bbp_before_get_topic_author_role_parse_args', 'ntwb_bbpress_topic_css_role' );
    function ntwb_bbpress_topic_css_role() {
    
    	$role = strtolower( bbp_get_user_display_role( bbp_get_topic_author_id( $topic_id ) ) );
    	$args['class']  = 'bbp-author-role bbp-author-role-' . $role;
    	$args['before'] = '';
    	$args['after']  = '';
    
    	return $args;
    }

    It grabs the topic or reply author role and adds another CSS class with prefix bbp-role- so you now have a new set of CSS classes e.g. bbp-role-keymaster, bbp-role-moderator, bbp-role-participant etc that you can then add your custom CSS styles to.

    link this was from

    Topic background color depending on role

    more info about a functionality plugin

    How to create your own WordPress functionality plugin

    #154535
    durqrimast
    Participant

    Hi, sorry for my bad english. Let me try to tell my problem.

    I’m useing bbpress and userpro. In forum when you click someones or your little profile pic. U go to his/her profile setting.

    ın my website: http://www.sosyalperde.com/forum/kullanici/admin/

    but i want it to go to userpro plug-ins page: http://www.sosyalperde.com/profile-2/admin/

    Any idea how can i do it?

    #154536
    bcrider
    Participant

    Hello,

    I’m using WordPress 4.0 running the Valeni Theme.

    In my bbpress forum on the topic pages, usernames longer than 12 characters are being truncated.

    See example:

    Is there any way to prevent this?

    Thanks!

    #154531
    Nicolas Korobochkin
    Participant

    @robin-w send it. bbpress.org delete spam replies immediately?

    #154529
    colinsp
    Participant

    On my site I have several boards in each Forum. Is there a way of showing which of the boards have the latest post? Or alternatively is there an option to show unread posts?

    Wordpress 4.0, bbPress 2.5.4. The forums are not available to view as they are member only.

    What I want is some indication of which board the red circled item refers to in the attached image.

    https://www.flickr.com/photos/7515926@N08/15602098719

    #154525
    authorarticle
    Participant

    I used wordpress 4.0 and bbpress 2.54
    I try to register to my site but e-mail not sent anything.
    I ‘ve tried to over and over again.
    but same result.
    Please help me .
    How can i solution this problem.
    Thanks

    #154515
    tharsheblows
    Participant

    The reason for this is that sending out subscription emails one by one was appreciably slowing down some large sites, so in the last update they switched to bcc’ing in subscribers.

    It’s fairly straightforward to change how the subscription emails are handled once you know how. If you unhook ‘bbp_notify_topic_subscribers’ you can then hook in your own subscription function.

    Below is similar to what I did – I have it in a plugin but you could put it in your bbpress-functions.php file too, I think – this should be in a child theme. If you do this, please test it first as this is simply an example and not necessarily working code. I’ve gone ahead and simply pasted in the function that was used in the previous version of bbPress so you don’t have to find it.

    //custom topic subscription emails, unhook old function, hook in new one
    remove_action( 'bbp_new_reply',    'bbp_notify_topic_subscribers', 11, 5 );
    add_action( 'bbp_new_reply',    'mjj_bbp_notify_topic_subscribers', 11, 5 );
    
    /** 
    * from bbpress / includes / common / functions.php
    * this is taken from 2.5.3 - I've left in all comments to make it easier to understand
    **/
    
    /** Subscriptions *************************************************************/
    
    /**
     * Sends notification emails for new replies to subscribed topics
     *
     * Gets new post's ID and check if there are subscribed users to that topic, and
     * if there are, send notifications
     *
     * @since bbPress (r2668)
     *
     * @param int $reply_id ID of the newly made reply
     * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
     * @uses bbp_get_reply_id() To validate the reply ID
     * @uses bbp_get_topic_id() To validate the topic ID
     * @uses bbp_get_forum_id() To validate the forum ID
     * @uses bbp_get_reply() To get the reply
     * @uses bbp_is_reply_published() To make sure the reply is published
     * @uses bbp_get_topic_id() To validate the topic ID
     * @uses bbp_get_topic() To get the reply's topic
     * @uses bbp_is_topic_published() To make sure the topic is published
     * @uses bbp_get_reply_author_display_name() To get the reply author's display name
     * @uses do_action() Calls 'bbp_pre_notify_subscribers' with the reply id,
     *                    topic id and user id
     * @uses bbp_get_topic_subscribers() To get the topic subscribers
     * @uses apply_filters() Calls 'bbp_subscription_mail_message' with the
     *                    message, reply id, topic id and user id
     * @uses apply_filters() Calls 'bbp_subscription_mail_title' with the
     *                    topic title, reply id, topic id and user id
     * @uses apply_filters() Calls 'bbp_subscription_mail_headers'
     * @uses get_userdata() To get the user data
     * @uses wp_mail() To send the mail
     * @uses do_action() Calls 'bbp_post_notify_subscribers' with the reply id,
     *                    topic id and user id
     * @return bool True on success, false on failure
     */
    function mjj_bbp_notify_subscribers( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $reply_author = 0 ) {
    
    	// Bail if subscriptions are turned off
    	if ( !bbp_is_subscriptions_active() )
    		return false;
    
    	/** Validation ************************************************************/
    
    	$reply_id = bbp_get_reply_id( $reply_id );
    	$topic_id = bbp_get_topic_id( $topic_id );
    	$forum_id = bbp_get_forum_id( $forum_id );
    
    	/** Reply *****************************************************************/
    
    	// Bail if reply is not published
    	if ( !bbp_is_reply_published( $reply_id ) )
    		return false;
    
    	/** Topic *****************************************************************/
    
    	// Bail if topic is not published
    	if ( !bbp_is_topic_published( $topic_id ) )
    		return false;
    
    	/** User ******************************************************************/
    
    	// Get topic subscribers and bail if empty
    	$user_ids = bbp_get_topic_subscribers( $topic_id, true );
    	if ( empty( $user_ids ) )
    		return false;
    
    	// Poster name
    	$reply_author_name = bbp_get_reply_author_display_name( $reply_id );
    
    	/** Mail ******************************************************************/
    
    	do_action( 'bbp_pre_notify_subscribers', $reply_id, $topic_id, $user_ids );
    
    	// Remove filters from reply content and topic title to prevent content
    	// from being encoded with HTML entities, wrapped in paragraph tags, etc...
    	remove_all_filters( 'bbp_get_reply_content' );
    	remove_all_filters( 'bbp_get_topic_title'   );
    
    	// Strip tags from text
    	$topic_title   = strip_tags( bbp_get_topic_title( $topic_id ) );
    	$reply_content = strip_tags( bbp_get_reply_content( $reply_id ) );
    	$reply_url     = bbp_get_reply_url( $reply_id );
    	$blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    
    	// Loop through users
    	foreach ( (array) $user_ids as $user_id ) {
    
    		// Don't send notifications to the person who made the post
    		if ( !empty( $reply_author ) && (int) $user_id === (int) $reply_author )
    			continue;
    
    		// For plugins to filter messages per reply/topic/user
    		$message = sprintf( __( '%1$s wrote:
    
    %2$s
    
    Post Link: %3$s
    
    -----------
    
    You are receiving this email because you subscribed to a forum topic.
    
    Login and visit the topic to unsubscribe from these emails.', 'bbpress' ),
    
    			$reply_author_name,
    			$reply_content,
    			$reply_url
    		);
    
    		$message = apply_filters( 'bbp_subscription_mail_message', $message, $reply_id, $topic_id, $user_id );
    		if ( empty( $message ) )
    			continue;
    
    		// For plugins to filter titles per reply/topic/user
    		$subject = apply_filters( 'bbp_subscription_mail_title', '[' . $blog_name . '] ' . $topic_title, $reply_id, $topic_id, $user_id );
    		if ( empty( $subject ) )
    			continue;
    
    		// Custom headers
    		$headers = apply_filters( 'bbp_subscription_mail_headers', array() );
    
    		// Get user data of this user
    		$user = get_userdata( $user_id );
    
    		// Send notification email
    		wp_mail( $user->user_email, $subject, $message, $headers );
    	}
    
    	do_action( 'bbp_post_notify_subscribers', $reply_id, $topic_id, $user_ids );
    
    	return true;
    }
    #154491
    chrischros34
    Participant

    Hi everyone, I need help, so I am appealing to the community.
    I spent many hours trying to fix this display, but I can not.
    Version of WordPress: 4.0
    Version of bbpress: 2.5.4
    Template: WP-Critique

    I can not be specific to the forum sidebar to the racine, but I have elsewhere (subjects, answers …).
    Here is my forum http://www.googland.fr/forums/
    I carefully followed the help provided on https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ (part 8), I have certainly misunderstood.

    I created my bbpress.php based on page.php, here is the code.

    <?php get_header(); ?>
    
    	<?php global $wp_query; $postid = $wp_query->post->ID; ?>
    
    	<div id="page" class="clearfix">
    
    		<div id="contentleft">
    
    			<?php if ( get_post_meta( $postid, 'post_featcontent', true ) == "Narrow Width Featured Content Slider" ) { ?>
    				<?php include (TEMPLATEPATH . '/featured-narrow.php'); ?>
    			<?php } ?>
    
    			<?php if ( get_post_meta( $postid, 'post_featgalleries', true ) == "Yes" ) { ?>
    				<?php include (TEMPLATEPATH . '/featured-galleries.php'); ?>
    			<?php } ?>
    
    			<div id="content" class="maincontent">
    
    				<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
    
    				<?php include (TEMPLATEPATH . '/banner468.php'); ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    				<div class="post clearfix" id="post-main-<?php the_ID(); ?>">
    
    					<div class="entry">
    
    						<h1 class="page-title"><?php the_title(); ?></h1>
    
    						<?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
    							<div class="single-video">
    								<?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
    							</div>
    						<?php } ?>
    
    						<?php the_content(); ?>
    
    						<div style="clear:both;"></div>
    
    						<?php wp_link_pages(); ?>
    
    					</div>
    
    				</div>
    
    <?php endwhile; endif; ?>
    				
    			</div>
    
    			<?php include (TEMPLATEPATH . '/sidebar-narrow.php'); ?>
    
    		</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Can anyone tell me how to edit the file and what I have to put into it.
    I would be very grateful for help.
    Thank you

    #154509
    Robkk
    Moderator

    @drhands

    if there really is an issue

    ask that plugins author for compatibility with bbPress in a future update

    #154508
    Robkk
    Moderator

    try this

    this removes some black padding when you reach a device width of 480px
    15px or a little bit less should be good.
    if you want more just change 15px to whatever you want.

    @media only screen and (max-width: 480px) {
    .site {
        box-shadow: 0px 2px 6px rgba(100, 100, 100, 0.3);
        margin: 48px auto;
        max-width: 960px;
        overflow: hidden;
        padding: 0px 15px;
    }
    }

    this makes your bbpress forums full width

    @media only screen and (max-width: 480px) {
    .site-content {
        background: none repeat scroll 0% 0% transparent;
        float: left;
        min-height: 150px;
        width: 100%;
    }
    }

    if you made a bbpress.php file put .bbpress in the begginning so it would be

    .bbpress .site-content

    more on creating a bbpress.php file.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #154506
    rock17
    Participant

    What’s the best way to go about adding a custom page under the bbPress directory (/forums)?

    I’ve created a new page in WordPress that uses bbPress shortcodes. I’d like the URL to remain under ‘/forums’ like ‘/forums/new-page’. WordPress automatically converts the directory to /forumsnew-page (due to a conflict with bbPress using /forums)

    Any help would be greatly appreciated!

    #154502
    manheim
    Participant

    We’re getting an email to noreply@ourwebsite.com every single time someone posts a reply. Looking into bbpress/includes/common/function.php starting on line 1023 it looks like this is the intended behavior. It sends an email to:

    $do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';

    …and it BCC’s any users who are subscribed:
    wp_mail( $do_not_reply, $subject, $message, $headers );

    This seems silly. Am I really reading this right? Why can we not disable emails coming to noreply@ ? Big forums will get hundreds of emails a day….

    #154500
    webUI1
    Participant

    Robin,

    Can you work on my forums work, I have some theme related work left and few other settings. I guess it would take max 6-7 hours to you to complete this. I have seen your website, and I understand that your forte is bbPress.
    Please let me know if you are interested, then we can discuss other things e.g. payments, time etc.

    Thanks!

    #154499
    Robin W
    Moderator
    #154497
    Robin W
    Moderator

    either :

    shortcode [bbp-topic-index]

    or

    bbp additional shortcodes

    #154495
    webUI1
    Participant

    Hi All,
    I’m beginner in bbPress development. Recently I’ve installed bbPress forum. My Query is:
    On homepage of my forum (front-end), I can see only list of Forums (Forums Block) but I want to show Topic block as well just below forum block Could you guys please tell me that how to do it?

    Cheers 🙂

    #154493
    melanie bund
    Participant

    Hi, am using wp 4.0, twenty twelve theme, am having trouble getting the forum to look nice in iphone etc..
    http://photohunters.org/photohunters/lets-talk/

    there is a rather large space on right hand side for some reason, the titles “topics” and “post” are for some reason cut and on 2 lines

    CAN ANYONE HELP?

    ps. have had to disable the sidebar as it looked ridiculous, not sure how to solve that…

    thank you in advance
    Melanie

    #154492
    Drhands
    Participant

    My topics were not showing and I found that a recent install of coursepress plugin was the problem. Is there a way to fix this? Both plugins I need! They are the ony ones I’ve found that can do what I need.

    biscuitier0
    Participant

    Okay I managed to do roughly what I wanted without changing the functions.php. Here’s how:

    1) I installed bbP Members Only plugin https://wordpress.org/plugins/bbpress-members-only/, I then created a test forum and topic

    2) I created a page called ‘member login’ and put the [bbp-login] shortcode in this page (no menu link for this page)….

Viewing 25 results - 17,776 through 17,800 (of 64,532 total)
Skip to toolbar