Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 5,926 through 5,950 (of 26,877 total)
  • Author
    Search Results
  • #172467
    gptxffa
    Participant

    I 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

    siparker
    Participant

    the 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.


    @robkk

    #172431
    Robin W
    Moderator

    the 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() ? __( '&lsaquo;', 'bbpress' ) : __( '&rsaquo;', '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 !

    #172425
    Robkk
    Moderator

    @nicolasmahy

    This happens when you have threaded replies enabled.
    https://bbpress.trac.wordpress.org/ticket/2823

    The issue is caused by some CSS for absolute positioning the avatar, and also includes this other issue.

    https://bbpress.trac.wordpress.org/ticket/2757

    #172424
    Robin W
    Moderator

    just 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 71

    #172413

    In reply to: Restricting access

    Pascal Casier
    Moderator

    Hi 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.

    Pascal Casier
    Moderator

    Hi,
    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.

    #172408
    Pascal Casier
    Moderator
    Robin W
    Moderator

    2 things to try

    http://www.rewweb.co.uk/bbpress-wp4-fix2/
    and if that doesn’t work, then try my plugin

    https://wordpress.org/plugins/bbp-private-groups/
    to restrict content on bbpress

    #172406
    Pascal Casier
    Moderator

    Hi,
    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.

    #172372

    In reply to: vbulletin 3.x import

    Stephen Edgar
    Keymaster

    The ———————- is typically due to WordPress losing its database connection 🙁

    If you open up a second tab to your /wp-admin page and occasionally refresh that page (30-60mins) that should prevent that from happening again.

    #172356

    In reply to: vbulletin 3.x import

    blandow
    Participant

    Well 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!

    #172355

    In reply to: bbp_new_forum hook

    fterra
    Participant

    If 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");

    #172354
    _az_
    Participant

    Can 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.

    #172350
    Pascal Casier
    Moderator
    #172339

    In reply to: Spectate capability

    Robin W
    Moderator
    Pascal Casier
    Moderator

    Hi 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.

    #172314
    Pascal Casier
    Moderator

    Hi,
    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_comment

    But this is for comments, not for replies …

    Pascal.

    Robkk
    Moderator

    Well 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\default

    To 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/

    #172287

    In reply to: Forum style / setup

    Robin W
    Moderator

    yes use my style pack plugin and the alternate forum template

    https://wordpress.org/plugins/bbp-style-pack/

    #172285
    Stephen Edgar
    Keymaster

    You can also use the built in export WordPress WXR (which is just an XML file), and WordPress Importer plugin.

    #172284
    Stephen Edgar
    Keymaster

    If 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.

    #172276
    Robkk
    Moderator

    Your 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 clearfix

    You may need to contact your theme author for further help on this.

    #172260
    Robin W
    Moderator

    ok, 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?

    Robkk
    Moderator

    This 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??

Viewing 25 results - 5,926 through 5,950 (of 26,877 total)
Skip to toolbar