Search Results for '"wordpress'
-
AuthorSearch Results
-
March 4, 2016 at 12:12 am #172467
In reply to: New topic from Index, Redirect to login
gptxffa
ParticipantI have found out it is the Private Group Plugin.
Here is that thread wordpress.org/support/topic/cannot-create-new-topic-from-forum-index?replies=1#post-8111216
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 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: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 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.
March 2, 2016 at 4:59 am #172409Pascal Casier
ModeratorHi,
Just for clarity, when you talk about ‘posts’ and ‘comments’, I suppose you mean ‘topics’ and ‘replies’, right ?I have no idea about that plugin but as you describe it, it does not seem to work correctly with bbPress WordPress post types.
I use ‘bbP Private Groups’ and ‘Members’ from Justin Tadlock on some of my sites and that seems to work great.
Pascal.
March 2, 2016 at 4:58 am #172408In reply to: bbPress login redirect WITH woocommerce
Pascal Casier
ModeratorAnd also check https://wordpress.org/plugins/bbpress-login-register-links-on-forum-topic-pages/ if it can help.
March 2, 2016 at 4:56 am #172407Robin W
Moderator2 things to try
http://www.rewweb.co.uk/bbpress-wp4-fix2/
and if that doesn’t work, then try my pluginhttps://wordpress.org/plugins/bbp-private-groups/
to restrict content on bbpressMarch 2, 2016 at 4:53 am #172406In reply to: bbPress login redirect WITH woocommerce
Pascal Casier
ModeratorHi,
bbPress login is a WordPress login. I suppose woocommerce is also using standard WordPress logins ?Check any of the snippets or plugins in this thread if it can help: https://bbpress.org/forums/topic/setup-login-for-private-forum/
Pascal.
March 1, 2016 at 6:20 am #172372In reply to: vbulletin 3.x import
Stephen Edgar
KeymasterThe
———————-is typically due to WordPress losing its database connection 🙁If you open up a second tab to your
/wp-adminpage and occasionally refresh that page (30-60mins) that should prevent that from happening again.February 29, 2016 at 1:22 pm #172356In reply to: vbulletin 3.x import
blandow
ParticipantWell I am VERY HAPPY to say that I am now successfully importing from vBulletin 3.8.4 to our new WordPress site. I can already browse through the topics and some posts, users, etc. Looks great. I just had one question:
The import is still occuring, and I know with 1.8 million posts it will take while. It already converted users and topics. Now it is creating a series of dashed lines. ———————-
Is this the posts themselves converting? Just curious how long this might take until finished. Just a rough estimate would be great. Thanks!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 29, 2016 at 11:39 am #172350In reply to: best rated forum post display
Pascal Casier
ModeratorWhat exactly are you looking for ? Some plugins for ranking:
https://wordpress.org/plugins/bbpress-votes/
https://bbpress.org/forums/topic/voting-on-user-submitted-posts/
https://wordpress.org/plugins/universal-star-rating/
https://wordpress.org/plugins/rating-widget/
https://wordpress.org/plugins/kk-star-ratings/
https://wordpress.org/plugins/ec-stars-rating/
https://wordpress.org/plugins/wp-postratings/
…I don’t use any of them, but for sure if you don’t want to code, there are enough options.
Pascal.
February 29, 2016 at 8:29 am #172339In reply to: Spectate capability
Robin W
ModeratorFebruary 28, 2016 at 10:22 am #172315Pascal Casier
ModeratorHi siparker,
I won’t start about your first line about the ‘money’, but for adding new functionalities of finding code for existing tickets, https://bbpress.trac.wordpress.org is one of the places that can be used for that. If a ticket is there and there is code attached, it makes a fair chance to be added into future versions.
Pascal.
February 28, 2016 at 10:16 am #172314In reply to: Changing Author ID on submit
Pascal Casier
ModeratorHi,
If this is the standard wordpress function (never used this function before), then you cannot have a ‘post_author_id’, should be ‘user_ID’ and the ‘post_author’ should be ‘comment_author’ …
See https://codex.wordpress.org/Plugin_API/Filter_Reference/preprocess_commentBut this is for comments, not for replies …
Pascal.
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 27, 2016 at 7:35 am #172287In reply to: Forum style / setup
Robin W
Moderatoryes use my style pack plugin and the alternate forum template
February 27, 2016 at 6:40 am #172285In reply to: Anyway to auto-populate a forum structure?
Stephen Edgar
KeymasterYou can also use the built in export WordPress WXR (which is just an XML file), and WordPress Importer plugin.
February 27, 2016 at 5:47 am #172284In reply to: Adding structured data to topic pages
Stephen Edgar
KeymasterIf you want to customise your site to match any of these formats then creating a child theme with the template changes that you’ve already made is the way to go.
And just some FYI on on this stuff from a bbPress context, historically bbPress has supported Microformats as this is also what WordPress uses and most of the search engines also support, Google included.
There is a long standing ticket in bbPress to get its breadcrumbs to work better with search engines though the fact as noted in that ticket is that none of the proposed specifications have been finalised, as none of the HTML5 microdata, Google Microdata Breadcrumbs or Bing Microdata Breadcrumbs specs are complete so we’ll probably go with the accessibility proposal instead.
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:52 pm #172260In reply to: BBPress not working with Optimizepress Theme
Robin W
Moderatorok, just eliminating as sometimes local (pc) installations can have url issues.
Can you tell us in
Dashboard>settings>forums
what the forums root is set to and also do yiu bave a wordpress page with
[bbp-forum-index]on it? and if what is the url of that page?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??
-
AuthorSearch Results