Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 3,051 through 3,075 (of 6,794 total)
  • Author
    Search Results
  • #147816
    Robin W
    Moderator

    Ok, what I want to do is check if the function is trying to filter and failing or not even trying to filter.

    I am therefore going to get the plugin to dump one of the lists, so that you can tell me what it is showing – it won’t look pretty, but should help.

    First of all you need to work out a search that produces only a few results, say less than 10, and that you can list all the results that you would expect to see for full access, and that you want to see for the private groups, and make a not of their numbers.

    so for instance

    search for zebra produces posts numbers

    2345,2367,2657,2894,2965

    But one of these is in a private forum so a non-logged in user should see

    2345,2367,2894,2965

    Once you have this list, then do the following :
    Use notepad to create a file called search.php

    then put this code into it

    <?php
    
    //this function filters to the bbp search function to allow only returns from allowed forums
    
    function pg_has_search_results( $args = '' ) {
    	global $wp_rewrite;
    //start with code as per bbp search !
    	/** Defaults **************************************************************/
    
    	$default_post_type = array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );
    
    	// Default query args
    	$default = array(
    		'post_type'           => $default_post_type,         // Forums, topics, and replies
    		'posts_per_page'      => bbp_get_replies_per_page(), // This many
    		'paged'               => bbp_get_paged(),            // On this page
    		'orderby'             => 'date',                     // Sorted by date
    		'order'               => 'DESC',                     // Most recent first
    		'ignore_sticky_posts' => true,                       // Stickies not supported
    		's'                   => bbp_get_search_terms(),     // This is a search
    	);
    
    	// What are the default allowed statuses (based on user caps)
    	if ( bbp_get_view_all() ) {
    
    		// Default view=all statuses
    		$post_statuses = array(
    			bbp_get_public_status_id(),
    			bbp_get_closed_status_id(),
    			bbp_get_spam_status_id(),
    			bbp_get_trash_status_id()
    		);
    
    		// Add support for private status
    		if ( current_user_can( 'read_private_topics' ) ) {
    			$post_statuses[] = bbp_get_private_status_id();
    		}
    
    		// Join post statuses together
    		$default['post_status'] = implode( ',', $post_statuses );
    
    	// Lean on the 'perm' query var value of 'readable' to provide statuses
    	} else {
    		$default['perm'] = 'readable';
    	}
    	
    	//PG then loop to find allowable forums
    	//Get an array of IDs which the current user has permissions to view
    	$allowed_posts = private_groups_get_permitted_post_ids(new WP_Query($default));
    	Echo 'Allowed posts list' ;
    	var_dump ($allowed_posts) ;
    	// The default forum query with allowed forum ids array added
        $default['post__in'] = $allowed_posts;
    
        
    	//then return to bbp search code
    	/** Setup *****************************************************************/
    
    	// Parse arguments against default values
    	$r = bbp_parse_args( $args, $default, 'has_search_results' );
    
    	// Get bbPress
    	$bbp = bbpress();
    
    	// Call the query
    	if ( ! empty( $r['s'] ) ) {
    		$bbp->search_query = new WP_Query( $r );
    	}
    
    	// Add pagination values to query object
    	$bbp->search_query->posts_per_page = $r['posts_per_page'];
    	$bbp->search_query->paged          = $r['paged'];
    
    	// Never home, regardless of what parse_query says
    	$bbp->search_query->is_home        = false;
    
    	// Only add pagination is query returned results
    	if ( ! empty( $bbp->search_query->found_posts ) && ! empty( $bbp->search_query->posts_per_page ) ) {
    
    		// Array of arguments to add after pagination links
    		$add_args = array();
    
    		// If pretty permalinks are enabled, make our pagination pretty
    		if ( $wp_rewrite->using_permalinks() ) {
    
    			// Shortcode territory
    			if ( is_page() || is_single() ) {
    				$base = trailingslashit( get_permalink() );
    
    			// Default search location
    			} else {
    				$base = trailingslashit( bbp_get_search_results_url() );
    			}
    
    			// Add pagination base
    			$base = $base . user_trailingslashit( $wp_rewrite->pagination_base . '/%#%/' );
    
    		// Unpretty permalinks
    		} else {
    			$base = add_query_arg( 'paged', '%#%' );
    		}
    
    		// Add args
    		if ( bbp_get_view_all() ) {
    			$add_args['view'] = 'all';
    		}
    
    		// Add pagination to query object
    		$bbp->search_query->pagination_links = paginate_links(
    			apply_filters( 'bbp_search_results_pagination', array(
    				'base'      => $base,
    				'format'    => '',
    				'total'     => ceil( (int) $bbp->search_query->found_posts / (int) $r['posts_per_page'] ),
    				'current'   => (int) $bbp->search_query->paged,
    				'prev_text' => is_rtl() ? '&rarr;' : '&larr;',
    				'next_text' => is_rtl() ? '&larr;' : '&rarr;',
    				'mid_size'  => 1,
    				'add_args'  => $add_args, 
    			) )
    		);
    
    		// Remove first page from pagination
    		if ( $wp_rewrite->using_permalinks() ) {
    			$bbp->search_query->pagination_links = str_replace( $wp_rewrite->pagination_base . '/1/', '', $bbp->search_query->pagination_links );
    		} else {
    			$bbp->search_query->pagination_links = str_replace( '&paged=1', '', $bbp->search_query->pagination_links );
    		}
    	}
    	//finally filter to return
    	// Return object
    	return apply_filters( 'pg_has_search_results', $bbp->search_query->have_posts(), $bbp->search_query );
    }
    
    add_filter ('bbp_has_search_results', 'pg_has_search_results') ; 

    Then go into FTP

    Then look in

    wp-content/plugins/bbp-private-groups/includes

    and you’ll see a file called

    wp-content/plugins/bbp-private-groups/includes/search.php

    Rename this file to searchold.php (as we’ll need it back later!)

    Then copy the search.php that you made above to this folder (wp-content/plugins/bbp-private-groups/includes).

    Then run your search.

    You should see a horrible list at the start, but this will be what should be the filtered list

    run this with full access and with restricted access (ie not logged in) and tell me what lists you get and of they are different.

    #147810
    Robin W
    Moderator

    OK, it may be a plugin conflict – ie 2.5.4 isn’t playing with one of your plugins.

    Try

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    #147805
    nogard2008
    Participant

    Where would I need to go to increase the font size and default color?

    Compared to the rest of my blog, the forum font is small.

    thanks for any help with this issue.

    Nick

    #147792
    Robin W
    Moderator

    ok, think we need to eliminate any other factors

    Plugins

    Deactivate all but bbpress and private groups 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, switch to a default theme such as twentytwelve, and see if this fixes.

    Come back and let me know !

    #147731
    Giacomo
    Participant

    An easy way to achieve the second option would be to copy paste this code at the end of the file named functions.php in your current theme folder.

    Make sure to create a backup of the file functions.php first. And always do the changes on a test server, not the live one.

    
    function rsb_limit_posting( $retval ) {
    
    	// count topics of the current user
    	$topic_count = bbp_get_user_topic_count_raw( get_current_user_id() );
    	// if they are 10 or more, do not allow him to create new topic
    	if ( $topic_count > 9 ) return false;
    	// otherwise return the default 
    	return $retval;
    
    }
    add_filter( 'bbp_current_user_can_access_create_topic_form', 'rsb_limit_posting' );
    

    The code above hide the “new topic form” for users who posted 10 or more topics.

    Hope it helps… good luck!

    #147685
    watstyl08
    Participant

    Hey everyone,

    I’m having a bit of trouble getting my Forum into full-width format. I’m using the Oxygen theme which by default has a left and right sidebar.

    I’ve already copied my “page-template-fullwidth.php”, renamed it as “bbpress.php”, and installed bbPress WP Tweaks to make sure that bbPress is injecting itself into the “bbpress.php” template.

    Given what I’ve read – this should’ve done the trick. I’m wondering if it’s something weird with Oxygen Theme’s templates. I’ve included the code of the Full Width Template i’m using here below. Does anyone see anything out of the ordinary that could be preventing me from getting full-width formatting?

    <?php
    /**
    * Template Name: Full Width
    *
    * Full width page template with no sidebar.
    *
    * @package Oxygen
    * @subpackage Template
    */

    get_header(); // Loads the header.php template. ?>

    <div class=”aside”>

    <?php get_sidebar( ‘primary’ ); // Loads the sidebar-primary.php template. ?>

    </div>

    <?php do_atomic( ‘before_content’ ); // oxygen_before_content ?>

    <div class=”content-wrap”>

    <div id=”content”>

    <?php do_atomic( ‘open_content’ ); // oxygen_open_content ?>

    <div class=”hfeed”>

    <?php if ( have_posts() ) : ?>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php do_atomic( ‘before_entry’ ); // oxygen_before_entry ?>

    <div id=”post-<?php the_ID(); ?>” class=”<?php hybrid_entry_class(); ?>”>

    <?php do_atomic( ‘open_entry’ ); // oxygen_open_entry ?>

    <?php echo apply_atomic_shortcode( ‘entry_title’, ‘[entry-title permalink=”0″]’ ); ?>

    <div class=”entry-content”>

    <?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘oxygen’ ) ); ?>

    <?php wp_link_pages( array( ‘before’ => ‘<p class=”page-links”>’ . __( ‘Pages:’, ‘oxygen’ ), ‘after’ => ‘</p>’ ) ); ?>

    </div><!– .entry-content –>

    <?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>[entry-edit-link]</div>’ ); ?>

    <?php do_atomic( ‘close_entry’ ); // oxygen_close_entry ?>

    </div><!– .hentry –>

    <?php do_atomic( ‘after_entry’ ); // oxygen_after_entry ?>

    <?php do_atomic( ‘after_singular’ ); // oxygen_after_singular ?>

    <?php endwhile; ?>

    <?php endif; ?>

    </div><!– .hfeed –>

    <?php do_atomic( ‘close_content’ ); // oxygen_close_content ?>

    </div><!– #content –>

    <?php do_atomic( ‘after_content’ ); // oxygen_after_content ?>

    <?php get_footer(); // Loads the footer.php template. ?>

    #147680
    Robin W
    Moderator

    No problem,

    It might 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, switch to a default theme such as twentytwelve, and see if this fixes.

    #147629
    Robin W
    Moderator

    Suspect this is a theme issue

    Can you switch to a default theme such as twentytwelve for a moment to see if that fixes. If so come back and we can try and get your theme to work with bbpress

    Sudar Muthu
    Participant

    With the recent bbPress update, the way notification is sent is changed. Earlier individual emails are sent to each people, but now only one email is sent with all the email address in bcc. I guess this is done to prevent email bottleneck. But this seems to have caused a issue in my setup.

    I use wpmandrill to send emails through the mandrill service. With the new change, the to and from address is changed to a default “do not reply” email address that is calculated using the current domain name. The code is present in the bbpress/includes/common/functions.php


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

    So it becomes <nobody@domain.com>

    When this address is used as “to” address, the mandrill service thinks that it is an invalid email address because of the angle brackets.

    I went through the code, but there is no filter to change the $do_not_reply variable.

    #147594
    sigwinstonwolf
    Participant

    Hi, i have reset the forum, and run import again.

    These are my selections:

    source platform: vbulletin3
    –database connections data–
    row limit: 100 row
    delay time: 1 minute
    convert users: checked
    restart: checked
    clean previous installation: checked

    log:

    – start conversion
    – no data to clean
    – user conversion (0-99)
    – user conversion (100-199)
    – cuser conversion ….
    – Delete the default password of WordPress users (1200 – 1299)
    – forum conversion (0-99)
    – calculation forum hierarchy (0-99)
    – conversion threads (0-99)
    – conversion threads (100-199)
    – conversion threads (…)
    – conversion threads (12600-12699)
    – No stickies to stick
    – No super stickies to stick
    – No tag to convert

    Repair any missing information: Continue (<- this is a link to /wp-admin/tools.php?page=bbp-repair)

    WordPress database error: [Table ‘vbulletincopy.tagthread’ doesn’t exist]
    SELECT convert(tagthread.threadid USING “utf8”) AS threadid,convert(tagthread.tagid USING “utf8”) AS tagid,convert(tag.tagtext USING “utf8”) AS tagtext FROM tagthread AS tagthread INNER JOIN tag AS tag USING (tagid) LIMIT 0, 100

    After this message i click “Continue” and run the “repair page” one at a time.
    All operations are successful except “Count the number of threads in which each user” has replied … Failed!

    No replies on forum. Only one replies for each thread.

    I have wordpress 3.9.1 and BBpress 2.5.3

    #147550
    aborruso
    Participant

    Hi all,
    I know that there are several post about it, but I’m not able to find a solution for my forum.
    It’s password proteceted and I cannot send you any link.

    – I have WordPress 3.9.1 and bbpress 2.5.4
    – I use Twenty Eleven (I know it’s a bad theme for bbpress)
    – I have copied the content of /wp-content/plugins/bbpress/templates/default folder in my theme folder
    – I have edited all the php files of my /wp-content/themes/mytheme/bbpress folder and commented “get_sidebar()” function
    – I have created forum.php and bbpress.php file starting from page.php template and commented “get_sidebar()” function

    But I have always the sidebar (below bbpress).

    If I use this code

    function disable_all_widgets( $sidebars_widgets ) {       
        if ( function_exists('is_bbpress') ) {
            if (is_bbpress()) {
                $sidebars_widgets = array(false);
                remove_all_actions('bp_register_widgets');
                unregister_sidebar( 'bp_core_widgets' );
            }
        }
        return $sidebars_widgets;
    }
    
    add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);

    all the widgets disappear, but I have always meta links.

    I know I should change theme. Do you have some tips for this one?

    Thank you,

    Andrea

    #147528
    Styled Themes
    Participant

    The latest WP and bbPress versions,yes…actually tried it again with a fresh install of WP, but same issue and with twenty fourteen and thirteen.
    No bbpress login widget, just logging in with the Default WordPress admin login form to get to the dashboard. So correct on the example wp-login.php url you posted. I will use my localhost on XAMPP as an example:

    http://localhost/pref/wp-login.php

    If I use http://localhost/pref/wp-admin I do get logged into the dashboard. The url becomes

    http://localhost/wp39/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwp39%2Fwp-admin%2F&reauth=1

    when hitting the wp-admin url method.

    #147526
    Styled Themes
    Participant

    Forgot to mention I also tried the default WP themes…same thing happens.

    #147525
    Styled Themes
    Participant

    Thanks for the reply… If you are referring to the admin bar plugin for bbPress, that I don’t have, just the default WP user admin bar. I just finished testing all plugins I have installed, and one by one testing the login (each time closing the browser out), but as soon as I activate bbPress, that is when this phenomenon happens…I log into the dashboard and finding myself staring at the site’s front-page. I still have to add a subpage url to the browser address bar, or use the user admin bar at the top to get to the dashboard.

    So, there is something about bbPress that is doing the front page redirect…even if I make bbPress the only active plugin. This does it on my local XAMPP location, as well as my demo site on a live server.

    Incidentally, I’m on the latest WP and bbPress versions.

    #147523
    Stephen Edgar
    Keymaster

    Yes, this is normal and the default for bbPress 2.5.4, when you click ‘reply’ it links to the #new-post form at the bottom of the topic.

    #147479

    In reply to: Missing naviation

    Stephen Edgar
    Keymaster

    bbPress and BuddyPress include the pagination at the top and bottom by default.

    Your custom theme appears to not do that, most likely the template you need to edit is either content-single-topic.php or content-single-topic-lead.php and look for something similar to:

    
    <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    
    <?php bbp_get_template_part( 'loop',       'replies' ); ?>
    

    And change that to:

    
    <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    
    <?php bbp_get_template_part( 'loop',       'replies' ); ?>
    
    <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    

    If your not comfortable doing that then contact the theme author for details.

    Robin W
    Moderator

    Interesting that without the private groups it didn’t work as expected, and with the private groups it also doesn’t work as expected.

    Maybe be worth investigating the theme and other plugins to see if they are causing an issue.

    so with private groups deactivated

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    wplove3268
    Participant

    I recently installed the eMember plugin (from Tips and Tricks HQ) and have been running bbPress and the Royal Slider slideshow plugin on my site. When all three plugins are running, however, my home page slideshow stops working. I contacted Royal Slider about the issue and they got back to me saying there is a JS error that is blocking the execution of the slideshow-and the source of it was bbPress.

    My site: dev.detoxtheworld.com
    Wordpress version 3.8.1
    Running bbPress version 2.5.3
    I’ve tested the problem using a default theme and it still occurs.

    Here is the script from which the conflict originates: http://dev.detoxtheworld.com/wp-content/plugins/bbpress/templates/default/js/editor.js

    https://bbpress.trac.wordpress.org/browser/tags/2.5.3/templates/default/js/editor.js

    Can anyone tell me what the problem might be and, even better, how to fix it?

    Mod Edit: I removed the code and added a link to the source for improved readability.

    Stephen Edgar
    Keymaster

    Hmmm… What you have outlined sounds like it should be working.

    The one bit I am not sure about is you appear to only be describing WordPress roles and not also including bbPress’ roles in your description above.

    Have you run the bbPress Repair Tool “Remap existing users to default forum roles”?(Tools->Forum)

    This will set the users their bbPress role. The default role is Participant (You can change the default role via bbPress settings)

    As outlined in the roles docs the bbPress role Particpant role includes the capability read_private_forums which in effect means any private forums can be read by users who are logged in, this would include your members and officers WordPress roles if you assign these WordPress role users the bbPress Participant role. If you assign your Officers WordPress role the bbPress Moderator role they will be able to read hidden forums because they have the read_hidden_forums bbPress capability.

    #147370

    Add some debug logging to bbp_set_current_user_default_role() to narrow down the cause,(likely with dumping out the call stack.)

    You should be able to cowboy code something if you’re able to reproduce the issue with a test user account. If you’re able to come up with explicit instructions on how to duplicate this on an installation that only has bbPress running, I’d love to fix anything that isn’t behaving correctly.

    #147369

    In reply to: Can't see any topics

    ubicray
    Participant

    Ran all the repair tools one by one
    Tried default theme, deactivating plugins … no result
    Do you know how can I delete bbpress with all its settings? So i can install again and try
    Now when I uninstall and install again, settings are preserved

    #147368
    JosiahW
    Participant

    Another thing I notices but was not suspicious of until now is that in the users list I see the normal users set to the default WP role of Participant. If I go into their profile the WP role is set to “-No role for this site-“. Nobody has complained about any issue though.

    #147365

    @josiahw That’s pretty odd. If you want to debug, check inside the bbp_set_current_user_default_role function, hooked to bbp_setup_current_user. There are several redundant checks to ensure what you’re seeing doesn’t happen, so I’m curious where it might be failing and how.

    #147354
    ryan360
    Participant

    Bump. I just copied that function into my functions.php file and it’s still linking to the default bbPress forum user page.

    #147349
    Robin W
    Moderator

    suspect this is 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, switch to a default theme such as twentytwelve, and see if this fixes.

Viewing 25 results - 3,051 through 3,075 (of 6,794 total)
Skip to toolbar