Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 1,351 through 1,375 (of 6,778 total)
  • Author
    Search Results
  • #185330
    ScottyChoc
    Participant

    WordPress version 4.8
    Genesis Theme version 2.5.2
    bbPress version: 2.5.12
    Site URL: http://staging.c-rad.org/

    My site has a members section for which all of the pages in it have a template applied to it with this simple logic:

    	if ( ! is_user_logged_in()) {
    		wp_login_form();
    		return;
    	} else {
    		// add the members only sidebar and show the content
    	}
    

    Is it possible to install bbPress such that I can apply this template logic to all forum pages?

    I also want all forum pages to exist under a parent page. e.g. c-rad.org/members/forums.

    I can place my forum there (c-rad.org/members/my-forum) using a shortcode, but then all other forum pages go to their default locations (c-rad.org/topic/my-topic).

    I tried changing the Forum Root to ‘members’, but then when I visit that page, the page template with my logic is removed.

    #185273

    In reply to: Multisite

    benjaminsaarde
    Participant

    Hi again,
    I have been searching the web for a solution:
    My idea is to delete the default links, and get the link to peoples primary blog. When they fill out the bbpress form-reply.php, I want to get their user ID. From that user ID I can get the link to their primary blog.
    Right now I got this:

    //In my functions.php(the 2 is an example of a user id):
    $GLOBALS[‘mytheme_thisismyvar’] =2;

    //In my Loop-single-reply.php:´
    <?php
    $yeps=$GLOBALS[‘mytheme_thisismyvar’];
    ?>

    <?php
    $user_info = get_userdata($yeps);
    $blog_details = get_blog_details($user_info->primary_blog);
    echo ‘siteurl.’>’.$blog_details->siteurl.’‘;
    ?>

    I want to get the user id from the bbpress form-reply.php to be $yeps? I thought about using get_the_author_meta?
    Thank you

    #185211
    balloonsc
    Participant

    @christianbritto It works fine for me. http://prntscr.com/fozim0
    I also checked other themes and works fine.
    I see you have activated a few plugins. You should deactivate them and switch to WP default theme.

    Thank you,

    PinkishHue
    Participant

    Using latest BBpress, Buddypress and WP, and tested on a fresh install with WP default theme.

    When viewing a member profile at http://localhost/mysitename/members/testuser/forums/replies/ there is no ‘in reply to:’ and link to the topic in the header of each reply. Just the date.

    I thought perhaps it was theme related (I was using a child theme of the ‘Make’ theme) so have tested on fresh everthing, and it’s still happening.

    I’ve created a new topic from the front end and the back end to see if that was related. I’ve used the forum tools to recalculate everything, I’ve ‘reset’ all forums and started again, still not there.

    Can anyone else recreate this? Any suggestions? Am I misunderstanding something? Thanks

    #185123
    Chad R. Schulz
    Participant

    They are php templates inside bbPress. The default location in bbPress is /plugins/bbpress/templates/default/bbpress/ look for the ones labelled feedback-no-*****.php and alter/edit the ones you want changed and place them into your theme’s bbpress folder.

    Easy peasy.

    Chad

    #185092

    Something in your theme must be forcing the width of those fields. They are naturally responsive by using percentage based widths by default.

    #185055

    In reply to: Change email sender

    Brandon Allen
    Participant

    @karilistermanyahoocom

    The default from email address for bbPress emails is noreply@(url).com. If you’re seeing wordpress@(url).com, it’s either not an email sent by bbPress, or you’re using a plugin that is changing the from address for all emails sent.

    To change the bbPress email, you would use the filter bbp_get_do_not_reply_address. For most (if not all) emails sent by your WordPress install, you’d use the wp_mail_from filter.

    #185021
    Daethian
    Participant

    I’ve been successfully running BP and the forum plugin for several years now.
    I did not add any new plugins but of course have been installing updates as they come up.
    Sometime in the past month I lost the ability to create a new topic on my forum. The forums are not super busy but I post a monthly contest thread so I know it worked fine a month ago.

    No error is generated, the page just reloads. I’ve tried clearing my browser cache in Chrome. I tried using Edge. I went to an entirely different computer from which I’ve never access the site and tried from there using IE. Same result.

    I’ve switched to default theme 2015 and I am able to post but I can’t go back and edit or update the post. I also can not reply to the post using the 2015 theme. I am attempting to contact the theme creator for support but there is still some issue with the default theme so I’m asking here too.

    Another user was able to post a reply finally but I can’t edit my original post. This seems to affect users at random off and on and then resolves itself but I have no idea what is happening.

    Is there some place I can see what plugins were last updated so I can try disabling them?

    I’m on my own domain, multi site install.
    Apache Version 2.2.31
    PHP Version 5.4.45
    MySQL Version 10.1.22-MariaDB-cll-lve
    bbPress 2.5.12-6148
    Wordpress 4.8

    Mushi
    Participant

    @robin-w W Thanks for the reply.
    I have deactivated all the plugins except bbpress and also switch to twentytwelve default theme but still the same issue.

    I also tried to changining “Topics per page” by setting different values but interestingly pagination links after page no 12 don’t work and give 404 error.

    Robin W
    Moderator

    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.

    Then come back

    #184918

    In reply to: bbpress custom fields

    Robin W
    Moderator

    the actual hook is quite easy, there are numerous do-action calls within

    templates/default/bbpress/form-topic.php and form-reply.php

    The real issue is getting someone to code the fields, store them in the database, consider the ability for mods etc. to alter them or delete them, and then decide what you want to do with those fields – eg where to display them etc. etc.

    #184857

    Topic: Forums

    in forum Installation
    kariellen35
    Participant

    I would really like to create forums for my website, however, I don’t have this option:

    A. Set Up Sitewide Forums only

    Install and activate bbPress.
    Proceed to bbPress.org Codex to get started in creating your Sitewide Forums.
    If you kept the default “forums” slug in Settings > Forums, you can create a new Page via Pages > Add New. Add Title “Forums” and insert the forums index shortcode and/or other bbPress shortcode you’ll find in the bbPress Codex then publish the new page.
    Add new “Forums” Page in your custom menu via Appearances > Menu

    Can someone please tell me what I am missing?

    Thank you so much for your time!!

    Take care,
    Kari

    #184813
    Robin W
    Moderator

    suspect your membership software is the issue

    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.

    Then come back

    crooy3
    Participant

    hi

    Today I installed the bbpress plugin and converted all WordPress comments to bbpress topics.

    It works for default post type, but what about custom post types? I trying show comments on that post types as bbpress topics, but unsuccessful.

    Is that even possible?

    #184687
    vicky
    Participant

    HI

    I have Install bbPress and like to setup custom page for forums

    Im getting two URL .. which I dont need and it will be creating duplicate post

    Im getting this link as default https://bestcomputersforgaming.com/forums

    Im trying to design custom page for forums at https://bestcomputersforgaming.com/forum/

    any solution to just to get one forum link

    #184680
    Robin W
    Moderator

    ok, so this is a search function – yes?

    If so, look at this code that I use with my private groups plugin to filter search results and see if you can make this work for you

    //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';
    	}
    	
    	//PRIVATE GROUPS then loop to find allowable results
    	//bail from this part if there are no search terms, as otherwise it sorts the whole database and overflows memory
    	if (! bbp_get_search_terms() == '' ) {
    	//change page default to allow filter against all search results - otherwise allowed posts is only the first page of results ie whatever is in  bbp_get_replies_per_page()
    	$default['posts_per_page'] = -1;
    	$allowed_posts = private_groups_get_permitted_post_ids(new WP_Query( $default ));
    	// Then add allowed forum ids to the default query 
        $default['post__in'] = $allowed_posts;
    	if (empty ($allowed_posts )) $default['post__in'] = array(0) ;
    	//then set per page back (so that we get the correct pagination )
    	$default['posts_per_page'] = bbp_get_replies_per_page();
    	
    	}
    	
    	
    	
    	//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') ; 
    #184679
    Alex Stine
    Participant

    Hello @robin-w,

    If I’m not mistaken, doesn’t this come with bbPress by default? Not sure what template it is actually in right now, but if you open up a single forum, you should see it. For example this URL.

    Plugins

    Thanks.

    #184674
    Alex Stine
    Participant

    Hello @robin-w,

    I’m not using a default bbPress function to hide the topics. I’m using a custom plugin to handle the hiding of topics so members who are participants have a choice if they want the topic to be public to all members or private to moderators and keymasters. As you can see with the code above, that excludes the custom private topics from search results. Now what I need to do is update the pagination counts.

    For example, there’s a topic named “Testing” and another topic named “test123”. Pagination will show 2 topics. If “testing” is now marked private, pagination will show 2 topics. I need to figure out a way to update the pagination so it only shows 1 topic since that’s all is showing to participants. However if a moderator comes along with the required permission to view a private topic, the pagination should still show 2 topics since the moderator has permission to see the private topic.

    I hope this helps explain my goal.

    Thanks.

    #184651
    Stephen Edgar
    Keymaster

    You shouldn’t need to do any of the above, setting your WordPress install to use German as the default language should automatically download bbPress’ translations.

    p.s. If you’re using the method above for a different reason, uploading them to wp-content/languages/bbpress instead of wp-content/languages/buddypress would be the answer 😉

    #184617
    Robin W
    Moderator

    Ok, I understand – that is called ‘breadcrumbs’

    I think your theme might be hiding them.

    as a test try a default theme such as twentyten and see if they are there

    The come back

    #184554
    Robin W
    Moderator

    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.

    Then come back

    #184548
    Robin W
    Moderator

    ok, not sure I can help further – think it is a wordpress/database issue.

    Last 2 throws of the dice

    1. is debug switched on, and if not turn it on to see what errors are appearing. if you need instructions for that – come back

    2. try changing theme to a default one like twentyseventeen, then deactivate and see if that does anything. if that works you could switch back to your normal theme once bbpress is gone.

    #184528
    mapofemergence
    Participant

    Hi @TKServer, I’m glad you revamped this topic.
    Although since my last post I didn’t work further on the code, I’m still very much interested in the discussion.
    Originally, I was going in the same direction that you just suggested but, ultimately, I thought that a separate API would be desirable for a variety of reasons.

    I can name the ones I thought of, but I’m sure others might have even stronger (and more educated) motivations:

    • the most general and obvious: a separate API makes you less dependant on certain builtin constraints of WP API and let you take design decision which are more tightly connected with bbPress specifically; even though bbPress leverages WP’s custom post types and tags, there’s a higher layer of abtraction (read: forum functionality) which implies a whole set of requests for which the existing endpoints’ structure is not ideal
    • depending on what info you want to get with a single request, the default WP API queries might not serve the scope well (ie. they could force the user to make multiple queries where just one would be desirable and sufficient; also, where multiple database calls are required, it might not provide those in the best performing way)
    • from a user standpoint, I believe it is better to offer schemas (and filters) which reflect more the semantics of a forum, than the ones of a blog; I believe you can still build those custom terms in the existing API, but it might become confusing soon, and in my opinion you’d loose the advantage of staying with a single API, anyway
    • additionally (and actually the main reason for me personally), I see bbPress as part of an ecosystem, with WP and BuddyPress. Since BuddyPress already went for a separate API, I thought it would make sense to do the same with bbPress, keeping things clean and separate. Utlimately, the ideal would be to have the bbPress API live with the bbPress plugin itself, so that the development of the two can progress together (and therefore be more efficient and optimised, both ways)
    • finally, speaking of bbPress BuddyPress, there’s an area where the two plugins overlap (bb forums in BP groups); I believe it is already a non-trivial problem to solve in a separate API and it would likely be even more complicated to try and stay within the WP limits; I was mentioning this in another post too, which I believe is still awaiting approval from moderators (please pardon me if I dare poking them here, once more) 🙂

    Again, this is just my opinion; there are probably pros and cons in both options and I’d be more than happy to hear from anyone who’s more bbPress-savvy than I am.

    Cheers,
    s t e

    Ryan Hellyer
    Participant

    This is very old thread, but I just want to clarify something, as this keeps showing up in Google searches for this topic.

    Technically WordPress could work out the post-type; it already does this in the case of posts and pages using the same URL structure. It is however faster if it knows the post-type in advance, hence bbPress prefers to use those slugs by default.

    There is also a secondary problem, which is probably why there isn’t even a common hack to work around this problem, in that if you allow people to create topics and replies at the root level, there could easily be clashes between slugs. This isn’t such a big problem with posts and pages, as usually it’s only the blog admin/editor creating the posts, but in the case of a forum it would be very easy for a member of the public to inadvertently create a clashing slug. You could also ensure that forum posts didn’t clash with existing content in other post-types, but forum users could use page slugs which the admins may want to use for other posts in future. Basically, things get messy.

    Having said all that, this should in theory be possible I think (I haven’t tried to figure out how yet, I’m just searching around to find an existing solution), there would just be a few potential drawbacks. If anyone knows how to do this, please post the solution for the rest of us to see 🙂

    #184349

    In reply to: Query error

    bjorngus
    Participant

    Ok, i have something that seems to work, try it out if you want to, feel free to give me feedback on it.

    function fix_default_search_string_is_bool($args)
    {
        //bbpress gives FALSE as search string causing no replys to show, this fixes it.
        if ($args['s'] === false) {
            unset($args['s']);
        }
        return $args;
    }
    
    add_filter('bbp_after_has_replies_parse_args', 'fix_default_search_string_is_bool');
Viewing 25 results - 1,351 through 1,375 (of 6,778 total)
Skip to toolbar