Search Results for '+.+default+.+'
-
AuthorSearch Results
-
March 5, 2016 at 5:58 am #172512
Topic: What is Username displayed by default?
in forum InstallationBrovashift
ParticipantHi anyone and everyone,
Im just wondering why bbpress displays participants real name instead of their username by default? I want to change this as I can’t remember ever seeing a site before where you create a username for it not to be used, even this bbpress support forum shows usernames!
I see topics on this matter going back 4+ years, and still its the same solution, why?
So why is it that we have to edit code to achieve this? It should at least be a simple edit in the admin area.
March 4, 2016 at 11:38 pm #172509In reply to: BuddyPress + bbPress breaks bbPress search widget
amongstlovelythings
ParticipantThanks!
I did deactivate all but bbpress- and the search bar was fixed. I re-enabled them one at a time, and found that BuddyPress was causing the error.
I then switched to the default theme twentyfifteen, but the search bar completely disappeared when I did that…
So now I’m back on the Beautiful theme for Genesis.
Also– FYI, the search bar was working beautifully about 3 or 4 days ago. This is a new problem that just started within the last couple of days.
March 4, 2016 at 6:10 pm #172504In reply to: BuddyPress + bbPress breaks bbPress search widget
Robin W
ModeratorIt 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
March 4, 2016 at 3:12 pm #172485In reply to: sidebar not automatically showing on new user Topics
stewmills
ParticipantUnfortunately that didn’t work. I switched the code and while it still included a sidebar with stuff, it was a sidebar with all sorts of crazy stuff about a page long.
So, I acted as if I was starting over and I copied my page.php file and resaved it as bbpress.php in my main theme folder. The result of this was a page with no sidebar anywhere in my forum since this template does not include any sidebar info.
So do I:
a) keep the page.php file that I renamed to bbpress.php and just add some code (I would need directions) to include the sidebar on all bbpress pages.
b) revert back to my previous page an keep troubleshooting this issue with the page template that i know works aside from the topics page.Here is the code from the page.php page that I renamed to bbpress.php, which looks great but does not display my sidebar on any forum page.
<?php get_header(); ?> <?php // check for WooCommerce. If true, load WooCommerce custom layout if (class_exists('woocommerce') && ((is_woocommerce() == "true") || (is_checkout() == "true") || (is_cart() == "true") || (is_account_page() == "true") )){ ?> </div><!-- header-area --> </div><!-- end rays --> </div><!-- end header-holder --> </div><!-- end header --> <?php truethemes_before_main_hook(); //action hook ?> <div id="main" class="tt-woocommerce"> <?php get_template_part('theme-template-part-tools-woocommerce','childtheme'); ?> <div class="main-holder"> <div id="content"> <?php if(have_posts()) : while(have_posts()) : the_post(); the_content(); truethemes_link_pages(); endwhile; endif; comments_template('/page-comments.php', true); ?> </div><!-- end content --> <div id="sidebar" class="right_sidebar"> <?php if ( (is_cart() == "true") || (is_checkout() == "true") ) { dynamic_sidebar("WooCommerce - Cart + Checkout"); } else { dynamic_sidebar("WooCommerce Sidebar"); } ?> </div><!-- end sidebar --> </div><!-- end main-holder --> </div><!-- main-area --> <?php // ELSE load default layout } else { ?> </div><!-- header-area --> </div><!-- end rays --> </div><!-- end header-holder --> </div><!-- end header --> <?php truethemes_before_main_hook();// action hook, see truethemes_framework/global/hooks.php ?> <div id="main"> <?php get_template_part('theme-template-part-tools','childtheme'); ?> <div class="main-holder"> <div id="content" class="content_full_width"> <?php if(have_posts()) : while(have_posts()) : the_post(); the_content(); truethemes_link_pages(); endwhile; endif; comments_template('/page-comments.php', true); get_template_part('theme-template-part-inline-editing','childtheme'); ?> </div><!-- end content --> </div><!-- end main-holder --> </div><!-- main-area --> <?php // END WooCommerce loop } ?> <?php get_footer(); ?>Thanks!
March 4, 2016 at 6:06 am #172473In reply to: add a specific class
neecride
ParticipantThank you !
I found the file in part !!
Now I would like to change while loop_forums in index forums on loop-forums.php
exemple : http://gauge.wpengine.com/forums/
i does not use shortcode I create a forum page and i edit the default page in bbpress folder on my folder template !
translated by google !!
March 4, 2016 at 12:54 am #172468Topic: BuddyPress + bbPress breaks bbPress search widget
in forum Pluginsamongstlovelythings
ParticipantWhen BuddyPress is active on my site, the bbPress Search Widget does not work. It just displays the default home page rather than search results.
Please advise if there is a fix for this. Forum search is an absolute necessity for us.
Forum URL: http://forum.amongstlovelythings.com
bbPress: Version 2.5.8
BuddyPress: Version 2.5.0Thank you.
March 3, 2016 at 5:24 pm #172463In reply to: participant reply or topic confirm
Robin W
Moderatorsorry still don’t understand.
Have you done
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
March 3, 2016 at 4:57 am #172439In reply to: Problem with £ Sign when using BBPress
Robin W
ModeratorIt 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.
Also can you tell us what language you are set to in
Dashboard>settings>general
Then come back
March 3, 2016 at 4:53 am #172438In reply to: New topic from Index, Redirect to login
Robin W
ModeratorIt 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
March 2, 2016 at 5:51 pm #172431In reply to: bbPress breadcrumb forum root link issue
Robin W
Moderatorthe code you need is
function change_root( $args = array() ) { // Turn off breadcrumbs if ( apply_filters( 'bbp_no_breadcrumb', is_front_page() ) ) return; // Define variables $front_id = $root_id = 0; $ancestors = $crumbs = $tag_data = array(); $pre_root_text = $pre_front_text = $pre_current_text = ''; $pre_include_root = $pre_include_home = $pre_include_current = true; /** Home Text *********************************************************/ // No custom home text if ( empty( $args['home_text'] ) ) { $front_id = get_option( 'page_on_front' ); // Set home text to page title if ( !empty( $front_id ) ) { $pre_front_text = get_the_title( $front_id ); // Default to 'Home' } else { $pre_front_text = __( 'Home', 'bbpress' ); } } /** Root Text *********************************************************/ // No custom root text if ( empty( $args['root_text'] ) ) { $page = bbp_get_page_by_path( bbp_get_root_slug() ); if ( !empty( $page ) ) { $root_id = $page->ID; } $pre_root_text = bbp_get_forum_archive_title(); } /** Includes **********************************************************/ // Root slug is also the front page if ( !empty( $front_id ) && ( $front_id === $root_id ) ) { $pre_include_root = false; } // Don't show root if viewing forum archive if ( bbp_is_forum_archive() ) { $pre_include_root = false; } // Don't show root if viewing page in place of forum archive if ( !empty( $root_id ) && ( ( is_single() || is_page() ) && ( $root_id === get_the_ID() ) ) ) { $pre_include_root = false; } /** Current Text ******************************************************/ // Search page if ( bbp_is_search() ) { $pre_current_text = bbp_get_search_title(); // Forum archive } elseif ( bbp_is_forum_archive() ) { $pre_current_text = bbp_get_forum_archive_title(); // Topic archive } elseif ( bbp_is_topic_archive() ) { $pre_current_text = bbp_get_topic_archive_title(); // View } elseif ( bbp_is_single_view() ) { $pre_current_text = bbp_get_view_title(); // Single Forum } elseif ( bbp_is_single_forum() ) { $pre_current_text = bbp_get_forum_title(); // Single Topic } elseif ( bbp_is_single_topic() ) { $pre_current_text = bbp_get_topic_title(); // Single Topic } elseif ( bbp_is_single_reply() ) { $pre_current_text = bbp_get_reply_title(); // Topic Tag (or theme compat topic tag) } elseif ( bbp_is_topic_tag() || ( get_query_var( 'bbp_topic_tag' ) && !bbp_is_topic_tag_edit() ) ) { // Always include the tag name $tag_data[] = bbp_get_topic_tag_name(); // If capable, include a link to edit the tag if ( current_user_can( 'manage_topic_tags' ) ) { $tag_data[] = '<a href="' . esc_url( bbp_get_topic_tag_edit_link() ) . '" class="bbp-edit-topic-tag-link">' . esc_html__( '(Edit)', 'bbpress' ) . '</a>'; } // Implode the results of the tag data $pre_current_text = sprintf( __( 'Topic Tag: %s', 'bbpress' ), implode( ' ', $tag_data ) ); // Edit Topic Tag } elseif ( bbp_is_topic_tag_edit() ) { $pre_current_text = __( 'Edit', 'bbpress' ); // Single } else { $pre_current_text = get_the_title(); } /** Parse Args ********************************************************/ // Parse args $r = bbp_parse_args( $args, array( // HTML 'before' => '<div class="bbp-breadcrumb"><p>', 'after' => '</p></div>', // Separator 'sep' => is_rtl() ? __( '‹', 'bbpress' ) : __( '›', 'bbpress' ), 'pad_sep' => 1, 'sep_before' => '<span class="bbp-breadcrumb-sep">', 'sep_after' => '</span>', // Crumbs 'crumb_before' => '', 'crumb_after' => '', // Home 'include_home' => $pre_include_home, 'home_text' => $pre_front_text, // Forum root 'include_root' => $pre_include_root, 'root_text' => $pre_root_text, // Current 'include_current' => $pre_include_current, 'current_text' => $pre_current_text, 'current_before' => '<span class="bbp-breadcrumb-current">', 'current_after' => '</span>', ), 'get_breadcrumb' ); /** Ancestors *********************************************************/ // Get post ancestors if ( is_singular() || bbp_is_forum_edit() || bbp_is_topic_edit() || bbp_is_reply_edit() ) { $ancestors = array_reverse( (array) get_post_ancestors( get_the_ID() ) ); } // Do we want to include a link to home? if ( !empty( $r['include_home'] ) || empty( $r['home_text'] ) ) { $crumbs[] = '<a href="' . trailingslashit( home_url() ) . '" class="bbp-breadcrumb-home">' . $r['home_text'] . '</a>'; } // Do we want to include a link to the forum root? if ( !empty( $r['include_root'] ) || empty( $r['root_text'] ) ) { // Page exists at root slug path, so use its permalink $page = bbp_get_page_by_path( bbp_get_root_slug() ); if ( !empty( $page ) ) { $root_url = get_permalink( $page->ID ); // Use the root slug } else { $root_url = get_post_type_archive_link( bbp_get_forum_post_type() ); } // Add the breadcrumb //$crumbs[] = '<a href="' . esc_url( $root_url ) . '" class="bbp-breadcrumb-root">' . $r['root_text'] . '</a>'; $crumbs[] = '<a href="/forums/">Forums</a>'; } // Ancestors exist if ( !empty( $ancestors ) ) { // Loop through parents foreach ( (array) $ancestors as $parent_id ) { // Parents $parent = get_post( $parent_id ); // Skip parent if empty or error if ( empty( $parent ) || is_wp_error( $parent ) ) continue; // Switch through post_type to ensure correct filters are applied switch ( $parent->post_type ) { // Forum case bbp_get_forum_post_type() : $crumbs[] = '<a href="' . esc_url( bbp_get_forum_permalink( $parent->ID ) ) . '" class="bbp-breadcrumb-forum">' . bbp_get_forum_title( $parent->ID ) . '</a>'; break; // Topic case bbp_get_topic_post_type() : $crumbs[] = '<a href="' . esc_url( bbp_get_topic_permalink( $parent->ID ) ) . '" class="bbp-breadcrumb-topic">' . bbp_get_topic_title( $parent->ID ) . '</a>'; break; // Reply (Note: not in most themes) case bbp_get_reply_post_type() : $crumbs[] = '<a href="' . esc_url( bbp_get_reply_permalink( $parent->ID ) ) . '" class="bbp-breadcrumb-reply">' . bbp_get_reply_title( $parent->ID ) . '</a>'; break; // WordPress Post/Page/Other default : $crumbs[] = '<a href="' . esc_url( get_permalink( $parent->ID ) ) . '" class="bbp-breadcrumb-item">' . get_the_title( $parent->ID ) . '</a>'; break; } } // Edit topic tag } elseif ( bbp_is_topic_tag_edit() ) { $crumbs[] = '<a href="' . esc_url( get_term_link( bbp_get_topic_tag_id(), bbp_get_topic_tag_tax_id() ) ) . '" class="bbp-breadcrumb-topic-tag">' . sprintf( __( 'Topic Tag: %s', 'bbpress' ), bbp_get_topic_tag_name() ) . '</a>'; // Search } elseif ( bbp_is_search() && bbp_get_search_terms() ) { $crumbs[] = '<a href="' . esc_url( bbp_get_search_url() ) . '" class="bbp-breadcrumb-search">' . esc_html__( 'Search', 'bbpress' ) . '</a>'; } /** Current ***********************************************************/ // Add current page to breadcrumb if ( !empty( $r['include_current'] ) || empty( $r['current_text'] ) ) { $crumbs[] = $r['current_before'] . $r['current_text'] . $r['current_after']; } /** Separator *********************************************************/ // Wrap the separator in before/after before padding and filter if ( ! empty( $r['sep'] ) ) { $sep = $r['sep_before'] . $r['sep'] . $r['sep_after']; } // Pad the separator if ( !empty( $r['pad_sep'] ) ) { if ( function_exists( 'mb_strlen' ) ) { $sep = str_pad( $sep, mb_strlen( $sep ) + ( (int) $r['pad_sep'] * 2 ), ' ', STR_PAD_BOTH ); } else { $sep = str_pad( $sep, strlen( $sep ) + ( (int) $r['pad_sep'] * 2 ), ' ', STR_PAD_BOTH ); } } /** Finish Up *********************************************************/ // Filter the separator and breadcrumb $sep = apply_filters( 'bbp_breadcrumb_separator', $sep ); $crumbs = apply_filters( 'bbp_breadcrumbs', $crumbs ); // Build the trail $trail = !empty( $crumbs ) ? ( $r['before'] . $r['crumb_before'] . implode( $sep . $r['crumb_after'] . $r['crumb_before'] , $crumbs ) . $r['crumb_after'] . $r['after'] ) : ''; return apply_filters( 'change_root', $trail, $crumbs, $r ); } add_filter ('bbp_get_breadcrumb', 'change_root') ;pulled from a thread I did long ago
I don’t know how code aware you are to change this to what you want, so come back and let me know – it would take me a while to work out what to change, and I really don’t want to do this if you are capable !
March 2, 2016 at 9:47 am #172414In reply to: bbPress login redirect WITH woocommerce
joshcarey
Participant@robin-w: The site is currently in local development. And yes, as @casiepa said, I’m not using any particular form, so I’m assuming it defaults to the standard WP login. I am using the woocommerce page and shortcode (woocommerce_my_account) for the “my account” page.
@casiepa: I’ll look through those 2 resources to see if anything there helps.March 1, 2016 at 3:04 pm #172380In reply to: add a specific class
Robin W
Moderatorcreate a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
bbPress will now use this template instead of the original
and you can amend thisamend line 12 to
<ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class('', $classes[] = 'hello' ); ?>>March 1, 2016 at 2:42 pm #172379Robin W
ModeratorIt 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
March 1, 2016 at 9:51 am #172375In reply to: Menu "Forum" disappeared for Moderator role
Pascal Casier
ModeratorHi ruuizz,
If you have already deactived all plugins except bbPress and switched to a default theme and you still do not see ‘Forums’, ‘Topics’ and/or ‘Replies’, then please try this in Settings > Forums (check after every step if you find the options back on your dashboard):
– ‘Settings > Forums’ : (de)activate ‘Anonymous posting’, save, (de)activate it again to get back to your original setting, save
– ‘Settings > Forums’ : (de)activate ‘Auto role’, save, (de)activate it again to get back to your original setting, save
– Deactivate the bbPress plugin, then reactive the bbPress plugin
– ‘Tools > Forums > Repair Forums’ : Remap existing users to default forum roles, click ‘Repair Items’ (WARNING: Make sure to have multiple admins in case the keymaster role would disappear from one account)Let me know if this fixes anything,
Pascal.February 29, 2016 at 1:13 pm #172355In reply to: bbp_new_forum hook
fterra
ParticipantIf you use wp_insert_post, remember to check if the post being saved is a forum.
Default forum type value is'forum'.
But you should use bbp_get_forum_post_type() to use its current value in case it has been altered by some filter.
You may also take advantage of the following wordpress dynamic hook:
"save_post_{$post->post_type}"
which you would hook to with something like:
add_action("save_post_" . bbp_get_forum_post_type(), "my_hook");February 29, 2016 at 1:06 pm #172354In reply to: Anyway to auto-populate a forum structure?
_az_
ParticipantCan you please provide more information how to use one of those two plugins to create a “default” structure in a sub-forum that is added manually at some point after installation?
It seems those plugins are suitable for creating/importing backups of WordPress content from one instance to another.
February 28, 2016 at 11:55 am #172316Topic: add a specific class
in forum Themesneecride
ParticipantHello,
I look for how to add a class css on loop-single-forum.php line 12
<ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>on default
bbp_forum_class();sorry I’m french ! I do not understand English too
February 28, 2016 at 9:22 am #172313Robkk
ModeratorWell you cannot modify the functions in the template.php by copying over the file like the file in the bbPress default theme, which is in
wp-content\plugins\bbpress\templates\defaultTo customize the code in template.php you would have to filter the code. Paste any new functions you create with the filters from the template.php file into a functions.php file in your child theme or in a custom functionality plugin.
https://codex.wordpress.org/Function_Reference/add_filter
https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-5/
February 26, 2016 at 9:30 pm #172276In reply to: Yet another sidebar issue
Robkk
ModeratorYour theme looks to be using post meta to display the sidebars, so there might be custom fields to configure which sidebar to display which will most likely be on the default WordPress post types (page and post) when you create/edit them. These options may not be on the bbPress post type creation/editing screens in the WordPress backend.
I see there is a ton of code that might not even be usable because bbPress post types may not have these custom field options to configure things like the slider, background color, and other options I can see in the code.
I do see from the classes that this uses a responsive grid layout so maybe focus and keep this class as it is a two column layout, one for the content and one for the sidebar.
two_columns_66_33 grid2 clearfixYou may need to contact your theme author for further help on this.
February 26, 2016 at 5:26 pm #172259Robkk
ModeratorThis is the URL /forums/search/french+fries/ that is returning in the browser instead of the normal /?s=french+fries peram.
The first url is normal for the bbPress forums search, in the second is normal for default WordPress search.
https://bbpress.org/forums/search/French+Fries/
In a plain permalink setup the forum search does look like this
yoursite.com/forums/search/?action=bbp-search-request&bbp_search=french+fries
What other themes have you tried and what are the currently active plugins you have right now??
February 26, 2016 at 4:51 pm #172253thinkDrew
ParticipantThanks for the reply!
This is actually something I did before posting here (should have mentioned it) and while running the default 2015 theme, I am running into the same issue. This is the URL
/forums/search/french+fries/that is returning in the browser instead of the normal/?s=french+friesperam.It’s strange as I have several other corporate wordpress sites running (not w/ bbpress) but have never had a problem with “out of the box” search widgets :)…
I will continue to test (only running 4 plugins) and see what comes from that.
February 26, 2016 at 4:20 pm #172252Robkk
ModeratorI could not reduplicate this issue on a default theme like TwentyFifteen.
Try it on your end on a default theme and see if you come across the same result.
Try it on a test site/local site with a WordPress default theme, then try with your current theme.
February 26, 2016 at 12:11 pm #172232_az_
ParticipantI think #2258 is pretty complex to implement but possible. Might take some days to do it i guess.
Here is my workaround:
in functions.php:
/** * for nicer permalinks: * * from: forums/forum/name -> to forum/name * * also required rewrite rules below in myThemeName_addRewriteRules */ function myThemeName_bbp_get_forum_permalink_withoutRootSlug() { return preg_replace( '/(' . bbp_get_root_slug() . '\/)/', '', bbp_get_forum_permalink()); } function myThemeName_addRewriteRules() { /** * add rewrite rules for bbpress */ // use this to test instead of clicking Save Changes in Settings -> Permalinks // global $wp_rewrite; // $wp_rewrite->flush_rules(); add_rewrite_endpoint(get_option('_bbp_forum_slug'), EP_ROOT); add_rewrite_rule('^'. get_option('_bbp_forum_slug') . '/(.*)?','index.php?post_type=forum&name=$matches[1]'); } add_action('init', 'myThemeName_addRewriteRules');Replacement in my custom loop-single-forum.php:
<a href="<?php echo myThemeName_bbp_get_forum_permalink_withoutRootSlug(); ?>">Default bbpress templates use it at more places than my theme:
Found 5 matches of bbp_(get_)?forum_permalink in 4 files. loop-search-forum.php <a href="<?php bbp_forum_permalink(); ?>" class="bbp-forum-permalink">#<?php bbp_forum_id(); ?></a> [position 18:18] <h3><?php _e( 'Forum: ', 'bbpress' ); ?><a href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a></h3> [position 26:58] loop-search-topic.php <a href="<?php bbp_forum_permalink( bbp_get_topic_forum_id() ); ?>"><?php bbp_forum_title( bbp_get_topic_forum_id() ); ?></a> [position 41:19] loop-single-forum.php <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a> [position 32:42] loop-single-topic.php <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span> [position 68:102]Feel free to hit the Flattr Button on my page: az.zankapfel.org
Update: Seems that the breadcrumbs need a hack too… 🙂
February 24, 2016 at 5:06 pm #172168In reply to: How to noindex member pages?
originalo
ParticipantI found an answer that solves my question here:
For those who want to noindex in particular the replies of all mebers just add
<META NAME=”ROBOTS” CONTENT=”NOINDEX, NOFOLLOW” />
to the “user-replies-created.php” in the folder
wordpress > wp-content > plugins > bbpress > templates > default > bbpressFebruary 24, 2016 at 3:44 pm #172164Topic: New Topic has a default post(reply)
in forum Troubleshootingaddisonlegere
ParticipantI am trying to not show any reply(post) on the Topic page until someone adds one. The problem I have is that when I create a topic, there is already a reply that shows up.
So the Forum page says there is 1 post already, before anyone has even replied. How do I stop this from happening?
-
AuthorSearch Results