Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 11,426 through 11,450 (of 64,454 total)
  • Author
    Search Results
  • #174743
    giobby
    Participant

    hi all,

    I just wanted to share an update on my mission to migrate from PHPBB to BBPress.
    In version 2.5.8 I had the problem with the wrong authors (fixed with some additional db query).
    Now in 2.5.9 I cannot even complete the migration.
    I know that when I get the dashes (“——“) it means I lost the connection and I have to start the conversion again that would resume supposedly from where it stopped.
    That was true for 2.5.8 but in 2.5.9 I’ve tried 5 times already and when I get the dashes and try to resume, I get a message that says that there are no more replies to convert (which is not true).

    Any idea on how I can correctly resume the process?

    Just FYI, it takes 2 full days of processing to convert about 370K replies.
    I would appreciate If anybody can tell me how can I improve this performance (I’ve full control on the machine).

    Thanks,

    Gio

    #174738
    David Richied
    Participant

    Sure. I copied the function bbp_buddypress_add_notification() in bbpress > includes > extend > buddypress > notifications.php, pasted it right below itself, made the modifications, and changed the name of the function to bbp_buddypress_add_notification_for_participants.

    function bbp_buddypress_add_notification_for_participants( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $author_id = 0, $is_edit = false, $reply_to = 0 ) {
    
    	$current_topic_id = bbp_get_topic_id();
    	$ids_of_subs = bbp_get_topic_subscribers($current_topic_id);
    	foreach ($ids_of_subs as $sub_id) {
    		$topic_author_id = $sub_id;
    
    		// Bail if somehow this is hooked to an edit action
    		if ( !empty( $is_edit ) ) {
    			return;
    		}
    
    		// global $bp;
    
    		// Get autohr 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 );
    		}
    
    		// 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,
    		);
    		bp_notifications_add_notification( $args );
    	 	// 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'] = $reply_to_item_id ;
    
    			bp_notifications_add_notification( $args );
    	 	}
    	 }
    }
    add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification_for_participants', 10, 7 );
    
    #174736

    In reply to: SMF Import question

    rnmartinez
    Participant

    Sorry for the late reply. I was on 2.5.8 and had no luck. I tried 2.59 and it just worked! Awesome, really liking bbpress so far!

    #174735
    rnmartinez
    Participant

    Hello, really loving bbpress and just trying to solve some issues for my first project.

    I successfully imported my SMF data in v 2.5.9, and now I need to restrict data based on roles. I see that I can make a forum Public/Private/Hidden, but how could I make a specific forum available only to say an admin? Is there something that I am missing, or a plugin that I could use?

    #174734
    Editor Mike
    Participant

    Hi.

    I used to be able to see that a reply had been edited and was able to see what those edits where, but now I can’t.

    For example if someone changes a reply I can’t find where to see what they originally typed before they edited it…

    Can you help please?

    #174732
    dragondad
    Participant

    After create a new topic, the topic page can not be displayed.

    This is somewhat embarrassing, isn’t it?

    It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.

    The only possible solution (when I test) is to ask admin to post it, I tried to change the user role
    as admin, and bbpress role as keymaster, still did not work, any advice, thanks.

    #174730
    jkuzma
    Participant

    From the Popup Maker author, via https://wordpress.org/support/topic/issue-with-bbpress-plugin?replies=8#post-8381778

    From the looks of that error it appears that bbPress is actually the culprit here. Looks like they are applying a filter to all queries of every post type, and for whatever reason the data they are looking for is empty. Basically they are missing what we call a sanity check (making sure data matches the type we expect. In this case calling in_array without making sure that the data is actually an array. Likely the error is common( not just with popup maker but potentially other custom post types), but your only seeing it because your site because you have WP_DEBUG enabled and WP_DEBUG_DISPLAY turned on. Without those on the error would be logged but page load just fine.

    I have not seen this before, but am happy to investigate.

    Is this an existing install of bbPress or a new one? IE Can I easily duplicate the problem simply by enabling both or could it be that you have 1000s of topics and replies which for whatever reason is leading to issues.

    #174728
    Anticosti
    Participant

    Greetings,

    I made some languages tweaks in my bbpress-fr_FR.mo and bbpress-fr_FR.po files to make sure that when the forums are browse on mobile (portrait), then the strings ‘Participants‘ and ‘Articles‘ would not overlap (horizontally) each other. I translated those to short and sweet: ‘Voix‘ and ‘Posts

    I used to edit the French language file with Loco Translator but now, for some reason I don’t understand, Trying to save the translation generates an “ERROR: Forbidden

    Also every time you upgrade bbpress language files and that I upgrade some plugins, the languages files are forced in and my French custom file gets overwritten. That is starting to be irritating. A chance I have a backup, but… this should not be the default behaviour. Isn’t it?

    Please note, I found this “Error: Forbidden” problem with some other plugins where the .pot file had a missing language header.
    Ref.:
    https://wordpress.org/support/topic/error-forbidden-8

    Kind Regards,

    Yves

    #174725
    Kineta
    Participant

    If you look at a javascript debugger are you getting a console error that reads something like “Failed to execute ‘insertBefore’ on ‘Node’” (I can’t remember the exact text)?

    If not then it’s probably a different issue than what I was dealing with.

    If you’re getting that error, it’s because a function in bbPress is trying to move the TinyMCE editor. Since the above code is an overwrite of the addReply.moveForm function, it needs to be loaded after the bbPress script. Because my example is using jquery you might need to make sure it’s in the right place for that. I’m not sure, you might need to change the $ to ‘jQuery’. Or write the code to use vanilla javascript. I have my .js file set up for jquery, following the Twentysixteen theme: everything is between:

    ( function($) {	
    $(document).ready(function() {	
    
       // all the javascript goes here...
    
    })
    })
    #174723
    lwathelet
    Participant

    Hi,
    We had an old website (old.wattlet.fr/forums) with an existing forum. I’ve tried to import it to our new website http://www.wattlet.fr/forums. The bbpress version on the old website has been updated to 2.5.9. I’ve used the import feature under tools/forum, but surprisingly there are no options to select bbpress 2 from the dropdown list. I just see bbpress1.This selection doesn’t use the same table. Currently it is using wp_posts tables. Did I miss something? What I’m trying to do seems to be so simple !

    Luc

    #174720
    l11vyk
    Participant

    Our website is currently down.
    However, I have been using WordPress 4.5 with BBPress 2.5.8.

    I do not want my forum to be accessible to the public or through Google searches.

    Our website was developed to have usernames and passwords to access a log-in area where the forum is held.
    The settings for the forum were set as:
    Status: Open
    Visibility: Public

    We’ve since found out that topics can be found on Google with these settings. Our web developer says that the settings don’t matter.

    So, my question is: How do we create a forum that is not accessible to the public/Google?

    #174716
    tikimojo
    Participant

    Hello everyone,

    I’m new to bbPress so it’s all learning curve here.

    I’ve been asked to show a search feature for forum posts, and it seems that bbPress will do this, but I can’t figure out how to turn it on.

    This page here implies that it should be appearing at the top of the page, but that’s not happening on my development site.

    Search

    Is there some way to turn search on? What am I missing?

    #174710
    Kineta
    Participant

    @maketheest – sounds like the error coming from the bbPress code, which uses “insertBefore”. Make sure the overwrite is being called *after* the bbPress javascript. Or try clearing your browser cache. Also make sure all the divs & textarea is named the same as my js – or change accordingly.

    The heart of it is that the TinyMCE editor doesn’t like being moved around in the DOM, which is what the bbPress function is trying to do. You need to remove it first, then re-initialize it after moving the container. The last piece is to put the parentId, which is passed by the function, into the hidden field (should have the id of bbp_reply_to) that accompanies the editor.

    #174701
    David Richied
    Participant

    Well, I hacked the function bbp_buddypress_add_notification() in bbpress > includes > extend > buddypress > notifications.php which calls bp_notifications_add_notification( $args );
    I also found bbp_get_topic_subscribers($topic_id) which I used to get the ids of users who have subscribed to a topic (not sure if there’s another better way of getting all the ids of users who are part of a topic).
    I plugged those ids into the $args for the previous function with a foreach loop, and I was surprised to get anything back.
    Each user gets a notification (as far as I can tell) when anyone replies to the topic, but they also get extra notifications (from themselves and other users) from one reply. I’ll keep playing around with it.

    #174700
    David Richied
    Participant

    It looks like there’s only one function to notify the author of the thread and none to notify anyone else. I’m sure you already found the function, but just in case, its in bbpress > includes > extend > buddypress > notifications.php

    I would also really like to see this feature implemented.

    #174699
    David Richied
    Participant

    Yeah, you’d assume it would be an obvious feature to include, but maybe there’s something stopping them from implementing it. I think BBPress has its own notifications feature that ties into BuddyPress’ notifications.

    #174695
    Kineta
    Participant

    Funny, I could have sworn reply notifications worked when we were first testing and trying to find a forum platform that met our needs. Must have hallucinated that!

    Email notifications are fine for some things, but on a very active discussion board they would be overwhelming.

    I’ve been trying to hack the code in the includes/extend/buddypress/notifications.php file. But I’m pretty green with both php and wordpress/bbpress development. It does look like all the parts are there to extend it. But I’m a bit perplexed about some things in the code.

    #174693
    David Richied
    Participant

    I haven’t experienced the first problem you mentioned (getting two notifications), probably because I haven’t used BBPress and BuddyPress that much, yet, but I really wish the second part would work: allowing participants (who haven’t created the topic) to get notifications when someone leaves a reply.

    My guess is that the second part just hasn’t been implemented, yet. All the components to create that feature are probably there. Someone just has to create it.
    Maybe they thought it wasn’t necessary since users can choose to receive email notifications?

    #174692
    Kineta
    Participant

    I’ve encountered the same issue. I’ve been beating my head against this thinking it was an issue in the theme I’m developing. Finally stripped everything down to just the bbPress & BuddyPress plugins and used the TwentySixteen theme to test.

    If someone replies to a post inside a threaded topic and that post was made by the person who created the original topic, then they will get TWO notifications. One will say it’s from the name of the person who replied (good so far) and the second will say it’s from the name of the person getting the notification (and/or OP author). Also, no notifications are sent if the reply isn’t to the author of the original post/topic.

    I’m very happy to see there’s a ticket for this. Any hope that it will get fixed any time soon? Selfish reason for asking – this stands to put a kibosh on my project as the two main requirements for the community forum I’m developing the theme for require threaded replies and notifications.

    Kineta
    Participant

    Anyone else have this issue? It’s a real roadblock for our project and I’ve been trying to debug it. I’m 99% certain this happened during one of the last two bbPress upgrades.

    modman
    Participant

    Hello!

    I’m ready to install wordpress with bbPress

    I need to say if there is a way to convert my forum IP.Board (By Invision Power Board) to bbPress

    I see that there are plugin that works only with old version of IP.Board (from 1.0 to 3.4)

    Thanks you so much!

    Daniele

    #174679
    AlexanderCnb
    Participant

    Should this still work? It doesn’t seem to close the topics in my case. Just wondering if it’s me doing something wrong or that this doesn’t apply anymore.
    WordPress version: 4.5.2
    bbPress version: 2.5.9
    Child theme: Canvas WooThemes

    This is the code I’ve got in the plugin now, from all the code @robin-w provided.

    <?php 
    
    /*
    Plugin Name: BBPress Close Old Posts
    Description: Close BBPress 2.0+ posts that haven't been updated in X days. 
    Author: Raygun
    Version: 0.1
    Author URI: http://madebyraygun.com
    
    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    */ 
    
    register_activation_hook(__FILE__, 'bbpress_topic_scheduler');
    
    add_action('bbpress_daily_event', 'bbpress_close_old_topics');
    
    function bbpress_topic_scheduler() {
     wp_schedule_event(time(), 'daily', 'bbpress_daily_event');
    }
    
    function bbpress_close_old_topics() {
    	// Auto close old topics
    	$topics_query = array(
    		'author' => 0,
    		'show_stickies' => false,
    		'parent_forum' => 'any',
    		'post_status' => 'publish',
    		'posts_per_page' => -1
    	);
    	if ( bbp_has_topics( $topics_query ) )
    		while( bbp_topics() ) {
    			bbp_the_topic();
    			$topic_id = bbp_get_topic_id();
    			$topic_date = strtotime( get_post( $topic_id, 'post_date', true ) );
                    $forum_id = bbp_get_topic_forum_id($topic_id);
                    if ($topic_date < strtotime( '-1 day') && $forum_id == 1276 )
                        bbp_close_topic( $topic_id );
    		}
    }
    ?>
    #174671
    Kineta
    Participant

    This bug isn’t just in Chrome. It’s actually because TinyMce editor doesn’t like being moved around the DOM, which is what the the function in bbPress is trying to do – tying to move the editor under the post you’re replying to.

    I wish this bug would get fixed, but in the meantime you can overwrite the javascript function in a .js file in your theme. This is what I did – remove the editor before moving the containing element, then reinitialize it. Works well for me.

    FYI: in case you don’t know javascript well – this needs to be inside jquery $(document).ready()

    // overwrite bbPress's broken function that moves the reply form under the replied to post in threaded topics
    	
    	addReply = {
    		moveForm : function(replyId, parentId, respondId, postId) {
    						
    			tinymce.remove('#bbp_reply_content');
    			// it can't possibly be this easy:
    			$('#post-container-'+parentId).after($('#'+respondId)); 
    			
    			tinyMCE.init({   
    				selector: 'textarea', 
    				plugins: 'hr, wplink, textcolor, paste, image, media, wpemoji, emoticons, charmap, fullscreen',
    				forced_root_block : "",
    				menubar: false,
    				toolbar1: 'styleselect,bold,italic,underline,strikethrough,blockquote,bullist,numlist,alignleft,aligncenter,alignright,fullscreen',
    				toolbar2: 'fontsizeselect,forecolor,outdent,indent,hr,charmap,emoticons,image,media,link,unlink,wp_help'
    			  });
    			
    			// write the correct reply-to id to the hidden field that stores it
    			// this prevents the wrong id inserted because we're returing false at the end of the function.
    			$('input#bbp_reply_to').val(parentId)
    			
    			// return false to prevent page reload, losing all the work.
    			return false; 
    		}
    	}
    Kineta
    Participant

    I have bbPress & BuddyPress installed on my site (the newest versions of both: 2.5.9 & 2.5.2 respectively. On WordPress 4.5.2

    Notifications had been working nicely – users where notified when someone replied to either a topic they posted or a reply in a thread. Now only the person who started the topic gets a notification to their topic or their replies in the thread, and with replies they get two notifications – one that says the correct name of who it’s from and another saying it’s from their name.

    I disabled all other plugins and turned off my theme and activated the Twentysixteen theme to test.

    A separate but related issue – it would be *very* nice if the notification link went to the actual reply instead of the topic at the top of the page. This had seemed kind of promising: https://bbpress.org/forums/topic/new-reply-notification-link-to-the-reply/

    #174663
    jevans93
    Participant

    Hi all,

    Been googling and searching here and WordPress etc for days and no luck. Previous threads here showing plugins that no longer exist.

    I’m looking to disable users from changing their display & nicknames on the forum so only their username is displayed.

    Currently using bbPress with WP User Manager

Viewing 25 results - 11,426 through 11,450 (of 64,454 total)
Skip to toolbar