Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 2,801 through 2,825 (of 11,589 total)
  • Author
    Search Results
  • alingrad
    Participant

    Hi,

    I just installed on a test domain WordPress, bbPress and WPML. All are updated to the latest versions. I don’t use any other plugins and the theme is also the default one, Twenty Sixteen.

    I setup 2 languages: german as default and english. So the URLs are like this.

    website.com
    website.com/en

    I posted some topics in bbPress in both languages and I can see them per language, which is what I want. On the german version I see only the german posts and on the english version I see only the english post.

    Of course, a problem may be with the bbPress slugs settings. I cannot translate them but I can live with them.

    What I noticed is that when I go to profile and try to see the “Topics Started”, “Favorites” and “Subscriptions”, I see only a message that I don’t have any of those, although on the main Profile page shows that I have started 11 topics.

    That might be also a problem because it counts the topics from both languages. But I can live with that also, for the moment.

    I switched the languages and I made english default. After doing this, everything worked fine in english but not anymore in german, because german became the second language.

    Basically, I can see the “Topics Started”, “Favorites” and “Subscriptions” only for the default language.

    Only “Replies Created” show up for both languages.

    I also attached some screenshots.

    I also changed the theme from Twenty Sixteen to Twenty Fifteen and also Twenty Fourteen. Same problem.

    I setup another test website as WP Multisite, without WPML and everything works properly. I had to install another plugin to connect both languages. But I would like to use WPML and a single website, if this is possible.

    I hope there is a fix for this. bbPress is the most used forum and WPML should be able to handle it.

    Thank you very much for your time.

    Best Regards,
    Alin

    #174463

    Topic: Approve posts

    in forum Plugins
    diegofd77
    Participant

    Hello community:

    I’ve been testing the BBPress, and when a suscriptor user posts a message, only first time, his message must to be approved by the administrator. When the admin approves the message, automatically, the next follow messages are approved with the previos approval of the admin. The question is, How I set the BBPress for each message must to be approved by the admin?

    #174458
    Robkk
    Moderator

    Devs say that its intentional for now and looking for a way to implement it without any further issues.

    https://bbpress.trac.wordpress.org/ticket/2523

    https://bbpress.trac.wordpress.org/ticket/2340

    There is a couple of fixes out there.

    1. This patch enables threaded replies, but will not work in private forums.

    https://bbpress.trac.wordpress.org/ticket/2785

    2. I have not tested this proposed fix.

    https://wpup.co/bbpress-threaded-nested-replies-with-paging/

    #174454
    Robkk
    Moderator

    Devs say that its intentional for now and looking for a way to implement it without any further issues.

    https://bbpress.trac.wordpress.org/ticket/2523

    https://bbpress.trac.wordpress.org/ticket/2340

    There is a couple of fixes out there.

    1. This patch enables threaded replies, but will not work in private forums.

    https://bbpress.trac.wordpress.org/ticket/2785

    2. I have not tested this proposed fix.

    https://wpup.co/bbpress-threaded-nested-replies-with-paging/

    #174432
    Tranny
    Participant

    I have the number of replies per page set to 25. With Threading disabled, this works without an issue. However with Threading enabled, topics don’t get split into pages of 25 replies, and no pagination shows up. It basically ends up being a very long page of hundreds replies, all stuffed in that one page.

    Is this a bug in the script, or am I doing something wrong? I have the latest version of bbPress, WP and BuddyPress, and use customized TwentySixteen theme.

    #174429
    Pascal Casier
    Moderator

    Hi,
    That’s typically a conflict with a theme or another plugin. Please switch to a default theme and deactivate all but bbPress. Test.
    Then switch on plugins one after the other to find the one blocking.

    Pascal.

    #174422
    hutad
    Participant

    Hi – I just installed BBPress and I can’t seem to have the admin reply to any posts. I created an account under the name Hutad and tried to reply as the Admin and can’t see the response live on the site. It’s in my backend but not live. I am using a custom theme.
    Here is the link to the topic/website

    https://wiperecord.com/forums/topic/dui-in-california/#post-2630

    Any suggestions much appreciated.

    I’m using the latest wordpress version

    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict

    As Cherrypress is a paid theme – then contact the theme author for help.

    Robkk
    Moderator

    I used the plugin wp-members

    Is it this plugin??

    https://wordpress.org/plugins/wp-members/

    I cannot seem to figure out how you did the members area thing with this plugin (if it is the correct plugin).

    So I have done loads more searching and it is known problem which BBPress do nothing about

    Well there might be related issues to search redirecting to the home page, some had issues with the search query having a url structure and query different than intended by default, and some had issues with search plugins on their site, and I think some I tried to contact personally to help them since they had a premium theme and it is hard to just figure it out on premium themes that might have some kind of fancy ajax search having conflicts with the default bbPress search for example. Your issue could be somewhat related to the url structure.

    Do you have any steps that maybe I can try to replicate to find the cause of this issue, like explain how you set everything up?

    So you ditch the BBPress function, it does not work. And amend the normal search to include forums.

    Yes this can be a workaround for some, but since you may have private members only content this solution may not be practical.

    Does the default bbPress search work fine on a fresh installation with just your theme and no other plugins like wp-members?

    If you haven’t already known if bbPress search works by default with just your theme and bbPress activated, consider created a localhost setup to test the default bbPress search to see if it works on a default fresh installation, then we can work backwards and try to find the cause of this issue that you are experiencing.

    https://codex.bbpress.org/getting-started/testing-your-bbpress-installation/creating-a-test-site/

    #174348
    tharsheblows
    Participant

    @pathardepavan — post_parent is in the posts table rather than postmeta so instead of updating post meta, update the object in wp_posts. So your update callback function (update_topic_post_parent) would be something like:

    
    function update_topic_post_parent( $value, $object, $field_name ){
    $update_post_parent = array(
    'ID' => (int)$object->ID, // the ID of the topic you just created
    'post_parent' => (int)$value ); // whatever you want your post_parent to be as an int. You could use $field_name for 'post_parent' here but I tend to whitelist 
    
    wp_update_post( $update_post_parent )
    }

    and you should be able to get the post_parent from the $object directly in your get callback I think.

    Also if you’re using one of the latest versions of the plugin, you should use register_rest_field as register_api_field has been deprecated.

    (I’m doing this without any testing, sorry, so it might be incorrect! But I think that’s somewhere close to the answer maybe 🙂 )

    Manuel Fritsch
    Participant

    Hello,

    if you look at our latest topic, you will see the blue notice bar. In in, the time is formatted incorrect. There should be a comma, or even better, the word “und” between the hours and the minutes, not a full stop. I tried to change it in the translation, but there is only a code for the whole timestamp. I would suggest to update bbpress in this regard, so the timestamp becomes localizable.

    Best
    Manuel

    #174343
    Robin W
    Moderator

    so if you go in as administrator and hover over forums, you get a list of

    all forums
    new forums
    forum moderators

    or what do you get?

    sorry but my test site is set up for buddypress at the mo for something else, so don’t want to alter to see what you get with just bbpress and my private groups

    #174337
    Robin W
    Moderator

    Do you agree with the fact that “Moderator – Cannot create and edit forums”?

    Not sure I either agree or disagree, or that it is a fact – I’m trying to help here, I’m not trying win an argument in a bar, but as a user of this software I haven’t tested every feature 🙂

    The documentation for bbpress says that moderators can publish and edit forums

    https://codex.bbpress.org/getting-started/before-installing/bbpress-user-roles-and-capabilities/

    Is it this that you are asserting isn’t true?

    Robkk
    Moderator

    Okay I tested the bbPress forum search on my localhost setup with the latest bbPress, BuddyPress, and WordPress, and I have no issues.

    I am running a default setup, and I do not have the forums under a directory called “members area” though. If you run bbPress in the default setup without putting it under the “members area” directory would it work on your site if you searched “forum” for your only forum on your site?

    I am not entirely sure how you did the members area directory on your site in the first place, I am not entirely sure it is a sub directory in a multisite setup.

    #174315
    Robkk
    Moderator

    @pestocat for the latest bbPress v2 plugin, you need to install the Akismet plugin from wordpress.org.

    #174278
    tech55541
    Participant

    Hello,
    I tried to use this code to remove the little character between the Subscribe and Favorite link, but it does not seem to work.

    /*Fix character issue with BBPress admin links menu*/
    function hide_before2 ($args = array() ) {
    $args['before'] = '&nbsp';
    $args['subscribe'] = 'Subscribe';  
    $args['unsubscribe'] = 'Unsubscribe';
     
     return $args;
    } 
    
    add_filter('bbp_before_get_user_subscribe_link_parse_args', 'hide_before2');

    http://yourtechadvisors.com/forums/topic/testing/

    Feel free to create an account, I think the biggest problem is the Subscribe/Unsubscribe link that can be found under the Options menu. Please check screenshot.
    https://drive.google.com/file/d/0B_h6oU4LzDtlYU44LUNCQVNaZ0U/view?usp=sharing

    Any suggestions?

    Andrea Barghigiani
    Participant

    Hello there,

    I have a really strange problem… In the last few days I’ve noticed that all my messages do not show paragraphs, bolds, italics and neither links inside my topics.

    I find it really strange and if you want to have a look to this is the link on a page where this happens. Inside this response there was some links and formatting but everything is gone.

    It seems like WordPress is stripping out all the formatting my users add to the text and if you inspect the code you’ll find out that not a single <p> has been used…

    I am using custom template pages but in order to test I’ve also renamed the bbpress/ folder inside my theme and the problem is still present. Tryed to use Twenty Fiftheen and the problem persists. Also checked the settings but everything seems normal.

    The only thing I’ve done is update WordPress to the version 4.5, at least is the last action that I can recall.

    Hope you can help me and thank you for your advices.

    All the best,
    Andrea

    WordPress Version: 4.5
    bbPress Version: 2.5.8
    Genesis Version: 2.2.7
    bbPress Genesis Extend Version: 1.1.1

    #174236
    hosam020
    Participant

    Hello all
    i am using wordpress latest,
    bbpress latest
    theme
    and only active 2 plugin as localhost forum and subforum 77
    topics 514
    reply 2729

    i had used
    Debug Bar && Debug Bar bbPress
    Query Monitor && Query Monitor bbPress & BuddyPress Conditionals

    and it’s show the query when the new topic page loading.

    in /includes/topics/functions.php

    every thing prossess smothly in this file til

    /** Update counts, etc… *********************************************/
    //exit();
    do_action( ‘bbp_new_topic’, $topic_id, $forum_id, $anonymous_data, $topic_author );

    here every thing work so so long

    just to be more detailed i had read allot about wp_insert_post if inserting allot of topics in the same time but, now i am in local and only me posting in topics

    what i am missing here and from where to look in

    thanks in advance

    regards

    #174213

    In reply to: Hide top pagination

    Pascal Casier
    Moderator

    Hi,
    I would say find the ‘content-single-forum.php’ file and edit it. You will probably see twice a line with <?php bbp_get_template_part( 'pagination', 'topics' ); ?> , so you need to delete the first one to hide the top pagination.

    I didn’t test it, just guessing from what I read.

    Pascal.

    nateonawalk
    Participant

    Had a chance to test this out locally. The URL re-writes work like a charm, without any conflicts.


    @siparker
    @netweb The plugin works almost perfectly, BUT there is still one big issue — by adding -postIDs to the end of Forum and Category URLs (mysite.com/forums/category-name-postIDstring) or (mysite.com/forums/category-name/forum-name-postIDstring), we’ve defeated the SEO purpose of re-writing these URLs.

    For authority to be passed allll the way down to the topics, we need for the forums and categories’ permalinks to live without these -postIDs. That way, (mysite.com/forums/category-name/forum-name/topic-name-postIDstring) can get the full trickle down benefit from any links /category-name/ and /forum-name/ receive.

    I’m going to play around with the plugin code to see if I can just rip the right bit out! Thanks again!

    EDIT: So removing .'-f' .$post->ID from lines 50 and 60 fixed the URLs in the CMS BUT broke the page. It seems like the plugin relies on the postIDs to associate the new URLs with the old URL structure? If so, how can we achieve this without actually using the postID in the URL?

    nateonawalk
    Participant

    @siparker you are a godsend! I’ll have to test this tonight, but I’m hoping to be one of the first new bbPress forums to proudly be using pretty, SEO-friendly permalinks. Thank you!!

    #174178
    blooble
    Participant

    Thank you for your response, Samuel! I will let you know how it goes as soon as I can test it out. Didn’t want to think I was ignoring you.

    #174164

    In reply to: Formatting not loading

    Pascal Casier
    Moderator

    Hi,
    I have no clue what this could be… maybe another (not really bbPress related) plugin ?
    You tested this both as admin and as participant ?

    Pascal.

    #174153
    Ismail
    Participant

    Hello,

    I have made this a little simple, where any visitor can have an overlay division hiding the topic content and everything when there are caught words in the currently viewing topic..

    You can add this code to your theme’s functions file:

    Remember: edit $list = 'test,bad topic,'; line to insert your watched words separated by commas without a space after the commas.

    add_action('wp', function() {
    
    	/**
    	  * Add the watched words or sentences separated by commas.
     	  * Remember not to add a space before the words
     	  * Example : 'evil dog,naughty cat,pig'
    	  */
    
    	$list = 'test,bad topic,';
    	// set up a global variable for our case
    	$GLOBALS['my_filtered_words'] = explode(',', $list);
    
    });
    
    add_action('bbp_theme_after_reply_content', function() {
    
    	if( ! get_the_ID() )
    		return;
    
    	$topic = get_post( get_the_ID() );
    
    	if( ! $topic || 'topic' !== $topic->post_type )
    		return;
    
    	global $my_filtered_words;
    	$words = preg_split( "/\s+/", $topic->post_content );
    
    	foreach( $words as $i => $word )
    		$words[$i] = strtolower($word);
    
    	$occurance = 0;
    	foreach( $my_filtered_words as $string ) {
    		$string = strtolower( $string );
    		$occurance += in_array( $string, $words ) ? 1 : 0;
    	}
    
    	if( ! ( $occurance > 0 ) )
    		return; // nothing caught
    
    	$cookie = isset( $_COOKIE['se_conf_warned_topics'] ) ? explode(',', $_COOKIE['se_conf_warned_topics']) : array();
    
    	if( in_array($topic->ID, $cookie) )
    		return; // confirmed before.
    
    	?>
    
    		<style type="text/css">
    			.se-conf-wt {position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, 0.78); width: 100%; height: 100%; z-index: 999;}
    			.se-conf-wt p {color: #fff; position: relative; top: 50%; display: table;margin: 0 auto;}
    			.se-conf-wt a {color:#fff;}
    		</style>
    		<div class="se-conf-wt t-<?php echo $topic->ID; ?>">
    			<p>This topic contains offensive content. <a href="javascript:;">Continue?</a></p>
    		</div>
    		<script type="text/javascript">
    			window.onload = function() {
    				var a = document.querySelector('.se-conf-wt.t-<?php echo $topic->ID; ?> a'),
    					b = document.body;
    				a.onclick = function() {
    				    var expires = new Date(),
    				    	cval = '<?php echo isset($_COOKIE['se_conf_warned_topics']) ? $_COOKIE['se_conf_warned_topics'] : ''; ?>';
    					expires.setMonth(expires.getMonth() + 6); // 6 months expiracy date
    					cval += '<?php echo $topic->ID; ?>,';
    					document.cookie = "se_conf_warned_topics=" + cval + ";  expires=" + expires;
    					// cookie set, now let's hide the warning
    					this.parentNode.parentNode.remove();
    					b.style.overflowY = '';
    					return false;
    				}
    				b.style.overflowY = 'hidden';
    			}
    		</script>
    
    	<?php
    
    });

    Tested on my local installation and it works fine.
    Let me know how it goes.

    Samuel

    #174151
    Ismail
    Participant

    Hello, here are the steps for you:

    1. Create a ‘new topic’ page at example.com/new-topic/ and add [bbp-topic-form] shortcode as content.
    2. Add this code to your child theme’s functions file:

    add_filter('the_content', function($content) {
    
    	global $post;
    
    	if( 'post' == $post->post_type && is_user_logged_in() ) {
    		$content .= '<p><a href="' . home_url('new-topic/?se_pid=' . $post->ID) . '">Generate a topic</a></p>';
    	}
    
    	return $content;
    
    });
    
    add_action('init', function() {
    
    	$content = null;
    
    	if( isset( $_GET['se_pid'] ) ) {
    		$pid = (int) $_GET['se_pid'];
    		$content = get_post( $pid );
    	}
    
    	$GLOBALS['se_post'] = $content;
    
    });
    
    add_filter('bbp_get_form_topic_title', function( $title ) {
    
    	global $se_post;
    
    	if( $se_post ) {
    		return $se_post->post_title;
    	}
    
    	return $title;
    
    });
    
    add_filter('bbp_get_form_topic_content', function( $body ) {
    
    	global $se_post;
    
    	if( $se_post ) {
    		return $se_post->post_content;
    	}
    
    	return $body;
    
    });

    Test it out, go to your posts and scroll down to the bottom, click the “generate ..” link and see if it worked.

    I am here for any further customization or if you encounter issues with implementing this.

    Regars,
    Samuel

Viewing 25 results - 2,801 through 2,825 (of 11,589 total)
Skip to toolbar