Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 23,151 through 23,175 (of 64,534 total)
  • Author
    Search Results
  • #139559

    In reply to: Stylesheet Issues

    focallocal
    Participant

    i’m making all changes live to my site as i havent launched yet (hopefully in 2 days) and my hosting companies servers are running Litespeed.

    <link rel=’stylesheet’ id=’bbp-default-css’ href=’http://focallocal.org/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5-5199&#8242; type=’text/css’ media=’screen’ />

    #139557

    In reply to: Stylesheet Issues

    Stephen Edgar
    Keymaster

    It looks like you have patched the file correctly.

    Can you view the source and get the stylesheet path and paste it here:

    eg.
    A ‘failed’ example
    <link rel="stylesheet" id="bbp-default-css" href="http://localhost/wordpress37/wp-content/C:devhtdocswordpress37wp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199" type="text/css" media="screen">

    A ‘working’ example:
    <link rel='stylesheet' id='bbp-default-css' href='http://127.0.0.1/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5-5199' type='text/css' media='screen' />

    Stephen Edgar
    Keymaster

    Are you hosting this yourself on Windows?

    If so we have a patch for bbPress 2.5.1 here
    https://bbpress.trac.wordpress.org/ticket/2481

    We have had no known issues of this for bbPress 2.4

    Who is your webhost provider and/or what software package and version are you using locally? eg. XAMPP 1.8.3

    ozgurpolat
    Participant

    Hi,

    I have a bbpress Version 2.3.2 installation that works fine but if I upgrade to Version 2.4 or 2.5, the css breaks for subscribers and only for child forums. What I mean is if I have a parent forum and create a child forum, when a subscriber visits the child forum, css doesn’t display properly, but if the user is admin, there is no problem. Not sure how to fix it.

    Thanks

    #139551

    In reply to: Stylesheet Issues

    focallocal
    Participant
    function bbp_enqueue_style( $handle = '', $file = '', $dependencies = array(), $version = false, $media = 'all' ) {
    
    	// No file found yet
    	$located = false;
    
    	// Trim off any slashes from the template name
    	$file = ltrim( $file, '/' );
    
    	// Make sure there is always a version
    	if ( empty( $version ) ) {
    		$version = bbp_get_version();
    	}
    
    	// Loop through template stack
    	foreach ( (array) bbp_get_template_stack() as $template_location ) {
    
    		// Continue if $template_location is empty
    		if ( empty( $template_location ) ) {
    			continue;
    		}
    
    		// Check child theme first
    		if ( file_exists( trailingslashit( $template_location ) . $file ) ) {
    			$located = trailingslashit( $template_location ) . $file;
    			break;
    		}
    	}
    
    	// Enqueue if located
    	if ( !empty( $located ) ) {
    
                    $content_dir = constant( 'WP_CONTENT_DIR' );
    
                    // IIS (Windows) here
                    // Replace back slashes with forward slash
                    if ( strpos( $located, '\\' ) !== false ) {
                            $located     = str_replace( '\\', '/', $located );
                            $content_dir = str_replace( '\\', '/', $content_dir );
                    }
    
    		// Make path to file relative to site URL
    		$located = str_replace( $content_dir, WP_CONTENT_URL, $located );
    
    		// Enqueue the style
    		wp_enqueue_style( $handle, $located, $dependencies, $version, $media );
    	}
    
    	return $located;
    }
    
    /**
     * Enqueue a script from the highest priority location in the template stack.
     *
     * Registers the style if file provided (does NOT overwrite) and enqueues.
     *
     * @since bbPress (r5180)
     *
     * @param string      $handle    Name of the script.
     * @param string|bool $file      Relative path to the script. Example: '/js/myscript.js'.
     * @param array       $deps      An array of registered handles this script depends on. Default empty array.
     * @param string|bool $ver       Optional. String specifying the script version number, if it has one. This parameter
     *                               is used to ensure that the correct version is sent to the client regardless of caching,
     *                               and so should be included if a version number is available and makes sense for the script.
     * @param bool        $in_footer Optional. Whether to enqueue the script before </head> or before </body>.
     *                               Default 'false'. Accepts 'false' or 'true'.
     *
     * @return string The script filename if one is located.
     */
    function bbp_enqueue_script( $handle = '', $file = '', $dependencies = array(), $version = false, $in_footer = 'all' ) {
    
    	// No file found yet
    	$located = false;
    
    	// Trim off any slashes from the template name
    	$file = ltrim( $file, '/' );
    
    	// Make sure there is always a version
    	if ( empty( $version ) ) {
    		$version = bbp_get_version();
    	}
    
    	// Loop through template stack
    	foreach ( (array) bbp_get_template_stack() as $template_location ) {
    
    		// Continue if $template_location is empty
    		if ( empty( $template_location ) ) {
    			continue;
    		}
    
    		// Check child theme first
    		if ( file_exists( trailingslashit( $template_location ) . $file ) ) {
    			$located = trailingslashit( $template_location ) . $file;
    			break;
    		}
    	}
    
    	// Enqueue if located
    	if ( !empty( $located ) ) {
    
    				$content_dir = constant( 'WP_CONTENT_DIR' ); 	 
    		                // IIS (Windows) here 
     		                // Replace back slashes with forward slash 
     		                if ( strpos( $located, '\\' ) !== false ) { 
     		                        $located     = str_replace( '\\', '/', $located ); 
     		                        $content_dir = str_replace( '\\', '/', $content_dir ); 
     		                } 
    
    		// Make path to file relative to site URL
    		$located = str_replace( $content_dir, WP_CONTENT_URL, $located );
    
    		// Enqueue the style
    		wp_enqueue_script( $handle, $located, $dependencies, $version, $in_footer );
    	}
    
    	return $located;
    }
    
    /**
     * This is really cool. This function
    #139549
    Stephen Edgar
    Keymaster

    …the search members (filters) has drop downs. Is this a part of the BBpress plugin?

    No, this not part of bbPress, it is part of your ‘Sweet Date’ theme.

    #139548
    Stephen Edgar
    Keymaster

    We have a patch ready to ship with bbPress 2.5.1

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

    If you could test that patch that would be great, I have tested it on XAMPP 1.8.3 , Apache, IIS and a couple of other systems but we’d like some feedback on the patch before we release 2.5.1 to make sure we haven’t broken something else. 🙂

    #139545

    In reply to: Stylesheet Issues

    Stephen Edgar
    Keymaster

    Yes, it is a bug in bbPress 2.5, we have a patch in and ready for bbPress 2.5.1

    Details are here if you want to apply the patch yourself:
    https://bbpress.trac.wordpress.org/ticket/2481

    If not bbPress 2.5.1 is not far away….

    #139543
    kiwi3685
    Participant

    I wonder, have I misunderstood this new (2.5) feature.

    I expected that once I am subscribed to a forum I would receive email notification of any new post or reply in that forum. But I haven’t received any (and yes, there were posts overnight to forums I have subscribed to)

    Am I wrong? Is “subscription” different to “notification”?

    If they are different, what is the design purpose of subscriptions?

    I had assumed that the subscription feature would mean I could deactivate ‘bbPress Notify’ plugin, but it seems I still need it.

    #139542

    In reply to: bbPress 2.5 is out!

    focallocal
    Participant

    i added the 2481.01.2.patch but bbpress still breaks my site when active (it was fine before the update)

    and here’s screenshots of what’s happening on my site: http://imgur.com/a/4SNAC

    sorry, i have learned from this to wait a few weeks before updating – but if anyone could help me to see what what i’ve done wrong here that’d be a huge help.

    EDIT: As your issue is fixed I removed the huge code chunk you posted. Netweb 3rd Dec

    #139541
    kiwi3685
    Participant

    I simply added this to my bbpress.css file (in my theme folder)

    #subscription-toggle {float:right;}

    #139537

    In reply to: bbPress 2.5 is out!

    focallocal
    Participant

    thanks for the style sheet fix. any idea how long before its officially fixed in bbpress so i can decide whether to have a go at it myself or to wait?

    i’m a little nervous about messing around with code as updates seem to break the things i change.. ironically in this case.

    #139536

    In reply to: Stylesheet Issues

    focallocal
    Participant

    i think i am having the same issue, although i dont understand what windows would have to do with it.

    i updated and the styling on my site was broken. if i deactivate bbpress it comes back to normal. here’s some screen shots: http://imgur.com/a/4SNAC

    notice after the update the headers have turned blue, the outlines of all elements have gone and the image in the top left of the header has moved to the top of the page. the site is: http://www.focallocal.org

    #139535

    Stephen, fyi. I believe that I have the same problem like this one. https://bbpress.org/forums/topic/why-is-forum-index-in-bullet-points/
    I am also asking them how did they fix it.

    thank you

    #139534
    Robin W
    Moderator

    You might need to play a bit, and come back if this either works or doesn’t, I’ve only had a quick look, and suspect there’s a much better way…but

    You main theme uses ‘Helvetica Neue’,sans-serif and the forum is using Arial

    I’m still on 2.4.1 so can’t tell you which lines you need in version 2.5

    So in the bbpress.css file you’ve correctly copied to theme’s folder, do a search for “font-size” and where you find it, add a line

    font: ‘Helvetica Neue’,sans-serif;

    That will take it in common with the main theme’s font.

    for instance

    #bbpress-forums div.bbp-forum-title h3,
    #bbpress-forums div.bbp-topic-title h3,
    #bbpress-forums div.bbp-reply-title h3 {
    	background: none;
    	border: none;
    	font-size: 16px;
     	line-height: 1em;
     	margin: 8px 0;
    	padding: 0;
    	text-transform: none;

    you’d alter it to say

    #bbpress-forums div.bbp-forum-title h3,
    #bbpress-forums div.bbp-topic-title h3,
    #bbpress-forums div.bbp-reply-title h3 {
    	background: none;
    	border: none;
    	font-size: 16px;
     	font: 'Helvetica Neue',sans-serif;
     	line-height: 1em;
     	margin: 8px 0;
    	padding: 0;
    	text-transform: none;
    #139533

    hi Stephen, I am using Window Xampp Apache (3.1.0.3.1.0). I guess that I am not using Window IIS.
    more information as the following base on the research.

    I installed bbpress & buddypress on my site which has pitch theme. I suspect this could be from my theme formatting the bbpress forums this way.the pitch theme is working perfectly. I created a page which is called “Forums”(forum index page). I chose the default template. My forum index page is just a bunch of bullet points listing each text for the topics

    example:
    —-
    Forum
    Topics
    Posts
    Freshness

    Group Forums
    group one (2, 0)
    2
    2
    41 minutes ago
    Avatar of admin admin

    not group forum
    cool
    0
    0
    No Topics
    ———–

    I also asked that Pitch theme is compatibly with bbpress and buddypress or not.

    Thank you

    #139532

    In reply to: Stylesheet Issues

    Tadas Krivickas
    Participant

    Hi,

    This is definitely a bug in bbp 2.5 on Windows. 2.4.1 does not have this issue. You can reproduce it by reverting to 2.4.1 (works again) -> update to 2.5 (doesn’t work again).

    <link rel="stylesheet" id="bbp-default-css" href="http://localhost/wordpress37/wp-content/C:devhtdocswordpress37wp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199" type="text/css" media="screen">

    Windows 7 x64, httpd+php+mysqld, latest stable WP, BP, BBP

    #139531
    Cars10
    Participant

    I agree, the location is so hidden, I would have not found it without you.
    Can bbPress make this link more prominent and better located?

    Thanks

    I try to adderss this by CSS for now, but css class is same everywhere, so need to think clever ,-)

    #139528
    Robin W
    Moderator

    It shouldn’t do – just tested with bbPress 2.4.1 and editing by admin in either the dashboard or in the options when viewing the post doesn’t change it’s “published” date, which is what the forum uses as it’s display order.

    Have you got any plugins or changes you’ve made that could affect this.

    And.. has this just started happening and what version of bbPress are you on?

    #139526
    FreeWPress
    Participant

    I remember wich one time i have disabled all plugin in my site and i lost mosto info for major of them.. in particular bbpress, when i enabled it show 404 page in all topics and forums.. I have saved. I go in options and see all options correct, and save it.. after saving it work fine… Mistery…

    #139522
    FreeWPress
    Participant

    what is your wordpress version? Have you try to save again all bbpress forum options?

    #139520

    In reply to: Menu link to Profile

    Robin W
    Moderator

    Diggories,

    Some great tips there.

    mm, the upgrade will have overwritten the change – as per first post

    Of course you’ll need to make a note of this change, as it is lost whenever you upgrade bbpress versions

    I haven’t upgraded yet, let me know if putting it back fixes it !

    #139518
    robertFudge
    Participant

    Thanks for the reply, this theme uses BBpress and the search members (filters) has drop downs. Is this a part of the BBpress plugin? Any help is appreciated.

    Members

    Details:
    http://themeforest.net/item/sweet-date-more-than-a-wordpress-datin

    #139508
    Stephen Edgar
    Keymaster

    Take a look at the Data Parameters of WP_Query https://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters

    You can also create custom views in bbPress eg.

    function ntwb_register_custom_views() {
    	bbp_register_view( 'popular-topics', __( 'Popular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num' ), false );
    	bbp_register_view( 'unpopular-topics', __( 'Unpopular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num', 'order' => 'asc' ), false );
    	bbp_register_view( 'random-topic', __( 'Random Topic' ), array( 'orderby' => 'rand' ), false );
    	bbp_register_view( 'closed', __( 'Recently Closed' ), array( 'post_status' => 'closed' ), false );
    	
    
    }
    add_action( 'bbp_register_views', 'ntwbc_register_custom_views' );
    #139507
    FreeWPress
    Participant

    yes topic subscriptions are ok.. it work fine..

    I don’t have bbpress.php in my child theme folder…

Viewing 25 results - 23,151 through 23,175 (of 64,534 total)
Skip to toolbar