Forum Replies Created
-
In reply to: Need to export all forum Topics and Replies to PDF
this is a bit clunky, but should work, depending on what you want the final to look like
First forums are custom post types topic, reply or forum.
so use an exporter to get them into excel
eg
https://wordpress.org/plugins/export-2-excel/
https://wordpress.org/plugins/custom-csv-exporter/
Then use say MS word and mailmerge to pull in the data into a format
Then save the resultant word doc as a PDF
In reply to: "Forums" page missing from "Pages" tab listingthe page is a virtual one
Just add it as a link to your menu
dashboard>appearance>menus
and look for ‘links’ under the pages on the left
add it as
http://solonacademy.com/forums/
and add to menu.
Then just edit the description to Forums or whatever
In reply to: Roles Permission Questionseveral ways you could achieve this, and depend son how your site is set up.
if you have ‘approved’ forums as private and the rest as public, the you could user an ‘approve user’ plugin to prevent users accessing before approved – several out there – just google
wordpress plugin approve user registration
or you could use :
https://wordpress.org/plugins/bbp-private-groups/
to control who sees what forums
In reply to: New replies firstIf I needed to control when the replies are asc or desc, what would you recommend? I’m using a custom post type; could I just add a meta box that calls the change_reply_order if checked for desc?
No you really woul;d need to use filters. These work with some shortcodes.
Where they don’t, you’d need to create a new shortcode, but if you need that come back with which and I’ll work on that.
I can only suggest that you go back to
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 twentytwelve, and see if this fixes.
and then come back.
In reply to: New replies firstLet me know which shortcodes you are looking to use, and try the
function change_reply_order() { $args['order'] = 'DESC'; return $args; } add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
first to see if it works
In reply to: Sibe Bar Missing with Striking MultiFlex Themegreat – glad you’re fixed !
In reply to: bbp-single-forum issuesno problem, glad you’re fixed
In reply to: Change Breadcrumb url linkno problem, glad you’re fixed !
In reply to: Group Forum Permalink Wrong@sparkey – ahh buddypress – sorry I know very little about BP, hopefully someone else can help
In reply to: Change Breadcrumb url linkok, I’ve had a detailed look, and there is no simple filter, so we just copy the function, rename it, and the hook back
so post this in your functions file
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') ;
In reply to: Auto close topic after some time / daysyes just use ‘hours’ instead of ‘days’
eg
if ($last_active < strtotime( '-48 hours') )
great – thanks for posting back !!
In reply to: Replies section gives 404 errorNo problem !
In reply to: bbp-single-forum issuesThis is theme related, to prove as a test switch to a default theme such as twentytwelve, and see if this fixes.
I suggest you start with the theme author and see if he can suggest how to fix.
In reply to: Possible to get inline info and nested?no that just gets you to the staring line !
you could advertise it on wordpressjobs
In reply to: Replies section gives 404 errorDashboard>tools>forums>repair
In reply to: Cannot create topic (No data received)Problem solved, turns out it is the word “announce” that triggers the issue.
ok, can you tell us exactly where this is – as a series of steps ie I go into dashboard and click x and type y
In reply to: Can't get access to a created forumIn reply to: Change Breadcrumb url linkok, can you post the lines you altered and which file eg
fileaa.php lines 47-50
altered from
xxx
xxx
xxxto
yyy
yyy
yyyThanks
In reply to: Group Forum Permalink WrongWhich it wouldn’t do if I uncheck the “group forums” check box at bbpress settings.
can you explain what you mean by this ie
Dashboard>settings>…. etc.
Thanks
In reply to: Cannot create topic (No data received)lots of stuff on google about this
https://www.google.co.uk/?gws_rd=ssl#q=err_empty_response+fix
In reply to: Rersonal reply.sorry but GTranslate had badly translated.
Please say your problem again using different words and more words, and we will try and help.
In reply to: Group Forum Permalink WrongWhat is the setting in
Dashboard>settings>permalinks
I can only think that wishlist member or other factor is referencing an item within bbpress, and this has a different ID now that you have reinstalled.
I’d try going into all the settings within wishlist to see if you can identify !