Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 3,701 through 3,725 (of 6,813 total)
  • Author
    Search Results
  • #137021
    kandrite
    Participant

    Hello!

    I can’t seem to find any answers via Google, so maybe you fine folks could help me. I just started delving into bbpress themeing. I’m basically skeletonizing the default bbpress theme so I can start working in depth with it.

    The way I have my forums structured is in three category forums, with variable amounts of subforums. The default theme uses bbp_list_forums to return an unordered list of all subforums of a category. I’ve been messing with the arguments and made each list item separated in its own div. My problem with that is only the text inside the div links to the forum, whereas I would like the entire div to be the link.

    My arguments look like so:

    		<?php bbp_list_forums( array(
    			'before'              => '<ul class="bbp-forums-list">',
            	'after'               => '</ul>',
            	'link_before'         => '<li class="bbp-forum"><a href="<?php the_permalink(); ?>"><div class="forum-list-item">',
            	'link_after'          => '</div></a></li>',
    			'count_before'        => '<div class="forum-list-item-count"><span class="forum-list-item-topics">Topics: </span>',
            	'count_after'         => '',
            	'count_sep'           => '<br><span class="forum-list-item-replies">Replies: </span>',
            	'separator'           => '<br>',
            	'forum_id'            => '',
            	'show_topic_count'    => true,
            	'show_reply_count'    => true,
    		)); ?>

    Any way I can get the permalinks to the individual subforums?

    #137015
    acekin
    Participant

    If a momentary outage of the forum is acceptable, disabling and then enabling bbPress also seems to fix the problem. I have also created a shortcut to each of the submenu items under Forums/Topic/Replies block. Next time I have this outage, I will try the direct shortcuts and see if that may be a workaround.

    I am curious, does the solution “Remap existing users to default forum roles” change any of the users’ roles to “default” from whatever they might be set at?

    #137009
    Zack Tollman
    Participant

    Hi there!

    I just updated to bbPress 2.4 and experienced the same problem. All titles not on bbPress pages were rendered as blank titles.

    It seems bbPress 2.4 introduced a new function that filters the wp_title function. As a temporary workaround that does not required bbPress plugin file changes, I have added the following to my theme’s functions.php:

    /**
     * Restore non bbPress page titles.
     *
     * v2.4 of bbPress introduced a bug where titles for all non-bbPress pages were blank. This function restores order
     * without overwriting the bbPress core files. It uses the exact same function as bbPress for the titles with one
     * change: if none of the bbPress queries match, it returns the original title.
     *
     * The function first removes the bbPress filter that performs this action, then uses it's own routine to determine the
     * title.
     *
     * @param  string    $title          Optional. The title (not used).
     * @param  string    $sep            Optional, default is '&raquo;'. How to separate the various items within the page title.
     * @param  string    $seplocation    Optional. Direction to display title, 'right'.
     * @return string                    Modified title.
     */
    function my_prefix_bbp_title( $title, $sep, $seplocation ) {
    	// Get rid of the core "bbp_title" filter callback
    	remove_filter( 'wp_title', 'bbp_title', 10, 3 );
    
    	// Store original title to compare
    	$_title = $title;
    
    	// Title array
    	$title = array();
    
    	/** Archives **************************************************************/
    
    	// Forum Archive
    	if ( bbp_is_forum_archive() ) {
    		$title['text'] = bbp_get_forum_archive_title();
    
    	// Topic Archive
    	} elseif ( bbp_is_topic_archive() ) {
    		$title['text'] = bbp_get_topic_archive_title();
    
    	/** Edit ******************************************************************/
    
    	// Forum edit page
    	} elseif ( bbp_is_forum_edit() ) {
    		$title['text']   = bbp_get_forum_title();
    		$title['format'] = esc_attr__( 'Forum Edit: %s', 'bbpress' );
    
    	// Topic edit page
    	} elseif ( bbp_is_topic_edit() ) {
    		$title['text']   = bbp_get_topic_title();
    		$title['format'] = esc_attr__( 'Topic Edit: %s', 'bbpress' );
    
    	// Reply edit page
    	} elseif ( bbp_is_reply_edit() ) {
    		$title['text']   = bbp_get_reply_title();
    		$title['format'] = esc_attr__( 'Reply Edit: %s', 'bbpress' );
    
    	// Topic tag edit page
    	} elseif ( bbp_is_topic_tag_edit() ) {
    		$title['text']   = bbp_get_topic_tag_name();
    		$title['format'] = esc_attr__( 'Topic Tag Edit: %s', 'bbpress' );
    
    	/** Singles ***************************************************************/
    
    	// Forum page
    	} elseif ( bbp_is_single_forum() ) {
    		$title['text']   = bbp_get_forum_title();
    		$title['format'] = esc_attr__( 'Forum: %s', 'bbpress' );
    
    	// Topic page
    	} elseif ( bbp_is_single_topic() ) {
    		$title['text']   = bbp_get_topic_title();
    		$title['format'] = esc_attr__( 'Topic: %s', 'bbpress' );
    
    	// Replies
    	} elseif ( bbp_is_single_reply() ) {
    		$title['text']   = bbp_get_reply_title();
    
    	// Topic tag page
    	} elseif ( bbp_is_topic_tag() || get_query_var( 'bbp_topic_tag' ) ) {
    		$title['text']   = bbp_get_topic_tag_name();
    		$title['format'] = esc_attr__( 'Topic Tag: %s', 'bbpress' );
    
    	/** Users *****************************************************************/
    
    	// Profile page
    	} elseif ( bbp_is_single_user() ) {
    
    		// Current users profile
    		if ( bbp_is_user_home() ) {
    			$title['text'] = esc_attr__( 'Your Profile', 'bbpress' );
    
    		// Other users profile
    		} else {
    			$title['text']   = get_userdata( bbp_get_user_id() )->display_name;
    			$title['format'] = esc_attr__( "%s's Profile", 'bbpress' );
    		}
    
    	// Profile edit page
    	} elseif ( bbp_is_single_user_edit() ) {
    
    		// Current users profile
    		if ( bbp_is_user_home_edit() ) {
    			$title['text']   = esc_attr__( 'Edit Your Profile', 'bbpress' );
    
    		// Other users profile
    		} else {
    			$title['text']   = get_userdata( bbp_get_user_id() )->display_name;
    			$title['format'] = esc_attr__( "Edit %s's Profile", 'bbpress' );
    		}
    
    	/** Views *****************************************************************/
    
    	// Views
    	} elseif ( bbp_is_single_view() ) {
    		$title['text']   = bbp_get_view_title();
    		$title['format'] = esc_attr__( 'View: %s', 'bbpress' );
    
    	/** Search ****************************************************************/
    
    	// Search
    	} elseif ( bbp_is_search() ) {
    		$title['text'] = bbp_get_search_title();
    	} else {
    		return $_title;
    	}
    
    	// This filter is deprecated. Use 'bbp_before_title_parse_args' instead.
    	$title = apply_filters( 'bbp_raw_title_array', $title );
    
    	// Set title array defaults
    	$title = bbp_parse_args( $title, array(
    		'text'   => '',
    		'format' => '%s'
    	), 'title' );
    
    	// Get the formatted raw title
    	$title = sprintf( $title['format'], $title['text'] );
    
    	// Filter the raw title
    	$title = apply_filters( 'bbp_raw_title', $title, $sep, $seplocation );
    
    	// Compare new title with original title
    	if ( $title === $_title )
    		return $title;
    
    	// Temporary separator, for accurate flipping, if necessary
    	$t_sep  = '%WP_TITILE_SEP%';
    	$prefix = '';
    
    	if ( !empty( $title ) )
    		$prefix = " $sep ";
    
    	// sep on right, so reverse the order
    	if ( 'right' === $seplocation ) {
    		$title_array = array_reverse( explode( $t_sep, $title ) );
    		$title       = implode( " $sep ", $title_array ) . $prefix;
    
    	// sep on left, do not reverse
    	} else {
    		$title_array = explode( $t_sep, $title );
    		$title       = $prefix . implode( " $sep ", $title_array );
    	}
    
    	// Filter and return
    	return apply_filters( 'bbp_title', $title, $sep, $seplocation );
    }
    
    add_filter( 'wp_title', 'my_prefix_bbp_title', 9, 3 );
    #137008
    Jamil Ahmed
    Participant

    Hi,

    I just used this shortcode [bbp-topic-tags] in widget and also in template file and its showing the tags but with <br> tag after each …. tag. Its means all tag clouds are displaying in a long list style and not displaying like wordpress default Tag cloud are displaying.

    Is this bug or please help to fix thanks

    #136998
    ManuZorch
    Participant

    Hi
    I have faced an issue that maybe some people have encountered and for which I did not find much info on the net.

    Basically the problem was that the bbpress default template that I embedded in my WP template was rendered with supplementary line breaks (<br> and <p> tags). Just as if the wpautop function was reapplied on the forum content included in the template.

    I noticed that the problem was existing on Linux if the template files had an Unix EOL : LF
    And also existing on Windows (using WAMP) if those same files had a Windows EOL : CR+LF
    I found a workaround by making the template files have a Mac End Of Line with : CR

    But I am not sure this is a clean solution
    Maybe there is something far more simple that I do not know

    Thanks

    I am using the latest 2.4 bbpress version

    #136975

    In reply to: Forums Index Issue

    dan
    Participant
    #136974
    dan
    Participant

    Where do I find “content-archive-forum.php”?

    Thanx.

    SysFailure0x5a
    Participant

    I logged in as super admin, went to those settings, and checked “Remap existing users to default forum roles”.

    I logged out of super admin and logged in as the sub-site blog admin. I still have the error…

    #136874
    Oscar Estepa
    Participant

    Not necessarily, the bbpress threaded replies plugin breaks down the pagination taking into account the “parent” replies. Here are the plugin options:

    Enable threaded replies N levels deep

    Break replies into pages with N top level replies per page and the first/last page displayed by default
    Replies should be displayed with the older/newer replies at the top of the page

    bbPress doesn’t add any bb_ tables anymore. It sounds like none of your admins have the Keymaster role.

    If you want to remap user roles, visit Tools > Forums and tick the “Remap existing users to default forum roles” box, and repair them. That will make all Administrators on that site also be Keymasters.

    If you want to automatically map regular registered users to have a role in each site’s forums, visit Settings > Forums and tick “Auto role”.

    Admittedly, the multisite integration right now isn’t ideal; you may end up building plugins to modify the exact behavior to suit your needs. If that’s the case, I’d love to read about your problem and solution, to see if there’s room for better default behaviors in bbPress core.

    highexistence
    Participant

    Is there something that needs to be added to make this new feature work? There is no nesting of replies, nor new added classes to replies that are in response to other replies. My theme is a heavily customized version of the default theme from bbPress 2.0.

    #136801
    Andrew Tegenkamp
    Participant

    We installed http://northstarfamily.org/forums/ for our church and want to have it show both the forum index and the latest topics on the main page.

    Also, I think that http://northstarfamily.org/forums/forum/homecoming-and-10th-anniversary/ should show the description and the topics but only shows the topics.

    Is this how the default is setup or do I have a possible conflict?

    #136776
    jernatety1
    Participant

    Excellent, thank you. I do know which edit to remove in page.php. I wasn’t sure what page was being called because I couldn’t find anything in the editor. Sounds good, thanks for your help.

    #136766
    Xevo
    Participant

    You can edit “content-archive-forum.php” that is as far as I know the frontpage(index) of the forums, you can also remove the search form there.

    Another option for removing the search is by turning sitewide search off in your bbpress settings.

    The forums title is a bit trickier, since it uses your page.php from your normal theme and inserts that content title. You’d have to change it there.

    #136747
    jernatety1
    Participant

    Hello,

    First I’d like to thank you for your plugin it will help very much for the new site I’m building.

    I would like to know what page is the main forum landing page. I’d like to make a few edits, such as removing the default title “Forum” at the top and replace with my site conformed titles for each page. I would also like to comment out the forum search box.

    I am currently wordpress vers 3.6 and I installed bbpress 2.4 today.
    Here is the link. http://108.167.136.97/~kitchens/forums/

    Thank you,

    Ross

    #136716
    vtroia
    Participant

    I apologize in advance if this seems like a duplicate. I’ve read a number of posts on properly creating a BBPress theme, but my CSS refuses to load. Here is how I have things setup.

    wp-content/
    ++++ main-theme-child/
    ++++ +++ bbpress.php
    ++++ +++ bbpress-functions.php
    ++++ +++ bbpress/ <- contains all of the files from the default theme.
    ++++ +++ css/bbpress.css

    For whatever reason, the css won’t load. Any thoughts?

    #136707
    apengstrom
    Participant

    So, I want to edit the new user admin notification email to include BuddyPress custom profile fields.

    This is the email currently:

    “New user registration on your site [sitetitle]:

    Username: [username]

    E-mail: [email]”

    Does anybody know how? I have tried a few plugins that are supposed to work, even one that supposedly works with BuddyPress, but I have not been able to get them to work at all. I still get the default email.

    Thanks..

    #136706
    apengstrom
    Participant

    I have this same issue. I found that the user’s forum role does not get applied until they not only activate their accounts, but also they must login at least once for the forum role to be applied.

    This is not ideal, as I have buddypress custom user profile fields that I need available to me when a user registers, and I cannot view their profile on the forums until they login for the first time.

    #136695

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    The final version should be ready for bbPress 2.5 in ~8 weeks (10/29/13 14:00:00)

    I have not started on the passwords as these are hard and I have to do them for most of the new importers so I will get started on these next week I hope.

    We are importing Email, URL, AIM & Yahoo into the default WordPress user profile and importing SMF’s ICQ, MSN, Signature, Avatar (link only), Location & Personal Text values and storing them in WordPress wp_usermeta table so this can be later imported/manipulated into any custom WordPress profile plugin like BuddyPress, this is not automated in any way though.

    #136644
    kriskl
    Participant

    After weeks trying to find something that would work, I found the code on wordpress forums to remove completely gravatars (and redirects it was causing.. )

    here is it:

    
    function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	if( $image && strpos( $image, "gravatar.com" ) ){ 
    		return '<img src="' . $default . '" alt="avatar" />';
    	} else {
    		return $image;
    	}
    }
    add_filter('bp_core_fetch_avatar', 'bp_remove_gravatar', 1, 9 );
    
    function remove_gravatar ($avatar, $id_or_email, $size, $default, $alt) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	return "<img alt='{$alt}' src='{$default}' height='{$size}' width='{$size}' />";
    }
    
    add_filter('get_avatar', 'remove_gravatar', 1, 5);
    
    function bp_remove_signup_gravatar ($image) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	if( $image && strpos( $image, "gravatar.com" ) ){ 
    		return '<img src="' . $default . '" alt="avatar" width="60" height="60" />';
    	} else {
    		return $image;
    	}
    
    }
    add_filter('bp_get_signup_avatar', 'bp_remove_signup_gravatar', 1, 1 );
    
    

    As I am now planning to disable buddypress completely. I am looking for an easy way to let users upload their avatars in bbpress, anyone tried it already?

    #136634
    Stephen Edgar
    Keymaster

    The file is located in /wp-content/plugins/bbpress/templates/default

    If you edit this file manually when you update bbPress your changes will be lost.

    The link above in my post shows the steps needed to copy this template to your own theme so you can use your own custom templates without bbPress overriding it during updates.

    #136621
    Stephen Edgar
    Keymaster

    It is in the feedback-no-forums.php template \templates\default\bbpress

    If you want to modify this template for your theme here check out the docs on theme compat.

    https://codex.bbpress.org/theme-compatibility/

    #136614
    aihoi
    Participant

    Hello hello,

    This is my first post so sorry if i post it in the wrong place :$

    I wanted to hide my forum by default,I achieved this. Having achieved this, my question: Where in earth do I change the friendly “Oh bother! No forums were found here!” message???? Can’t find it anywhere! I am using bbpress 2.4

    Thanks in advance

    #136582
    gcoz
    Participant

    thanks for checking the queries. I believe it’s not your importer, actually…
    I think there’s just an issue with my databases. I did the optimization for all tables, made another local copy (a brand new installation of Ubuntu with default settings for apache, php and the largest settings for mysql allowing it to use more resources).
    However, after some more digging, I’m starting to think that my tables are the reason for this slow-down. Specifically them being a mix of MyISAM and InnoDB after many years of conversions, WP updates and one forum conversion from phpbb to vanilla.

    I tried to get some out-of-memory errors but all it does is slow it down and it keeps going really slowly. Even setting it to 2000 rows at 1 second doesn’t seem to push it to run out of memory. The “top” command just shows me that it’s working away at 60% CPU and 11% memory for mysql and 50% CPU and 2% memory for apache.

    MySQL workbench shows that I only have 6 connections active, which is probably another related issue. I don’t know how to change that but my current running test conversion is with all WP tables converted to InnoDB. It fluctuates at 50-200 writes per second according to MySQL workbench

    This is total guesswork on my end (I’m no expert) and I thought it might be a helpful starting point for others with similar issues…

    #136562
    robkhoo
    Participant

    Hi guys,
    Have a problem working out how to use the archive page and shortcode to create a forum index.

    Currently, the default archive page created for forums gives me an unstyled archive page without a H1. My archive page slug is “forum”

    So, Instead of this I have decided to make a regular page, name it forum and stick the shortcode for the forum index in. Perfect!! I thought…..

    2 The issues remain. Although the index page looks good as a regular page, the breadcrumbs when in a single forum / topic take users back to the archive page, not the new forum index page.

    The second is that the archive page actually still exists…. I would like if possible to be able to overwrite access o the old forum archives when creating the forum index.

    Basically, I don’t want 2 archive or forum index pages to exist for the site.

Viewing 25 results - 3,701 through 3,725 (of 6,813 total)
Skip to toolbar