Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,401 through 12,425 (of 32,504 total)
  • Author
    Search Results
  • #143736
    Robin W
    Moderator

    elegant – depends !

    If you simply alter this file then on any bbpress version update you’ll lose the changes, so make a note of them.

    There are alternatives

    1. Add the css styling change to the style.css file within your child theme.

    If you have a child theme, then this is ideal, as neither plugin nor theme update will affect your change. Simply add the code below to your style.css

    /*Styling for forum description */
    #bbpress-forums div.bbp-forum-content {
    clear:both !important;
    margin-left: 0px !important;
    padding: 0 0 0 0 !important;
    	}
    

    2. If you only have a main theme, then consider using a child theme – it’s quick and easy to create one, basically it’s just a theme that you create that says “use this main theme, but then add these bits”. Google child theme video and you’ll get loads of help.

    3. Add this to the style.css in your main theme
    But you’ll need to keep a note of it for theme upgrades, so this is really no better than changing in the bbPress template, and neater to do it in bbPress than your theme

    4. Make a directory called css in your theme (either child or main) and copy the bbpress.css file into it. Then make changes there. this then won’t be overwritten on upgrades, but you will not get the benefit of changes to the default bbpress.css that may be in upgrades.

    Overall 1. is by far the best choice, as you keep the code no matter what happens. Otherwise keep a note of your changes (which are fine, and are what I did to test prior to putting the end result in my style.css), so that you can replicate them on upgrades.

    #143735
    oweniverson
    Participant

    i’m not a developer by any means, but this seems to work (there’s probably a better way 🙂
    in my bbpress.css file here “wp-content\plugins\bbpress\templates\default\css”
    i just broke out “div.bbp-forum-content” from this:

    #bbpress-forums div.bbp-forum-content,
    #bbpress-forums div.bbp-topic-content,
    #bbpress-forums div.bbp-reply-content {
    	margin-left: 130px;
    	padding: 12px 12px 12px 0;
    	text-align: left;
    }
    

    to this:

    #bbpress-forums div.bbp-forum-content {
    	margin-left: 0px;
    	padding: 12px 12px 12px 0;
    	text-align: left;
    }
    
    #bbpress-forums div.bbp-topic-content,
    #bbpress-forums div.bbp-reply-content {
    	margin-left: 130px;
    	padding: 12px 12px 12px 0;
    	text-align: left;
    }
    

    and set that left margin to 0 px rather than 130.
    let me know if there’s a better or more elegant way!

    sarau
    Participant

    Hi Robin,
    Sorry for the long delay. I got sided-tracked. I followed your advice and I found something like a 404.php. The page is called no-results.php I found the text that I need to edit on the page and made changes to it however, because the text is displayed with the use of php, I’m not sure how to make it recognize the html hypertext link I added. Is it possible to make a link active within this code? It would be convenient to just click on the text and get where you need to go, if that’s possible. Here’s the code that I’m referring to:

    <p><?php esc_html_e('The page you requested could not be found or could not be displayed. If you are a parishioner and you are trying to access a forum page, it may be that you <a href="http://www.url-here/">need to log in</a>. You can do so on the forum page in the right sidebar. Otherwise, try refining your search, or use the navigation above to locate the post.','Chameleon'); ?></p>

    I can remove the anchor tag if I need to but it would be nice to have the link.

    On another, related note, when you go to the top level forum page, if you aren’t logged in it displays text that says “Oh bother! No forums were found here!” I’m pretty sure this text is coming from the bbPress plug-in. Do you know if there is a way to customize what it says here as well?

    Thanks again for all your help!

    #143724
    Robin W
    Moderator

    Thanks, I’ve slightly amended it to get it to display on all pages and added it to the documentation

    Layout and functionality – Examples you can use

    Thanks again for posting your solution !

    #143723
    Robin W
    Moderator

    I’ve just added the code I think you’re after to the documentation viz

    Layout and functionality – Examples you can use

    Come back if that’s not what either of you were after !

    #143719

    In reply to: Photo in profile

    Robin W
    Moderator

    bbpres uses gravatar as it’s photo system.

    load you photo to gravatar and it will appear

    I have a page on my site that explains this to users viz :

    This site uses Gravatar to display avatars. if you already have a Gravatar account with your email for this site, then it will display on your forum posts; it can take a few hours before the link is established the first time.
    
    What is an Avatar?
     When you post, you'll see the default avatar beside your name. You can change this to any image you wish (providing it's decent!).  Many people have a picture of themselves, or anything that represents your ego or character.
    
    Changing from the default avatar.
    The site uses Gravatar.  The Gravatar site stores you avatar against your email address.
    
    This allows you to have a single image that many websites can use without you needing to add it or change it on each site.
    
    Since this site knows your email address (through your profile), this site can pick up the avatar stored with Gravatar.
    
    If you're not already signed up with Gravatar, then follow this link [https://en.gravatar.com/site/signup] to register your email address and avatar with them.  This site will then pick up that avatar and display it against your post. It can take a few hours before the link is established the first time.
    
    Confused?
     Don't worry - if you're happy with the default avatar against your name, you need to do nothing further !
    
     
    
    #143692
    George Stephanis
    Participant

    Just confirmed that deactivating threaded replies via Settings → Forums fixes the issue.

    #143691
    BackpackersUnion
    Participant

    Bump – because this is the first Google Search result on bbPress slowing down sites.

    Everything I read about bbPress said it’s light weight and integrates well into WordPress. Integration was excellent, but the website speed suffered significantly. I finally had to uninstall it and will need to look for a lighter weight forum plugin.

    Click here to see a screen shot of the P3 Plug-in profiler results.

    bbPress was responsible for half the load time of all active plugins (bbPress was a fresh install – with no forum activity). I had 24 plugins running total which means bbPress was taking longer to load than 23 other plugins combined. With results like that, there has to be a way to make bbPress more efficient either through caching or making bbPress more efficient when it searches for its short codes (which I believe is why bbPress loads on every page).

    I’ve seen this concern on a few forums and really want to see bbPress be successful. If anyone has had success speeding up bbPress or believes my experience was an anomaly, please let us know. Thank you.

    Website – WordPress 3.8.1 Multisite, BuddyPress 1.9.2., bbPress 2.5.3

    #143690
    Stephen Edgar
    Keymaster

    This has just been fixed by the WP-E-Commerce team

    https://github.com/wp-e-commerce/WP-e-Commerce/commit/824f56a36ad18fcfed3419ee4430f52a602cae52

    It is part of the Version 3.8.14-dev version so presumably once v3.8.14 is released it will include the bbPress fix 🙂

    #143687
    Daniel Lemes
    Participant

    Sorry, this functions seems to return the topic title, not the forum title. I have ‘googled’ around and got this:

    $forum_object = get_queried_object();
    $forum_id = $forum_object->forum_id; // get the forum id, is it right?
    $forum_title = get_forum_name( $topic->forum_id ); // get forum title by id
    $forum_class = sanitize_title_with_dashes($forum_title); //sanitize

    Not working since get_forum_name doesn’t work outside bbpress (inside WordPress header). Any other idea on how get the forum title (not the topic) and use as body class on WordPress? Thank you.

    #143686
    Stephen Edgar
    Keymaster
    #143682
    Stephen Edgar
    Keymaster

    You should be using a string for permalinks category base, NOT %category%

    Eg. If you like, you may enter custom structures for your category and tag URLs here. For example, using stuff as your category base would make your category links like http://example.org/stuff/uncategorised/. If you leave these blank the defaults will be used.

    #143672

    In reply to: No toolbar available

    Liberty
    Participant

    Thank you very much for your replys.
    I made a lot to get this toolbar work. Here is a list of things I already done to solve my problem:

    • deleted every JavaScript
    • deleted the code of the functions.php file
    • deactivated every plug-in
    • changed bbpress.php to page.php
    • commented the bbPress-CSS in style.css out
    • commented parts of my bbpress.php out
    • enable the Visual Editor

    …and I changed my theme to the default “Twenty Ten” theme and the toolbar appeared. The problem is my theme but I don’t know why. 🙁

    JavaScripts are deleted and I will add header.php and footer.php files. I hope this is the solution but I don’t think so.

    #143669

    In reply to: Displaying Adsense ads

    koendb
    Participant

    Very quick response, think this or something like this would work:

    Create a child theme, copy loop-replies.php and change this part:

    <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    <?php endwhile; ?>

    into:

    <?php $i=1; 
    while ( bbp_replies() ) : bbp_the_reply(); ?>
                    <?php if(1==$i or 3==$i) { echo '#adsense code#'; } ?>
                    <?php $i++; ?>
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    <?php endwhile; ?>
    #143660
    Stephen Edgar
    Keymaster

    Try making a copy of your page.php (or page-no-sidebar.php depending on your preference) simplecorp template file and name it bbpress.php

    Also keep an eye on this thread at Site5 http://www.s5themes.com/forums/topic/simplecorp-bbpress-forum/

    #143657
    Stephen Edgar
    Keymaster

    https://codex.bbpress.org/forum-settings/

    Auto Role
    Select the default role for bbPress forum members to be assigned, the roles are Keymaster, Moderator, Participant (Default), Spectator and Blocked. For full details of the permissions assigned by these roles please User Roles and Capabilities.

    I haven’t actually used S2Member so I can’t help to much here, but S2 supports bbPress and there should be something about this on the S2 site (I tried a search and mainly get results for our forums here at bbpress.org :/)

    If you are importing them ‘manually’ I would say you will have to manually assign the bbPress role, though if this is something S2 does on the fly then I presume it should also be adding the bbPress role at the same time and this would be an S2 issue.

    Also to note is that bbPress users don’t actually get the full role assigned to them until they have actually logged into the site.

    #143655

    In reply to: No toolbar available

    Stephen Edgar
    Keymaster

    I can’t see anything obvious that is wrong….

    Your not using the latest jQuery, your using v1.10.2, you should be using v1.11.0

    I would double check your code in any functions.php you are using for your theme, make sure you are using bbPress v2.5.3.

    I’d also suggest strip out all the JavaScript (stickUp.js etc) and the jQuery bits as @Lynq wrote above and get back to an extremely basic header.php, footer.php and bbpress.php (or index.php, page.php etc) and verify everything is working then add back your JavaScript bits one at a time.

    #143651
    Cal23
    Participant

    I have created a forum through bbpress for an existing website and am experiencing 20-40 second page load times for only the forum pages, the rest of the site works fine. There are no posts yet, there are 14 forums with maybe 2-3 topics per forum. I have tried using caching plugins and programs like benchmark and profiler to determine what is slowing it down, but can’t find anything. I am not really familiar with code, but can do some basic things.

    Any ideas on how to speed it up?

    Thanks!

    #143642
    Robin W
    Moderator

    ok, you could try just using a separate page for bbpress.

    Create a file called bbpress.php in your theme folder

    Add the following code to the bbpress.php file

    <?php
    /**
     * bbPress wrapper template.
     */
    
    get_header(); ?>
    
    <?php while( have_posts() ): the_post(); ?>
    
    	<?php the_content(); ?>
    
    <?php endwhile; ?>
    
    <?php get_footer(); ?>
    
    

    If you need a sidebar add

    <?php get_sidebar(); ?>
    

    before the footer line

    See whether that works for you.

    #143640

    In reply to: No toolbar available

    Liberty
    Participant

    Hello Stephen,

    I added this code in my functions.php file and got two button but the toolbar is still not working:
    dhfdth

    I have only 2 plug-ins. bbPress and Aqua Verifier. I already deactivated the Aqua Verifier plug-in to see if the plug-in could cause the problem but it doesn’t. I think the problem is my theme I have created for my site but I can’t find an mistake in my code. I would be really glad if you could take a look on my code: http://snippi.com/s/r6mpul7

    #143639
    Center11Forward
    Participant

    Hi Robin,

    Thank you for the prompt reply.

    Issue 2 is resolved with your code.

    As far as issue 1 goes – I disabled all plugins and it did not resolve the issue. So I went ahead and enabled twentyfourteen and it resolved it – Unfortunately that is not much good to me, as I need to continue using the theme I bought from Themeforest.

    The theme authors general attitude when you post any issue with an external plugin is that they basically don’t care as its not directly related to in-built theme functionality or ‘we haven’t tested that with our theme so can’t comment on your issue’.

    With the above in mind, could you suggest some way I could debug the issue myself and try to resolve it?

    #143636
    Robin W
    Moderator

    On issue no. 1

    the &#039 is the code for a quote mark ie the ones either side of this ‘word’

    so something is displaying rather than interpreting this.

    Not sure why, could ebe a plugin or theme issue

    try

    Check other plugins

    Check that no other plugins are affecting this.

    Turn off all other plugins, and see if that fixes the problem. If the problem is resolved, add back one at a time to see which is causing the conflict.

    Check themes

    If plugins are not the cause, then it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.

    come back and let us know if that helped.

    On your issue no. 2, bbp-foums class does the overall border

    	.bbp-header, .bbp-forums   {
    	
    border-top: 1px solid #EEEEEE !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    }

    fixed it on my test site

    Center11Forward
    Participant

    Hey,

    Two hopefully small issues I’d appreciate some help to resolve.

    1. Screenshot to display issue:
    https://dl.dropboxusercontent.com/u/70814425/BB%20Press/BBPress%20Strange%20Search%20Results.png

    In the above screenshot, I searched for Duleek using the bb-press search widget.

    As you can see the characters £#039; appears before and after the search term on the results. page. Any idea how to resolve that?

    2. Screenshot to display the issue:
    https://dl.dropboxusercontent.com/u/70814425/BB%20Press/BBPress%20Rounded%20Corners%20Issue.png

    I am trying to implement a simple border-radius css setting on the BB-Press forums. To achieve that I used:

    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: 92px 50% no-repeat rgba(65, 66, 64, 0.941176);

    The issue is that the light grey border (border: 1px solid #eee;) surrounding the entire forums continues to appear in the top left and right corners – That kind of defeats the purpose of the ’rounded corners’ feature.

    I can use border:none; and that removes the border from the forums – But I dont want to do that, I only want to remove the border from the top left and top right corners of the forums header… I tried combinations the following and it doesn’t work:

    .bbp-header {
    border-top: none !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    }

    Any idea on what to try?

    Thanks.

    #143612
    Robin W
    Moderator

    you can add a modal login which looks prettier than the wp-admin

    viz

    Layout and functionality – Examples you can use

    #143610
    Robin W
    Moderator

    Ok, I see you also posted on their support page, which was going to be my next suggestion.

    Since your code is on a local server, I obviously can’t take a look.

    So now let’s try.

    Create a file called bbpress.php in your theme folder

    Add the following code to the bbpress.php file

    <?php
    /**
     * bbPress wrapper template.
     */
    
    get_header(); ?>
    
    <?php while( have_posts() ): the_post(); ?>
    
    	<?php the_content(); ?>
    
    <?php endwhile; ?>
    
    <?php get_footer(); ?>
    
    

    If you need a sidebar add

    <?php get_sidebar(); ?>
    

    before the footer line

    See whether that works for you.

Viewing 25 results - 12,401 through 12,425 (of 32,504 total)
Skip to toolbar