Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,176 through 9,200 (of 32,522 total)
  • Author
    Search Results
  • #160040
    teamoo
    Participant

    Hey @Robkk – I added the code you provided to my child theme’s functions.php. At that point I was able to search my entire site, including the forum, with the main search. And if we cannot figure out what the problem is with the forum search that may be my only option.

    But I’d like to keep the two search functions separate at the moment. @robin-w any idea what steps I can take next to get my forum search working? The plugins/theme don’t seem to be the problem at the moment after testing.

    Thank you both very much for your help so far!

    Robkk
    Moderator

    i think this does what you want.

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    function ja_return_blank() {
        return '';
    }
    #160016

    In reply to: Style Keeps Reverting

    Robin W
    Moderator

    @dragonfighter

    sorry the first should have been a link

    Functions files and child themes – explained !

    #159974
    Robkk
    Moderator

    use this plugin add your PHP code snippets to it.

    https://wordpress.org/plugins/functionality/

    #159971
    Robkk
    Moderator

    they use the regular WordPress registration

    which is http://example.com/wp-login.php?action=register

    or you can put the bbPress shortcode [bbp-register] into a page for a frontend form

    here is the rest of the supplied shortcodes

    https://codex.bbpress.org/shortcodes/

    #159966
    darlookoka
    Participant

    Thank you so much, should this code be in the bbpress setting or the wordpress settings? thks

    #159965
    Sam Rohn
    Participant

    click on the “documentation” link on the top of this page, the info you seek is there –

    template info – https://codex.bbpress.org/amending-bbpress-templates/

    conditionals – https://codex.bbpress.org/bbpress-conditional-tags/

    etc

    sam

    wenlujon
    Participant

    in the notice text area of a forum, there’s message:
    “This forum contains xxx topics, and was last updated by”
    and there’s an avatar before the user, how to remove that?

    also, that’s the case for a topic, how to remove that?
    “This topic contains xxx replies, has xxx voice, and was last updated by”

    BTW,
    I managed to remove some avatars in other areas through this:

    
    .widget_display_topics  .bbp-author-avatar { display: none ! important; }
    .bbp-topic-started-by .bbp-author-avatar { display: none ! important; }
    .bbp-topic-freshness-author  .bbp-author-avatar { display: none ! important; }
    <code></code>

    reference:

    bbPress Styling Crib

    #159946
    Robkk
    Moderator

    this CSS should work add !important edit the width/height the way you want it.

    .bbp-logged-in img.avatar {
      width: 80px!important;
      height: 80px!important;
    }
    #159945
    Robkk
    Moderator

    @eli_damon

    alright when you get bounced to the normal reply form if you see a cancel link by the submit button thats when you know threaded replies is working.

    just enter some content after your bounced from the reply link and hit submit the content should be under the post you hit the reply link.

    the awkwardness im talking about is when the reply is on its 7th thread or more when you have a sidebar for bbPress, it makes the 7th on look squished.

    Its best if you have full width for threaded replies.

    other issue is when you are on about your 3rd thread or more of a reply on mobile devices , the replies content will look barely readable past that.

    messing with this CSS and making the margin-left smaller for mobile device width would help out alot though. But making it look great on mobile would require some work.

    #bbpress-forums ul.bbp-threaded-replies {
      margin-left: 50px;
    }

    if you really want to have a 10> threads , get inspired by reddit.com and how they do it.

    #159940
    Robkk
    Moderator

    remove the CSS you added to your child theme (you can download it to backup if you made changes)

    let the style go back to the normal 2013 then put back the CSS

    it did this type of thing for 2014 for me one time and it was pretty weird.

    this PHP snippet should remove the double Private wording

    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }
    

    other than that try these troubleshooting tips

    General Issues
    bbPress works with many themes and plugins, but it is impossible to test all combinations, and many issues are caused by conflicts with plugins and themes.
    Therefore before posting, please test if your issue is resolved by the following

    Plugins

    Deactivate all but bbpress and see if this fixes. If it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    If the above produces an issue:

    If it is a paid theme or plugin, please contact the authors for resolution.
    If free, do ask here, we may know of workaround.
    PLEASE tell us you have done the tests above when posting.

    OTHER COMMON FIXES
    The following will do no harm, so are worth a try and can fix some issues
    Dashboard>settings>permalinks. Don’t change anything, but just click save. This resets the permalinks, and can solve some 404 errors.
    Dashboard>tools>forums>repair forums and run one at a time. Useful if you’ve got some stuff not showing – doesn’t often fix but occasionally does.

    Robkk
    Moderator

    these might help unless you already read them.

    https://codex.bbpress.org/import-forums/custom-import/
    codex.bbpress.org/import-forums/

    only other thing i can suggest is contact @netweb on slack for help

    follow this to figure out how to join the #bbpress slack channel.

    Development

    #159936

    In reply to: couple of questions

    Robkk
    Moderator

    @afurneaux

    make sure you follow this so that you have everything set up correctly

    Step by step guide to setting up a bbPress forum – Part 1

    #159935

    In reply to: View Topic By

    Robkk
    Moderator

    maybe this guide will help you with understanding.

    Functions files and child themes – explained !

    but you can also put any PHP code snippets in a functionality plugin like this one

    https://wordpress.org/plugins/functionality/

    #159932

    In reply to: Looking for a theme…

    Robkk
    Moderator

    bbPress doesnt have themes anymore , it just uses WordPress ones.

    you can customize it yourself to look kind of like that though , either following this

    codex.bbpress.org/bbpress-styling-crib/

    or using this plugin https://wordpress.org/plugins/bbp-style-pack/

    you can also post a job at http://jobs.wordpress.net/ and hire a developer to develop this for you.

    #159931
    Robkk
    Moderator

    the plugin only affects the normal WordPress search i think so just use the normal WordPress search for your site.

    and disable the forum search in settings > forums in the back-end of WordPress

    but like i said before you would have to probably enable each post type to be in the regular WordPress search.

    add this to your child themes functions.php or add it to a functionality plugin.

    /**
     * Include bbPress 'topic' custom post type in WordPress' search results */
     
    function ntwb_bbp_topic_cpt_search( $topic_search ) {
    	$topic_search['exclude_from_search'] = false;
    	return $topic_search;
    }
    add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' );
    
    /**
     * Include bbPress 'forum' custom post type in WordPress' search results */
    
    function ntwb_bbp_forum_cpt_search( $forum_search ) {
    	$forum_search['exclude_from_search'] = false;
    	return $forum_search;
    }
    add_filter( 'bbp_register_forum_post_type', 'ntwb_bbp_forum_cpt_search' );
    
    /**
     * Include bbPress 'reply' custom post type in WordPress' search results  */
    
    function ntwb_bbp_reply_cpt_search( $reply_search ) {
    	$reply_search['exclude_from_search'] = false;
    	return $reply_search;
    }
    add_filter( 'bbp_register_reply_post_type', 'ntwb_bbp_reply_cpt_search' );

    when your done make sure you have search custom taxonomies in the search everything plugin settings maybe even the search every tag option too.

    #159930
    Robkk
    Moderator

    id say create a custom bbPress forum role

    hopefully this guide will help you out.

    Custom Capabilities

    as for the changing the bbpress count to start from a different number , that might cause some issues..

    #159928
    Robkk
    Moderator

    i think this is what you are saying you want??

    put this CSS anywhere you can put custom css

    #bbpress-forums .bbp-forums-list {
      display: none;
    }
    #159923
    Doug Smith
    Participant

    Sometimes this happens when copying from within the same site. For example, you may copy and paste from a previous part of the conversation to quote it. The HTML from the site will be picked up and copied into the editor.

    I just added a function to fix this behavior at the bottom of the Enable Visual Editor bbPress Codex page.

    #159921
    Doug Smith
    Participant

    I ran across this discussion while trying to solve a similar issue so I thought I’d update it with my solution.

    After enabling the visual editor I started seeing HTML present in some of the posts. The cause was people copying from a previous part of the discussion and pasting it into the editor to quote it. That was bringing in styles from the website and including it in the editor as HTML. For example:

    <span style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 20px; line-height: 32px; orphans: 3; widows: 3; background-color: #fbfbfb;">Some copied and pasted text from earlier in the discussion.</span>

    My solution was to add the TinyMCE _paste_ plugin to the editor, which defaults to cleaning up pasted text. Here’s the filter:

    function bbp_tinymce_paste_plain_text( $plugins = array() ) {
     	$plugins[] = 'paste';
        return $plugins;
    }
    add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );
    #159904

    In reply to: View Topic By

    sharlene_c
    Participant

    Thank you Robkk .. This is a little intimidating for me as I don’t know php nor do I have experience with child themes but I’ll see if my theme allows for that and try to create one.
    Thank you for giving me the code.

    #159902

    In reply to: couple of questions

    afurneaux
    Participant

    I’m still confused as to where to put the short code

    I went to the customize link

    customize link

    I don’t understand where to enter the short code.

    My blog is andrewstravelworld.com

    right now the message board is a widget

    Right now i only have north america set up but i want the link to be directed to the general board and not just the north america section, i plan on adding other sections. Most message boards list all their forums and then theirs sub sections thats what i’m planning to do.

    I’m sure theirs something small that i’m missing , any help or advice would be great appreciated!

    #159897
    Robkk
    Moderator

    why did you use echo do shortcode on these two lines , they are not shortcodes , its just header text.

    <?php if (!is_user_logged_in()) echo do_shortcode ('<h2 class="mve-form-title">Zo te zien is hierover nog niets geschreven...<br><br>Geregistreerde leden kunnen een vraag stellen aan de community.</h2>') ; ?>

    <?php if (is_user_logged_in()) echo do_shortcode ('<h2 class="mve-form-title">Zo te zien is hierover nog niets geschreven. Stel je vraag aan de community.</h2>') ; ?>

    but the topic you lead to there was a fix , i just edited for your search results page.

    i did test everything out , saw the issue , and resolved it with this function.

    add_filter( 'bbp_current_user_can_access_create_topic_form', 'custom_bbp_access_topic_form' );
    function custom_bbp_access_topic_form( $retval ) {
    
    	if ( bbp_is_search_results() ) {
    		$retval = bbp_current_user_can_publish_topics();
    	}
    
    	return $retval;
    
    }
    #159894
    Robkk
    Moderator

    add all this CSS to anywhere you can add Custom CSS

    .bbp-login-form label[for=rememberme] {
      width: auto !important;
    }
    
    #sidebar .bbp-login-form label {
      width: auto!important;
    }
    
    .bbp-login-form .bbp-login-links a {
      margin-top: 25px;
    }
    
    .bbp-login-form button#user-submit {
      margin-top: 15px;
    }
    
    .bbp-login-form label[for=user_login] {
      display: block;
      width: auto!important;
    }
    #159893
    mvaneijgen
    Participant

    Hey,

    I have edit the feedback-no-search.php inside my child theme stored in child-theme > bbpress
    This is what the file looks like:
    https://gist.github.com/mvaneijgen/83b2bdf325172ae1536b

    No permission changes.
    Yes they can and if I change the short code to [bbp-topic-form forum_id=221] everything works fine
    Don’t know what troubleshooting to try.

Viewing 25 results - 9,176 through 9,200 (of 32,522 total)
Skip to toolbar