Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 15,151 through 15,175 (of 64,454 total)
  • Author
    Search Results
  • #162662
    BenM
    Participant

    In fact, I prefered to do iy myself. It’s not specific to bbpress and I’m very surprised that WP doesn’t have this feature natively.

    For the ones who nedd this, here is my simple code :

    function yournamespace_exclude_menu_items( $items, $menu, $args ) {
        // only hide items in front, not admin
        if ( !is_admin() ) {
        // Iterate over the items
        foreach ( $items as $key => $item ) {
          // hide menu items which leads to pages with 'private' status
          if ( !is_user_logged_in() && get_post_status($item->object_id) == 'private' ) unset( $items[$key] );
        }
        return $items;
      }
      else return $items;
    }
    
    add_filter( 'wp_get_nav_menu_items', 'yournamespace_exclude_menu_items', null, 3 );
    #162659
    Robin W
    Moderator
    hammed4real101
    Participant

    Hi Everyone,

    Please, i want to make my wordpress site a forum website. so, have decided to use bbpress.

    And i want my forum to look exactly like this forum (styling and everything)

    So, have decided to use a template file.

    So, can somebody help me with the php code and css code to make my forum look exactly like this one.

    Thanks in anticipation.

    #162655
    Shmoo
    Participant

    I just downloaded 2.6-Alpha (trunk) version and installed it but the bbpress.css stylesheet is missing.

    ??

    #162654

    In reply to: Is BBPress responsive?

    PJ Brunet
    Participant

    The trouble is, by default bbPress has a lot of bells and whistles (features) that will quickly clutter a small screen.

    So it’s a lot of work to clean up the clutter and remove unnecessary design elements, borders, etc. Convert “px” to “em” and percentages. Use something like Flowtype to resize your text.

    Here’s an example of what you can do: http://linkedexpertsalliance.com/forums/

    I spent about an hour just cleaning up the boxes and borders bbPress draws around the text editor, which makes all of your editor buttons too small to press on a phone. You want that text editor to use up the full width of your device. I tried to make those buttons responsive but the problem is you need those buttons to be big enough to tap, like the “bold” button is tiny. In the end, decided to go with a fixed viewport. It’s just lots of little tradeoffs here and there that makes it frustrating.

    #162643
    Robin W
    Moderator
    #162639
    bayan.assaf
    Participant

    Hello Ben,

    Add this function to your functions.php file:

    add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bavotasan_bbpress_upload_media’ );
    /**
    * Allow upload media in bbPress
    *
    * This function is attached to the ‘bbp_after_get_the_content_parse_args’ filter hook.
    */
    function bavotasan_bbpress_upload_media( $args ) {
    $args[‘media_buttons’] = true;

    return $args;
    }

    This adds an “Add media” button to the write panel.

    #162634
    alekseevas
    Participant

    Hello!
    Tell me, please, in what file you can edit the сascading style sheets for forum on bbpress?
    – To change the font size (too small).
    – To change the order of sub-forums – that was a column (and not in line).

    * bbPress version – 2.5.7

    #162631
    bayan.assaf
    Participant

    Hello,

    Here is your solution:
    Add the following to functions.php file in your child theme:

    add_action(‘media_buttons’, ‘ml_pre_media_buttons’, 1);
    add_action(‘media_buttons’, ‘ml_post_media_buttons’, 20);
    function ml_pre_media_buttons($editor_id) {
    if (!$editor_id == ‘bbp_reply_content’)
    return;

    $GLOBALS[‘post_temp’] = $GLOBALS[‘post’];
    $GLOBALS[‘post’] = null;
    }
    function ml_post_media_buttons($editor_id) {
    if (!$editor_id == ‘bbp_reply_content’)
    return;

    $GLOBALS[‘post’] = $GLOBALS[‘post_temp’];
    }

    Reference: https://bbpress.org/forums/topic/solved-only-keymasters-admin-can-upload-images/

    #162629
    Robin W
    Moderator

    it’s in

    /includes/forums/template.php

    lines

    1987, 1995, 2007, 2017

    You could probably filter it by

    
    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'This forum contains %1$s and %2$s, and was last updated by %3$s %4$s.' ) {
    	$translated_text = 'This elephant contains %1$s and %2$s, and was last giraffed by %3$s %4$s.';
    	}
    if ( $translated_text == 'This forum contains %1$s, and was last updated by %2$s %3$s.' ) {
    	$translated_text = 'This elephant contains %1$s, and was last giraffed by %2$s %3$s.';
    	}
    if ( $translated_text == 'This forum contains %1$s and %2$s.' ) {
    	$translated_text = 'This elephant contains %1$s and %2$s.';
    	}
    if ( $translated_text == 'This forum contains %1$s.' ) {
    	$translated_text = 'This elephant contains %1$s.';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    in your functions file

    Functions files and child themes – explained !

    #162627
    Robin W
    Moderator

    I believe the following in your functions file should work

    function no_edit_lock($retval, $cur_time, $lock_time, $post_date_gmt){
     return false;
     }
     add_filter( ‘bbp_past_edit_lock’, ‘no_edit_lock’, 1, 4);

    Functions files and child themes – explained !

    Please come back and tell us if it does !

    #162625
    Robkk
    Moderator

    I am importing data from a PHPBB3 3.1.4 installation.

    Known issue that is being worked on.

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

    netentry
    Participant

    In a WordPress 4.2.2 installation, using bbPress 2.5.7, I am importing data from a PHPBB3 3.1.4 installation. Both PHPBB and WP4.2.2/BBPress 2.5.7 are on the same server.

    The import of data (a MySQL database of about 95MB) includes ONLY “replies.” And those imported replies are added to the DB as posts, but those posts are not visible in the WP Admin (they can be seen using a DB tool like PHPMyAdmin). NO forums are imported.

    Running Repair Forums tools all work successfully, except the following:

    Recalculating reply menu order … No reply positions to recalculate!
    Counting the number of topics in each forum… Failed!
    Repairing BuddyPress group-forum relationships… Failed!
    Counting the number of topics each user has created… Failed!
    Counting the number of topics to which each user has replied… Failed!
    Counting the number of replies in each forum… Failed!

    Basically, so far, I cannot import any data from a PHPBB3 installation, except “replies”.

    The PHPBB3 installation is fully functional. It works properly.

    Based on the information above, who can give me guidance toward a solution?

    Many thanks for your time.
    Bill

    #162608
    Robkk
    Moderator

    @jonny5ive7

    either one is okay as long as you put the bbpress.css file in a folder called css in your child theme , and the style.css from your theme is a child theme.

    #162606
    Jonny5ive7
    Participant

    Does this go into the theme style.css the bbpress.ccs style? And do I just copy and paste said code?

    Robkk
    Moderator

    @aaronos

    I just checked your site , and I see you basically just copied and pasted the example template and created a bbpress.php from it.

    I told you it is not that easy, that’s why your pages look a little off.

    If you still need help with this then reply back.

    #162583
    David13_13
    Participant

    With another theme BBpress works well. I’m trying to find the error with the current theme, could be some js error?

    #162582
    Robkk
    Moderator

    @david13_13

    Try posting a reply to that topic in another theme and see if it works.

    If it does there is an issue with your CUrrent Theme.

    If it still does not work , deactivate all your plugins except bbPress and see if you can post a reply again.

    Robkk
    Moderator

    This is planned for a future release , I think the next big release??

    You can track the progress here

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

    #162577
    David13_13
    Participant

    Thanks a lot Robkk

    With bbpress-wp4-fix now I can see topics created but still the button for submit replies doesn’t work…

    The other plugin seems like has no effect.

    #162572
    Robkk
    Moderator

    @david13_13

    Try these plugins one at a time and see if it fixes the issue.

    bbpress wp4 fix2

    bbpress wp4 fix

    #162569
    Robkk
    Moderator

    @dc4x_admin

    I found something awhile ago , sorry I forgot about this topic.

    i cannont seem to find the code i used though.

    But you can just use this plugin instead , it should do the same thing.

    https://wordpress.org/plugins/bbpress-popular-topics/

    The shortcode is something like this for that plugin.

    [bbpresspopulartopics qty = 5]

    #162564
    Robin W
    Moderator

    It may be a theme or plugin issue

    work you way through

    Before Posting

    and then come back

    #162560
    Robin W
    Moderator

    work you way through

    Before Posting

    and then come back

    #162559
    Robkk
    Moderator

    bbPress is inheriting some CSS from your theme that is suppose to be for the WordPress comments.

    try this custom CSS to fix the issue

    #bbpress-forums .reply {
      margin: 0px;
    }
Viewing 25 results - 15,151 through 15,175 (of 64,454 total)
Skip to toolbar