Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 2,801 through 2,825 (of 11,575 total)
  • Author
    Search Results
  • #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

    #174145
    cassel
    Participant

    I would like to prepare some blog posts ahead of the time when they should be seen. How can I do that?

    Today, I tried to create one thread with the status “pending” but it didn’t display the content, while still keeping the subject. When I rewrote the post, it is now showing for me (admin) but non-admin get a 404 error if they click on the subject. That topic is about a contest that will only start next Friday, so I don’t want to show it yet, but I can’t even hide the topic either so members are trying to see what it is all about.

    Is there a way to hide a thread completely? If so, how?
    I have WP 4.5 and bbpress 2.5.8

    Thanks

    #174117
    brhahlen
    Participant

    I am using WordPress 4.5 and bbPress 2.5.8.
    I have tested the following on both Chrome and FireFox, in both normal and incognito modes.
    The issue persists when using the Twenty … themes.
    The issue also persists when turning off all extra bbPress plugins.
    The issue is also present in bbPress 2.6-alpha.

    The rest of my site works normally.

    antoinemg
    Participant

    @thebrandonallen You’re right. I made a mistake when doing these tests.

    Here’s the results when I keep only the essential extensions, but without bbPress:

    WordPress Plugin Profile Report
    ===========================================
    Report date: 14 avril 2016
    Theme name: FQSA
    Pages browsed: 13
    Avg. load time: 1.4570 sec
    Number of plugins: 6
    Plugin impact: 80.34% of load time
    Avg. plugin time: 1.1705 sec
    Avg. core time: 0.2184 sec
    Avg. theme time: 0.0286 sec
    Avg. mem usage: 142.06 MB
    Avg. ticks: 189,088
    Avg. db queries : 57.92
    Margin of error : 0.0394 sec

    Plugin list:
    ===========================================
    P3 (Plugin Performance Profiler) – 0.0039 sec – 0.34%
    Query Monitor – 0.0140 sec – 1.20%
    Maintenance – 0.0040 sec – 0.35%
    WooCommerce Memberships – 0.0311 sec – 2.66%
    WooCommerce Subscriptions – 1.0300 sec – 87.99%
    WooCommerce – 0.0874 sec – 7.47%

    Here’s the results when bbpress is activated:

    WordPress Plugin Profile Report
    ===========================================
    Report date: 14 avril 2016
    Theme name: FQSA
    Pages browsed: 11
    Avg. load time: 4.8047 sec
    Number of plugins: 7
    Plugin impact: 93.15% of load time
    Avg. plugin time: 4.4756 sec
    Avg. core time: 0.2278 sec
    Avg. theme time: 0.0339 sec
    Avg. mem usage: 210.25 MB
    Avg. ticks: 289,193
    Avg. db queries : 126.36
    Margin of error : 0.0673 sec

    Plugin list:
    ===========================================
    P3 (Plugin Performance Profiler) – 0.0038 sec – 0.08%
    Query Monitor – 0.0146 sec – 0.33%
    bbPress – 0.0824 sec – 1.84%
    Maintenance – 0.0040 sec – 0.09%
    WooCommerce Memberships – 0.0421 sec – 0.94%
    WooCommerce Subscriptions – 4.2424 sec – 94.79%
    WooCommerce – 0.0864 sec – 1.93%

    You can see, in fact, that Subscriptions seems to be the problem… I don’t really know because all these plugins seems to be connected a lot.

    #174075

    In reply to: link-problem

    Pascal Casier
    Moderator

    It might be your theme too is causing you issues with 4.5

    The only way to find out is to switch to a default theme like Twenty Fifteen, deactivate all plugins except bbPress and start testing from there.
    When you found what is blocking, open support requests for the theme/plugin. But I confirm that on bbPress side all seems working great with 4.5.

    Sorry I can’t further help you, but if you find the issue, please post it back here.

    Pascal.

    #174040
    officerofthewatch
    Participant

    Pascal, thanks for getting back to me. I’m currently using the Customizr theme updated to the latest version. I had a look at the forum on my iPhone and like you said it looks even worse!! In relation to your patch where should I enter this into?

    j_mo
    Participant

    Hi there,

    I am currently working on my first bbPress site and thoroughly enjoying it! I have one issue though…

    On my home page I have a list of 8 latest posts on the site. They include news (standard WP posts), events (custom post type) and bbPress topics and are displayed with query_posts().

    I am trying to display the reply count of topics but can’t using bbp_topic_reply_count(), it simply returns 0.

    <?php if ( 'topic' == get_post_type()  ) : ?>
    	<article class="bit-4 newsPost grid-sizer grid-item">
        	<div class="eventInner homePost">
            	<p class="postLabel">Discussion</p>
                	<h1 class="eventListTitle"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h1>
                    	<p class="postedOn"><?php bbp_topic_reply_count(); ?> comments, starting on<?php the_date('d M Y'); ?></p>
                        	<p><?php echo get_excerpt(); ?></p>
            	</div>
        </article>
    <?php endif; ?>

    Am I missing something? Can someone help please?

    Thanks

    #173999
    hosam020
    Participant

    Hello,
    i am useing:
    Wordpress latest
    bbpress latest
    using only 1 plugin GD bbPress Tools latest

    when visit forum -> topic then i Subscribe
    forum -> topic -> post reply

    case i lose the subscibe

    #173988
    Robkk
    Moderator

    @sidebarissue

    The bbPress sidebar that you see having the issue, is from your theme. bbPress does not have code in it for a bbPress specific sidebar.

    You haven’t checked and made sure to see if it was in your theme by switching/testing a default theme.

    I still haven’t tried switching to the twentytwelve theme because I don’t want to lose all of my settings for my current theme.

    You can try your current theme and a WordPress default theme in a local installation on your cpu to see where the sidebar is coming from.

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

    #173986
    hosam020
    Participant

    Hello all,
    i am using wordpress latest
    bbpress latest
    my problem with bbpress plugin root\extend\buddypress\notifications.php i am tring to get to last reply url or the posted reply url.
    Regards

    #173981
    wschaefer1
    Participant

    Now I have an opposite problem! I have a hidden group with only 2 members, me and another of my email addresses. I’ve been using this for testing.

    Problem is that over 600 members have received updates that I posted in the group.

    Shouldn’t this only go to group members??

    How can I fix this?

    THANKS

    sidebarissue
    Participant

    Hey guys,

    I’m having one issue that I can’t seem to figure out. I’ve looked everywhere but I can’t find anyone with the same issue. I’m using the Be Theme with bbPress, and my sidebar widgets (for the forum only) aren’t showing up. When I drag the widgets onto the Plugin | bbPress sidebar, I get an empty sidebar. When I put the widgets in the footer or on a different sidebar (like the blog or even the footer), they work fine. The people from Be Theme say bbpress is fully compatible with Be Theme so I’m a bit confused.

    Additionally, I’ve tried deactivating all plugins besides bbpress and that didn’t help. I also ran the forum repairs and nothing happened. I still haven’t tried switching to the twentytwelve theme because I don’t want to lose all of my settings for my current theme.

    Have any of you ever encountered this before? I figured I’d try here before trying on the Be Theme forums.

    MY ACTIVATED PLUGINS (even though I said my plugins aren’t the cause of the issue)—————–

    – Add Meta tags, All in one SEO pack, bbpress, bbpress report content, bbpress login register, contact form 7, duplicate post, force regenerate thumbnails, gd bbpress attachments, gd bbpress tools, google analytics, google xml sitemaps, jellyfish counter widget, jetpack, layerslider wp, mycred, newsletter, related posts thumbnails, slider revolution, user role editor, wordpress popular posts, wp smush, wp user avatar, wpbakery visual composer

    bbpress v2.5.8 and the latest version of wordpress. Additionally, I’d rather not give my website name publicly, but I will give links to a mod if they need it.

    Here is a screenshot of the site so you can see. There is a sidebar active (once I delete the widgets the sidebar goes away obviously).

    Thanks in advance

    #173948
    Robkk
    Moderator

    Well not a bbPress specific plugin, but there are a few plugins that can work with custom post types (bbPress uses custom post types).

    A plugin I found and tested is called NS Featured Posts, but like I said many other plugins could possibly work too.

    After installing the plugin make sure to go to Settings > NS Featured Posts and make sure to add the topic custom post type from bbPress in the plugin’s settings.

    Now we can go to Topics > All Topics and see a new column that says Featured. Make sure to click the checkbox near the topic you would want to feature.

    Now we are going to make a custom view to display these featured topics in a topic list, and also be able to display them in pages with a shortcode.

    Add this php code snippet into your child themes functions.php or insert this snippet into a custom plugin like functionality.

    This function displays about 10 featured topics on a single page, change 10 to whatever you want.

    function rkk_register_featured_view() {
     bbp_register_view( 'featured', __( 'Featured Topics' ),  array( 'meta_key' => '_is_ns_featured_post', 'meta_value' => 'yes', 'posts_per_page' => '10', 'max_num_pages' => '1'), false );
    }
    add_action( 'bbp_register_views', 'rkk_register_featured_view' );

    Now in a custom page or widget area that has a widget text area that can handle shortcodes, insert this shortcode.

    [bbp-single-view id='featured']`

    #173942
    Pascal Casier
    Moderator

    In MYSQL with phpmyadmin you would be able to do it. If you would need to add e.g. 4 hours, the idea would be :

    WARNING: Backup your database before doing things
    WARNING: This is just a starting point, not a real query to launch on your DB

    UPDATE poststable SET postfield = DATE_ADD(postfield, INTERVAL 4 HOURS)
    WHERE postfield < '2016-04-01 08:20:00';

    So in the WHERE you need to put the datestamp when you have done the timezone switch.

    Pascal.

    #173928
    wschaefer1
    Participant

    I’m using WordPress Version 4.4.2 and
    BuddyPress Version 2.5.2
    Site: http://www.greenvillespinners.com

    I’m not receiving emails for new topics. I have tried everything. Disabled plugins, checked and am not using noreply@… I’ve checked and changed the settings one by one. Still can’t get anything.

    Set up another account with another email to test with. Sometimes, only sometimes I will get an email from the other account if they start a new topic. But if I (as admin) start a new topic, the other account doesn’t get an email and neither do I.

    Notifications of emails to and from that account work fine.

    Please help!!! Thank you.

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