Search Results for 'bbpress'
-
AuthorSearch Results
-
March 3, 2016 at 1:08 pm #172456
In reply to: sidebar not automatically showing on new user Topics
stewmills
ParticipantJust to throw this out as i am thinking out loud…Is it because I don’t have something set right in my child theme where this topic page is picking up a primary theme page instead of picking up the bbpress.php page. I read where bbpress “looks” for the list of pages and grabs the first one it sees in the list, but also understood that if I created this bbpress.php in my child theme that bbpress would know to bypass the other options and always use the bbpress.php template.
Thanks!
March 3, 2016 at 12:36 pm #172455In reply to: sidebar not automatically showing on new user Topics
stewmills
ParticipantI am afraid I am doing something wrong with pastebin. What about this:
<?php
/*
Template Name: bbPress
*/
?>
<?php get_header(); ?>
</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”>
<?php
//retrieve value for sub-nav checkbox
global $post;
$post_id = $post->ID;
$meta_value = get_post_meta($post_id,’truethemes_page_checkbox’,true);if(empty($meta_value)){
get_template_part(‘theme-template-part-subnav-horizontal’,’childtheme’);}else{
// do nothing
}
?><div id=”content” class=”content_left_sidebar”>
<?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 id=”sidebar” class=”left_sidebar”>
<?php generated_dynamic_sidebar(); ?>
</div><!– end sidebar –>
</div><!– end main-holder –>
</div><!– main-area –><?php get_footer(); ?>
March 3, 2016 at 8:36 am #172448In reply to: BBpress post edit causes multiple activity entries
Pascal Casier
ModeratorWell, it is fixed in bbPress 2.6 that should come up pretty soon, so if you can hold a bit longer… If not, feel free to install the alpha version (for testing) that is pretty stable : https://bbpress.org/download/
Any input would be welcome !
Thanks, Pascal.
March 3, 2016 at 8:31 am #172447In reply to: vbulletin 3.x import
Pascal Casier
ModeratorHi @blandow,
Styling can be done in a lot of ways. You can play yourself with some CSS starting from https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/
Or you can check plugins. bbP style pack might be able to help you for the background.
Pascal.
March 3, 2016 at 7:05 am #172444siparker
Participant@casiepa
Do you think i should just gather any info i can and assign to the trac ticket?The solution posted a bit further up the thread by @_az_ does the basics of removing the forum slug but as he mentioend there are a few places where the permalinks are claled like breadcrumbs etc
From what i can find out (i am not a programmer but am trying) for a quick fix we would need to get the forum parent id from the post itself then get the slug for that forumid and any parents it has. then the post permalink is built from the parent slug and the post slug.
This needs to hook into the permalink function to override this and there is a good example (for a different purpose) here https://github.com/korobochkin/bbpress-permalinks-with-id which i think covers off all of the different places that the changes need to be made and could possibly be used as a basis for the new plugin / code.
I am happy to do all the testing and research if anyone is able to provide some coding experience to the mix. please just get in contact with me and i will show you everything i have found so far. then we can publish the code into the trac ticket and hopefully the main devs can put this into core.
If anyone has any ideas on blocking issues for this also please tell me.
I know one of the potential issues and the reason for this structure in the first place was duplicated urls. Could anyone please explain the thinking behind this. and how it might present an issue.
I know the current topics post type wont alow duplicates so the only issue i can see would be if the forum name was the same as a topic name. Is that the only time this might happen?
If so we would need to create a check when saving the url/permalink that a forum post type does not have the same permalink and if it does then add 1 to the end?
The way most other forums do this is by appending the thread id into the permalink so it would appear to be /my-friendly-title-11234 for example where the post id is 11234
not saying bbpress should do this but its an option as the id for the post is available.
March 3, 2016 at 6:46 am #172443siparker
Participantthe Trac ticket that was opened for this is Here
https://bbpress.trac.wordpress.org/ticket/2258
It is 3 years sold and was moved to a future release to wait for the WordPress Permalinks page to be using the settings API, so that these settings were not under the forum page.Not quite sure putting off a fix of this type for 3 years so you can make it appear in a different page is really a good idea but that’s where we are now.
Can it be moved back from a low priority? This is really a high priority for me / anyone wanting to use bbpress for a forum where URLs already exist and need rewriting, or for good SEO URLs.
March 3, 2016 at 6:38 am #172442In reply to: Mobile – avatar overlapping topic title!
Robin W
Moderatorsetting top to zero fixes that !
#bbpress-forums div.bbp-topic-author img.avatar, #bbpress-forums div.bbp-reply-author img.avatar { position: relative ; top : 0px ; }March 3, 2016 at 5:18 am #172440In reply to: Mobile – avatar overlapping topic title!
Robin W
ModeratorWhilst it needs sorting in the core product, the ticket says that putting this in the css file will fix, and did on my test site
#bbpress-forums div.bbp-topic-author img.avatar,
#bbpress-forums div.bbp-reply-author img.avatar {
position: relative
}https://codex.bbpress.org/functions-files-and-child-themes-explained/
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 3, 2016 at 4:52 am #172437In reply to: sidebar not automatically showing on new user Topics
Robin W
Moderatorcan you post a copy of your bbpress.php file in something like pastebin, so that we can see it
March 2, 2016 at 10:06 pm #172436In reply to: BBpress post edit causes multiple activity entries
wafadul
Participantwhich is which? the people over at buddypress say this is a bbpress issue.
March 2, 2016 at 9:30 pm #172435Topic: sidebar not automatically showing on new user Topics
in forum Troubleshootingstewmills
ParticipantI have:
WP 4.4.2
bbPress 2.5.8
BuddyPress 2.4.3
Karma theme 3.0.3I set-up the forum using method 2, which is a page called “userforum” containing the shortcode [bbp-forum-index] and the forum displays just fine and as well shows my left sidebar which houses my login and other widgets. I want this sidebar on ALL forum pages and by creating a bbpress.php page I think I resolved a previous issue where I couldn’t see my sidebar on all pages.
However, I realized today that when a user creates a new Topic, the sidebar is not displayed. The only way I can make it display is to go into the topic as an WP Admin and select the desired sidebar on the Topic page settings and save changes.
I need for new topics created by anyone to always include the sidebar. Did I miss a step somewhere or is this another aggravating quirk with bbPress or my theme not agreeing with one another
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 4:59 pm #172429Topic: bbPress breadcrumb forum root link issue
in forum Troubleshootingstewmills
ParticipantOk…I have scoured the bbPress forum and have tried several things and seem to be getting nowhere…and losing my mind at the same time.
I have:
WP 4.4.2
bbPress 2.5.8
BuddyPress 2.4.3
Karma theme 3.0.3I set-up the forum using method 2, which is a page called “userforum” containing the shortcode [bbp-forum-index] and the forum displays just fine and as well shows my left sidebar which houses my login and other widgets. I want this sidebar on ALL forum pages and by creating a bbpress.php page I think I resolved the previous issue where I couldn’t see my sidebar on all pages. I should also note that my forum root slug is set to “forums”.
So, the issue I have is that when I am on the main forum page (mysite.com/userforum) and drill down into a topic, the breadcrumb it creates is this: Forums > Forum Section > Topic. I can click on any of the breadcrumbs and get the full page with sidebar, but when I click on “Forums” in the breadcrumb it takes me to mysite.com/forums instead of mysite.com/userforum.
Now you may tell me to change my forum root slug to “userforum” but when I do that and go back to my main forum page at mysite.com/userforum, my sidebar does not display on this page BUT the breadcrumb does not take me back to the main forum page mysite.com/userforum like I wanted.
So, with that, what the heck am I missing? If someone can help I can get you into my actual forum page to peek under the hood. If there is simple code to add to my child functions.php file that will let me customize the URL or a simple setting I am missing somewhere?
I have spent way too many hours trying to figure this out and I really need some help here.
Thanks!
March 2, 2016 at 4:45 pm #172428In reply to: vbulletin 3.x import
blandow
ParticipantLooks like the import was a success! Great tool.
My question now is where do I make the customizations for styling? Is it the bbpress.css file or do I have to do it in the main style.css?
I just want to add a white background to every topic page and every forum post.
March 2, 2016 at 4:26 pm #172427In reply to: bbPress login redirect WITH woocommerce
joshcarey
Participant@robin-w I had actually used that “woo-login-redirect” plugin as well. I was able to make it so that woocommerce redirected to any other page that I wanted, however the bbPress login STILL redirected to “My Account”. So unbelievably frustrating.
March 2, 2016 at 4:23 pm #172426In reply to: bbPress login redirect WITH woocommerce
joshcarey
ParticipantMan, oh man. I’m so ticked. I spent probably 4 hours trying to get the dumb login redirect thing to work. COULDN’T get it to work locally.
As soon as I upload the site to a dev server, the login redirect just works flawlessly.
I really wish I understood all the nuances of real web server-side process in browser vs. local browser interactions… But I’m just not that geeky.
Alas, my friends – If you try to develop bbPress locally and have login redirect issues, be sure to upload it and try it on the server. Yes, you’ll have to do multiple theme file uploads and migrations (Migrate DB Pro works great for this) – but its well worth the time and headaches you’ll leave behind by troubleshooting local issues.
Thank you both for your input… I greatly appreciate your time 🙂
March 2, 2016 at 4:04 pm #172425In reply to: Mobile – avatar overlapping topic title!
Robkk
ModeratorThis happens when you have threaded replies enabled.
https://bbpress.trac.wordpress.org/ticket/2823The issue is caused by some CSS for absolute positioning the avatar, and also includes this other issue.
March 2, 2016 at 3:51 pm #172424In reply to: bbPress login redirect WITH woocommerce
Robin W
Moderatorjust seen this !
https://wordpress.org/plugins/woo-login-redirect/
if you download and unwrap it you’ll see two functions, one the filter above !
Depending on your site it might take a
if (is_bbpress()) $redirect = xxtype statement on line 71March 2, 2016 at 3:32 pm #172422In reply to: bbPress login redirect WITH woocommerce
Robin W
Moderatorit’ll be a filter on
add_filter( ‘woocommerce_login_redirect’, xxxxxx );
I have woocommerce and bbpress sites, but not one with both !!
March 2, 2016 at 3:23 pm #172421Topic: Problem with £ Sign when using BBPress
in forum Troubleshootingcooper1210
ParticipantHi,
Everytime I enter £ in a comment or a reply, it is displayed as :
£
How do I set this so the  does not appear?
Thank you
March 2, 2016 at 2:13 pm #172419In reply to: Mobile – avatar overlapping topic title!
nicolas.mahy
ParticipantHi Pascal,
Ja, BBpress kan zeker gebruikt worden om het studentenleven NOG aangenamer te maken 😉
I’m using indeed the twenty thirteen-theme. So what could fix this issue? I’ve tried to find the php-file that’s responsible for placing the topic title at the top of the page, so I could use a couple of <br>’s to solve the issue. It’s not the loop-topics.php or loop-replies.php…
March 2, 2016 at 10:14 am #172415In reply to: bbPress login redirect WITH woocommerce
joshcarey
Participant@casiepa – I looked at your links – I actually did try the bbpress-login-register-links-on-forum-topic-pages plugin before asking for help. Using the links that plugin provides, I was taken to the correct login screens, however, I was still redirected to the woocommerce “My Account” page after login.
I also tried “Peter’s Login Redirect plugin” without any luck. It was actually error-ing out when I was trying to define custom redirect for roles. I just installed it to try again… “ERROR: Unknown error adding role-specific redirect for role bbp_participant” So I’m not sure what the issue is with that plugin. Also, I’m not sure, but even if I got it to work, I wouldn’t want to just redirect the user back to the “forum landing” page – they should be redirected back to the topic they originally tried to login from.
I may just try to upload the site to the development server to see if it will possibly work there for some reason – instead of trying to make it work locally.
March 2, 2016 at 8:25 am #172413In reply to: Restricting access
Pascal Casier
ModeratorHi Pete,
Your questions on viewed by anyone and registration are a pure WordPress matter as bbPress is using WordPress users. What does not come out of the box can be accomplished with some plugins.
To restrict bbPress, I personally use ‘bbP Private Groups’ and ‘Members’ from Justin Tadlock, but there are others of course.
Pascal.
-
AuthorSearch Results