Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,526 through 2,550 (of 32,462 total)
  • Author
    Search Results
  • #212952
    Robin W
    Moderator

    in your functions file or code snippets ?

    #212951
    kriskl
    Participant

    Thanks for quick reply,

    I have just tried the code and nothing has changed :((

    #212950
    Robin W
    Moderator

    yes I see 🙂

    Put this in your child theme’s function file – or use

    Code Snippets

    add_filter ('bbp_before_paginate_links_parse_args' , 'rew_pagintion' ) ;
    
    function rew_pagintion ($args) {
    	$args['end_size'] = 0 ;
    return $args;
    }
    #212941
    proversion88
    Participant

    I want to separate wordpress and bbpress..wordpress is on my main domain and I want to setup bbpress on a subdomain like forum.mydomain.com

    I tried with adding bbpress, but it really mess up everything on the membership side as it is already setup with custom themes and plugins and lot of modifications through code. I also need to use separate theme for forum as the default is not integrated well with my current theme..For these reasons, I want to install wp and bbpress on a subdomain as separate installation and keep it private and closed for registrations..

    I checked the link you posted, and it was talking about using same database for both wp installations..But in that case, their worpdress installation is identical..Mine has too nuch complicated structure in one and the forum installation will just need bbpress only..

    #212938
    Robin W
    Moderator

    thinking about it, putting this in the custom css part of your theme should work

    .dummy {
    	display: none;
    }
    #212934
    Robin W
    Moderator

    this should get you somewhere, although does throw up some raw displays in the backend

    add_filter( 'bbp_get_forum_content', 'rew_show_paras' , 10 , 2 );
    
    function rew_show_paras ($content, $forum_id) {
    	$post = get_post($forum_id);
    	$the_content = apply_filters('the_content', $post->post_content);
    return $the_content ;
    }	
    #212931
    theicebooky
    Participant

    Is it possible to allow spacing in the BBpress Forum description? Right now, even when you created different paragraphs for the description, the spacing will disappear and the paragraph will be squished together in the shown forum description.

    Is there a way to get different paragraphs to seperated when thr forum description is shown?

    Is there a code snippet that I can add? I don’t know how to code but I would love this to work.

    If you want picture examples, I will be more than happy to provide!

    #212927
    Robin W
    Moderator

    it is theme related

    and yes you have a theme item of

    <div class="dummy" style="padding-top: 100%;"></div>

    and this sits below the header and creates this space.

    which method in item 3 of this link are you using ?

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

    #212925
    forehanded5
    Participant

    I just installed bbPress through the plugin panel and added some test forums. It seems like there is a very large empty DIV that I don’t know how to get rid of causing a large space between the forum header and the forums. Any ideas on how to get rid of it?

    It’s only showing up on the main forums home page and not any other pages when you navigate into the forums or posts.

    Currently using the Uncode theme. WP, plugins, themes, etc are all up to date.

    Forums are at: http://foxtrotbattleline.com/forums

    #212924

    In reply to: Taxonomies for Topics

    Robin W
    Moderator

    This article explains it quite well and the save hooks

    add_action ( 'bbp_new_topic', 'bbp_save_extra_fields', 10, 1 );
    add_action ( 'bbp_edit_topic', 'bbp_save_extra_fields', 10, 1 );

    are still there

    https://wp-dreams.com/articles/2013/06/adding-custom-fields-bbpress-topic-form/

    kriskl
    Participant

    Hi,

    I would like to remove the last page numbers in pagination,
    is there any function code to do this?

    at the moment, on latest topics on a big forum.. it shows like this..

    1 2 3… 8432 8442 8445 →

    Thanks
    kris

    #212903
    Robin W
    Moderator

    the answer is no, the plugin does what it does.

    what do you want a shortcode to do and where would you want to place it?

    #212892
    Robin W
    Moderator

    I suppose it could be coded, but well beyond free help.

    I’d suggest you create a sub forum and put the single topic in there.

    #212887

    In reply to: Lost Keymaster Role

    Robin W
    Moderator

    bbPress requires at least one Keymaster, and only keymasters can set other keymasters. However bbPress does allow you to change the last keymaster to another role without warning – leaving no keymasters, and no ability to set a keymaster.

    I’ve added some code in the bug fixes tab of my style pack plugin that detects if this has happened, and allows creation of a new keymaster.

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>bug fixes

    and you’ll see a tick box at the end.

    Once you have ticked and saved, you can deactivate and delete this plugin, but I hope you’ll find a bunch of useful things in there and keep it going 🙂

    #212862
    p3t3rr
    Participant

    Hi,

    I am using the Enfold theme which seems to disable the bbpress default breadcrumbs. I re-enabled them for better user navigation with the following code in child theme functions.php

    //show bbpress forum breadcrumbs
    add_action('after_setup_theme', function() {
    	 remove_filter('bbp_get_breadcrumb','avia_fetch_bb_trail',10,3);
    }, 9999);

    Breadcumbs are displayed as seen for example here: https://hatopia.de/community-forum/thema/ich-erstelle-auch-ein-thema-weil-ich-was-zu-sagen-habe/.

    I want to change the default breadcumbs a bit in order to have better UX.
    First, I want to change the text of ‘Startseite’ to ‘Home’. Second, I want to change the name of ‘Foren’ to ‘Community’ and change the link of ‘Foren’ to another link (‘…/community’).

    Can this be achieved and if so how?

    Thank you for the support and best regards, Peter

    #212855

    In reply to: Topic action hook

    oasiseducon
    Participant

    hi @_ck_

    i used this code as you mention but its doesn’t work well. can you suggest any plugin for that?

    #212850
    soyocib434
    Participant

    we are looking for a shortcode if you have.

    #212849
    kikismedia
    Participant

    Do you have shorcode for this

    #212842
    Mike8857
    Participant

    bbPress Version 2.6.5 <

    WordPress 5.4.2

    Among other instructions I used bbPress Styling Crib (https://codex.bbpress.org/bbpress-styling-crib/). I copied bbpress.css into the wp-content/themes/%your-theme%/css/ folder as directed in the Step by step guide to setting up a bbPress forum – part 2 (https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-2/).

    The bottom line is that I changed every “font-size:” tag in bbpress.css (and there are 40) trying to have SOME effect. Nothing.

    The tiny text makes the forum unusable. Changing the font size, from much of what I’ve read, is simple.

    What am I doing wrong???

    Thanks in advance

    #212799
    Chuckie
    Participant

    This is resolved:

    add_filter('private_title_format', 'my_private_title_format', 10, 2); function my_private_title_format($format, $post) { if($post instanceof WP_Post && ($post->post_type === 'forum' || $post->post_type === 'topic')) { $format = '%s'; } return $format; }

    #212773
    kenaustin3rd
    Participant

    not sure what to do with that…if I change that code to the #313131 that I used on the rest of it will it change that bright white body box or is this going to change the colors for the entire page? And will I just add this in as another entry into the CSS block

    #212772
    Chuckie
    Participant
    #bbpress-forums div.odd, #bbpress-forums ul.odd {
        background-color: #fbfbfb;
    }

    The above is the CSS that you have at the moment to colour the borders.

    #212759
    Chuckie
    Participant

    Perhaps all you need to use is:

    #bbpress-forums div.bbp-topic-header,
    #bbpress-forums div.bbp-reply-header {
    }
    #212756
    kenaustin3rd
    Participant

    Okay, I have been experimenting quite a bit and so far I have everything tested and working…thank you very much for the help…there is just one item I cannot figure out…changing the color of the individual post replies (headers/body/footers) the code I ended up with when I inspected was:

    div#post-133.bbp-reply-header

    then following that there is a much longer one that says it’s a loop item. Surely I am looking at the wrong items and there is a parent to those somewhere to change it once…any ideas?

    #212754
    Chuckie
    Participant

    Have you tried:

    input#bbp_anonymous_author,
    input#bbp_anonymous_email,
    input#bbp_anonymous_website,
    input#bbp_topic_title,
    textarea#bbp_topic_content {
     background-color: #313131;
    }

    I have not tested it.

Viewing 25 results - 2,526 through 2,550 (of 32,462 total)
Skip to toolbar