Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 11,351 through 11,375 (of 64,515 total)
  • Author
    Search Results
  • #175171
    brooklynbrookie
    Participant

    Hi,
    I have a issue regarding the Visual Editor within the forum page. I would like the visual editor within the forum edit page to be enabled so that I can give a image/text introduction to the forum. I have tried to install suggested plugins like “TinyMCE Advanced” and others but none of them directly solve the problem I am having. Example of what I am looking for:

    What I would like to be on the page:
    http://postimg.org/image/y52i13nup/

    Wordpress: Version 4.5.2 running Untold Stories theme.
    bbPress: Version 2.5.9
    website forum page: http://www.curlswithattitude.com/forums/introduction

    #175166
    akira010203
    Participant

    I found out where is the problem.

    It is due to the language translation file, If I put the default language back in english there is no problems.

    To the french users if you get this issue try :

    #bbpress-forums .administrateur .bbp-author-role {
      background-color: blue;

    It will wrk but when it comes to the french translation of moderator : modérateur it will be harder due to the special character on it.

    You will have to rename it before being able to change color.

    #175165
    Bjarne Oldrup
    Participant

    Setting up my first bbPress forum, and I’m amazed so far 😀 Probably a newb question, but:

    Is it possible to make the forums public visible, but the topics (or posts) private, for logged in users only?

    I’d like the visitor to see what to expect when he/she creates an account.

    Thanks everyone!

    #175162
    nztestnz2016
    Participant

    I am very new to wordpress and installed bbpress, but I’ve noticed that I don’t have the option to delete a post I created. How can I generate a link for this on created posts?

    Update: I realise that you need to be a moderator. I was testing with a standard/ordinary account.

    #175155
    alzaran
    Participant

    I’ve found a function that enables autocomplete on any element of my choice. I’m reproducing it below:

    function buddydev_enable_mention_autosuggestions_on_compose( $load, $mentions_enabled ) {
    	if ( ! $mentions_enabled ) {
    		return $load; //activity mention is  not enabled, so no need to bother
    	}
    	//modify this condition to suit yours
    	if( is_user_logged_in() ) {
    		$load = true;
    	}
     
    	return $load;
    }
    add_filter( 'bp_activity_maybe_load_mentions_scripts', 'buddydev_enable_mention_autosuggestions_on_compose', 10, 2 );

    However, this only works with a textarea or input, I believe. TinyMCE, on the other hand, is an iframe with HTML elements generated on the fly. As such, when I try to initialize the function using the below:

    if ( jQuery( '#bbp_reply_content_ifr').get( 0 ) ) {
    		console.log('success');
    		jQuery('#bbp_reply_content_ifr').bp_mentions( bp.mentions.users );
    	}

    Nothing happens. What am I doing wrong? Buddypress supports the @mentions on TinyMCE instances (see here: https://buddypress.trac.wordpress.org/ticket/6972) and bbpress supports it in the plaintext editor. How can I enable it for the TinyMCE editor?

    #175154
    gungs
    Participant

    Hello,

    When I change a language from English to Korean, my bbpress(2.5.9) makes problem.

    – English + bbpress
    : working well.
    – Korean + bbpress
    : widget is not saving, customization is not working <- Issue. but I want fix.
    – Korean // bbpress(deactive)
    : working well.

    ps. WP 4.5.2, Theme ‘Total’

    Please give me a your hand.

    Regards
    gungs

    metlhed
    Participant

    Hello,

    I would like to allocate one of my BBPress forums to allowing posting and replies to “guests” only.

    Is there a plugin or way to allow a user to simply register a username, password, and email only (but no other user fields required by WordPress) so that they may do this in a “guest” forum?

    alzaran
    Participant

    Fantastic! I attempted to do the same thing but neglected to remove_action, so this is exactly what I needed. Thanks for your help, it’s baffling to me that BBPress doesn’t make this an option out of the box.

    #175143
    akira010203
    Participant

    Hello,

    I got an issue while trying to put a background color under the role name on my forum.

    I added this to my function file :

    function rk_show_role_classes($classes) {
        $replyid = bbp_get_reply_author_id();
        $bbp_get_role = bbp_get_user_display_role($replyid);
        $bbp_display_role = strtolower($bbp_get_role);
    	  
      
    	$classes[] = $bbp_display_role;
    	return $classes;
    }
    add_filter( 'bbp_get_topic_class','rk_show_role_classes' );
    add_filter( 'bbp_get_reply_class','rk_show_role_classes' );

    and this into my css file :

    #bbpress-forums .participant .bbp-author-role {
      background-color: blue;
    #bbpress-forums .keymaster .bbp-author-role {
      background-color: red;
    #bbpress-forums .moderator .bbp-author-role {
      background-color: green;

    But it only works with the participant role. Maybe I’m not using the correct keymaster and moderator role name. Is someone already did that and can help me to sold it out ?

    Thanks!

    Robin W
    Moderator

    ok, that opened up a whole new area, and I think I’ve worked out what is happening !

    When a new topic/reply is created, bbpress sends a email

    to : noreply@vpinball.com
    bcc : all the subscribers of that topic

    Bbpress changed how this works in a recent version. It used to send an email per user, but many mail servers saw say 200 emails going at once as spam, and blocked them.

    So now bbpress sends to an address and blind copies all the users, so that in most cases a single email is sent. This still creates a risk, as some mail servers block multiple bcc’s over a certain number, but is probably better for most sites.

    Now the problem with this is that some mailservers will return invalid email addresses, and as your noreply email doesn’t exist, you get a failed.

    so you could

    1. create the noreply email address on your system, so that a mailbox gets them, and every so often just clear it out.
    2. change that noreply email address to a valid email – I can give you code to make it anything you want, but as with 1 above a mailbox will get them so it will fill up.
    3. change the code to send emails individually – the old code is somewhere.

    Let me know your thoughts

    Kineta
    Participant

    Here you go. I have this in my theme’s functions.php file. I posted this code a while ago, but there was a small mistake which is fixed here.

    function jpr_buddypress_add_notification( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $author_id = 0, $is_edit = false, $reply_to = 0 ) {
    	
    		
    		// this is who the notification goes to. whose post is replied to
    		$topic_author_id = bbp_get_topic_author_id( $reply_to );
    
    		// Bail if somehow this is hooked to an edit action
    		if ( !empty( $is_edit ) ) {
    			return;
    		}
    
    		// Get author information
    		// $topic_author_id   = bp_loggedin_user_id();
    		$secondary_item_id = $author_id;
    
    		// Hierarchical replies
    		if ( !empty( $reply_to ) ) {			
    			$reply_to_item_id = bbp_get_topic_author_id( $reply_to );
    			// if not replying to OP:
    			$topic_id = $reply_to;
    		}		
    
    		
    		// Get some reply information
    		$args = array(
    			'user_id'          => $topic_author_id,
    			'item_id'          => $topic_id,
    			'component_name'   => bbp_get_component_name(),
    			'component_action' => 'bbp_new_reply',
    			'date_notified'    => get_post( $reply_id )->post_date_gmt,
    		);
    	 	
    		// Notify the topic author if not the current reply author
    	 	if ( $author_id !== $topic_author_id ) {
    			$args['secondary_item_id'] = $secondary_item_id ;
    
    			bp_notifications_add_notification( $args );
    	 	}
    	 	// Notify the immediate reply author if not the current reply author
    	 	if ( !empty( $reply_to ) && ( $author_id !== $reply_to_item_id ) ) {
    			$args['secondary_item_id'] = $secondary_item_id;
    			
    			bp_notifications_add_notification( $args );
    	 }
    }
    // remove the bbpress notification function so we don't get dupicate notifications
    remove_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 );
    add_action( 'bbp_new_reply', 'jpr_buddypress_add_notification', 10, 7 );
    
    // remove the bbpress format notification function before using our custom function
    remove_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 5 );
    
    function jpr_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    	// New reply notifications
    	if ( 'bbp_new_reply' === $action ) {
    		$topic_id    = bbp_get_reply_id( $item_id );
    		$topic_title = bbp_get_reply_title( $item_id );
    		$topic_link  = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $topic_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $topic_id );
    		$title_attr  = __( 'Topic Replies', 'bbpress' );
    
    		if ( (int) $total_items > 1 ) {
    			$text   = sprintf( __( 'You have %d new replies', 'bbpress' ), (int) $total_items );
    			$filter = 'bbp_multiple_new_subscription_notification';
    		} else {
    			if ( !empty( $secondary_item_id ) ) {
    				$text = sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), (int) $total_items, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) );
    			} else {
    				$text = sprintf( __( 'You have %d new reply to %s',             'bbpress' ), (int) $total_items, $topic_title );
    			}
    			$filter = 'bbp_single_new_subscription_notification';
    		}
    
    		// WordPress Toolbar
    		if ( 'string' === $format ) {
    			$return = apply_filters( $filter, '<a href="' . esc_url( $topic_link ) . '" title="' . esc_attr( $title_attr ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $topic_link );
    			
    		// Deprecated BuddyBar
    		} else {
    			$return = apply_filters( $filter, array(
    				'text' => $text,
    				'link' => $topic_link
    			), $topic_link, (int) $total_items, $text, $topic_title );
    		}
    
    		do_action( 'jpr_format_buddypress_notifications', $action, $item_id, $secondary_item_id, $total_items );
    
    		return $return;
    	}
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'jpr_format_buddypress_notifications', 10, 5 );
    
    
    #175138

    In reply to: code doesn’t work

    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    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.

    #175137
    Robin W
    Moderator
    alzaran
    Participant

    I followed through that link as well, and though I don’t like modifying core, I did go through with it to get the ideal notification behavior. Any progress on a solid fix on that? Would it be possible to add that sort of thing as an option in bbpress-core? Just ridiculous that the default behavior doesn’t do it.

    #175127
    bintali
    Participant

    Hi

    Thank you for your help !

    My bbpress version is 2.5.9

    #175126
    Gespanne
    Participant

    We are considering moving our organization’s forum over to bbPress but our current MegaBBS ASP Forum software has a feature that is used by most of our 10,613 registered users. If you click the “New Threads” button you see all posts made since your last login. Does that feature exist in bbPress or is it available as a plugin? Lack of that feature will keep us on our old BBS. THX!

    #175125
    alzaran
    Participant

    So Buddypress, by default, has a nifty @function that allows you to look up users by username. As I understand it, bbpress works with this out of the box, in the reply boxes. However, when I enable TinyMCE using the tutorial above (https://codex.bbpress.org/enable-visual-editor/), Buddypress autocomplete goes away completely. We’d rather not have to choose between these two features, is there a way to restore autocomplete even with TinyMCE enabled?

    #175124
    awmaropeaccess
    Participant

    which bbpress version are you using and please also tell in which browser you are opening bbpress?

    #175123
    bintali
    Participant

    Hi,

    I have just created a forum with bbpress everything seems to be ok but when i create a new topic, i can’t see it.
    I can reply but i can’t see my topics.
    But i can see them in my dashboard on wordpress.
    I use Optimizepress.

    Can you help Me?

    ps : i am french sorry if I make mistakes on my writtings…

    randrcomputers
    Participant

    Correct. It seems to always email noreply@vpinball.com every single new post/topic in bbpress like I subscribed to everything but didn’t as I don’t even have a email setup for noreply@vpinball.com on anything. My searches on google came up with a people having same issue and from what I read it seems a core bbpress issue? but I find that hard to believe.

    #175115
    dawidadach
    Participant

    Hi guys,

    for some reason , in our bbpress forum (http://mdbootstrap.com/forums/forum/support/) code tag doesnt work . Regardless whether we use it or not all HTML markups are executed instead of displayed. The only way to display it is to replace all <> with &gt and &lt

    Any idea?

    Schoelje
    Participant

    It took some time to make this topic visible on the forum. So, I’ve solved my own problem.

    Instead of writing an htacces file I chose to write an alternative viewtopic.php script that collects the appropriate new bbPress URL from the database.

    If your new bbPress forum is online, you place the following script in your old phpBB domain and save it as viewtopic.php (exactly where the old viewtopic.php used to be located) and don’t forget to replace the “my_xxxx” values with your information:

    <?php
      // If all else fails, use this url.
      $defaulturl = "http://my_domain/forums/";
      
      // Your new bbPress database credentials.
      $host = "my_host";
      $db = "my_database";
      $dbuser ="my_database_user";
      $userpwd = "my_database_user_password";
      
      // Build the query according to url parameters p or t.
      $query = '';
      if (!empty($_GET['p'])) {
          $query = "SELECT xkcom_posts.guid FROM xkcom_postmeta 
                    INNER JOIN xkcom_posts ON xkcom_posts.ID = xkcom_postmeta.post_id 
                    WHERE xkcom_postmeta.meta_key = '_bbp_old_reply_id' 
                    AND xkcom_postmeta.meta_value = '" . $_GET['p'] . "';";
      }else if (!empty($_GET['t'])) {
          $query = "SELECT xkcom_posts.guid FROM xkcom_postmeta 
                    INNER JOIN xkcom_posts ON xkcom_posts.ID = xkcom_postmeta.post_id 
                    WHERE xkcom_postmeta.meta_key = '_bbp_old_topic_id' 
                    AND xkcom_postmeta.meta_value = '" . $_GET['t'] . "';";
      }
      
      // Set the new url to the default url
      $url = $defaulturl;
      
      // Check if we need to make a database connection.
      if (!empty($query)) {
        // Make a connection
        $mysqli = new mysqli($host, $dbuser, $userpwd, $db);
        
        // Check the connection.
        if (!$mysqli->connect_errno) {
          // Run the query.
          $result = $mysqli->query($query);
          
          // Get the new URL.
          if ($result) {
    	$row = $result->fetch_array(MYSQLI_ASSOC);
    	$guid = trim($row["guid"]);
    	if (!empty($guid)) {
    	  $url = $guid;
    	}
          }
    
          // Free the result set.
          $result->free();
    
          // Close the connection.
          $mysqli->close();
        }
      }
      
      //var_dump($url);
      
      // Write the header.
      header("Location: " . $url, true, 301);
    ?>
    #175107
    samjoe199
    Participant

    Dear Robin,

    Thank you for reply. Does it mean that bbPress is not compatible with the current theme and I have to go and manually adjust my CSS?

    Thank you!
    Regards,
    Sam

    #175105

    Topic: Global Access

    in forum Installation
    sharmavishal
    Participant

    Hi @johnjamesjacoby

    the codex mentions this for Allow Global Access
    In a WordPress Multisite install bbPress is activated on individual sites. Allowing global access will permit all users from across the network to post topics and replies on the forums for this particular site.

    i activated bbpress per site on my 3 network sites. still i dont see any setings for global access? does global access happen by default?

    Also is there some similar setting for bbpress like buddypress’s define(‘BP_ENABLE_MULTIBLOG’, true);?

    i got define(‘BP_ENABLE_MULTIBLOG’, true); enabled for my wp+bp multinetwork. But forums on the root site dont show up on the sub sites like groups/members do with that setting enabled.

    Thanks in advance.

    #175102
    u_Oi
    Participant

    Thanks @Casiepa

    But I don’t want count the replies, I just wanna add a Label to Topics with 0 replies, and hide it if somebody reply the topic.

    I found the info here:

    24. Show status labels for bbPress Topics

    Any other suggestion?

    I think the label (no replies) should be on the documentation by default.

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