Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,826 through 8,850 (of 32,505 total)
  • Author
    Search Results
  • #161885

    In reply to: bbPress like Flarum

    Robkk
    Moderator

    just checked the code and i can see that you really stripped a lot of the bbPress default code out.

    alot of bbPress specific plugins i can expect not to work correctly because of this, and maybe even some snippets would not work anymore.

    #161884
    Robkk
    Moderator

    first change the PHP function to this, it bugged me that its not lowercase.

    function rk_show_role_classes($classes) {
        $replyid = bbp_get_reply_author_id();
        $bbp_get_role = bbp_get_user_display_role($replyid);
        $bbp_display_role = strtolower($bbp_get_role);
    	  
      
    	$classes[] = $bbp_display_role;
    	return $classes;
    }
    add_filter( 'bbp_get_topic_class','rk_show_role_classes' );
    add_filter( 'bbp_get_reply_class','rk_show_role_classes' );

    Thats CSS in the topic you linked to , put it anywhere you can put custom css

    a child themes style.css file
    a custom css plugin

    this is basically what you would need in your code.

    #bbpress-forums .bbp-body .moderator div.bbp-topic-content, 
    #bbpress-forums .bbp-body .moderator div.bbp-reply-content {
    background: #f8f8f8 url(images/team-badge-head.png) top right no-repeat;
    }

    you will need an image in your child theme in a folder called images though for what they have.

    you can test it out by just changing the background color for the users.

    #bbpress-forums .bbp-body .keymaster div.bbp-topic-content, 
    #bbpress-forums .bbp-body .keymaster div.bbp-reply-content {
    background: blue;
    }

    there should be classes inserted for every role

    .keymaster = Keymaster
    .moderator = Moderator
    .participant = Participant
    .guest = Guest

    #161879
    Benjamin Zekavica
    Participant

    Where should I insert then the code from: http://www.kriesi.at/support/topic/custom-images-for-moderator-in-bbpress/ of the site?

    #161872

    In reply to: SMF Import to bbPress

    l5z5heli
    Participant

    When I attempt to access the URL ​​https://codex.bbpress.org/import-forums/smf the page is blank. Am I clicking wrong here, or is something wrong with the page?

    #161865
    Robkk
    Moderator

    1. it tells you right on the topic you linked to.

    2. this PHP code will help with styling a users reply by role.

    function rk_show_role_classes($classes) {
        $replyid = bbp_get_reply_author_id();
        $bbp_role = bbp_get_user_display_role($replyid);
      
    	$classes[] = $bbp_role;
    	return $classes;
    }
    add_filter( 'bbp_get_topic_class','rk_show_role_classes' );
    add_filter( 'bbp_get_reply_class','rk_show_role_classes' );

    3 this plugin will help

    https://wordpress.org/plugins/wp-useronline/

    #161859
    Robkk
    Moderator

    there is a couple of patches here , you can see if the latest patch fixes your issue.

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

    make sure to take a site backup before applying a patch.

    https://codex.wordpress.org/WordPress_Backups

    if it still doesnt fix your issue , then you might as well restore your site from the backup then wait for a newer patch.

    if you really need this fixed soon , i suggest you post a job and hire a developer jobs.wordpress.net/

    #161858
    Robkk
    Moderator

    it worked for me, and just so you know bbPress uses some of the WordPress comments code for anonymous posting.

    link to a topic i can test on and make sure you have the code placed.

    the way i tested it is i tried normal anonymous posting when logged out of my test site inputted my email and name then posted a reply and topic. by default the name and email should populate automatically for my next reply and topic.

    with my code it should display empty text inputs even when you already made a reply or topic.

    Stephen Edgar
    Keymaster

    The ticket is https://bbpress.trac.wordpress.org/ticket/1989, there are some specific things we want to do with revisions, we want to actually keep all revisions but only display one revision, we want to be able to “scroll through” the list of revisions, you can see an example of this in the following comment https://bbpress.trac.wordpress.org/ticket/1989#comment:19, in that comment you’ll see previous and diff, once you click previous you’ll then see next.

    If you want to join our development chat we can chat about what and where further.

    To join follow the instructions here and join the #bbpress channel 🙂
    http://chat.wordpress.org

    PinkishHue
    Participant

    Any update on this? Or any suggestions?

    If no replies I will dive in the code to try and figure it out. Just trying to save time, hopefully someone has already done this or has a general idea how to (even a suggestion on the file to edit would save me a step!)

    Thank you 🙂

    DigitalNinjaZA
    Participant

    Hey guys. I’m busy customizing my forum page.

    I’m using WP Visual Composer Plugin to add some elements to the Forum Page, but every time I click update and reload the page they’re gone? Maybe they’re being overridden by css or bbpress code?

    How can I fix this?

    I’ve checked the bbpress shortcodes for visual composer but don’t think that will fix it. As I’m simply trying to add a header and footer image, plus a Custom header.

    Thanks in advance.

    #161832
    Robkk
    Moderator

    i think this would have the same effect.

    // define the comment_cookie_lifetime callback
    function filter_comment_cookie_lifetime( $number ) 
    {
        // make filter magic happen here...
        return 0;
    };
            
    // add the filter
    add_filter( 'comment_cookie_lifetime', 'filter_comment_cookie_lifetime', 10, 1 );
    #161829
    regevkamber
    Participant

    this is the code to disable it for the comments

    remove_action( ‘set_comment_cookies’, ‘wp_set_comment_cookies’ );

    #161827
    Robkk
    Moderator

    how did you disable it in the comments form , im sure the code will be similar.

    Robkk
    Moderator

    allows only admins and moderators to use shortcodes

    https://wordpress.org/plugins/bbpress-do-short-codes/

    allow any user to use shortcodes

    https://wordpress.org/support/plugin/bbpress2-shortcode-whitelist

    riccetto80
    Participant

    Hi!

    i set up a gallery in media uploader, inserted it in a topic i have in bbpres forum…

    the gallery not work, instead of show the thumbnail and the image, show the gallery code:

    [gallery link="file" ids="535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571"]

    the same code in article, pages etc, work just fine and visualize the gallery, only in bbpress pages seems to not work.

    wordpress last version, bbpress last version.

    myrko
    Participant

    In the php-template displaying the forums, I want to check if the current forum/topic/… displayed is below a certain bbpress subforum/category.

    The purpose of this is to show different wordpress menus depending on if the user is looking at the english part or the german part of the forums.

    My question is: Is there a php-code to handle this?

    Like:

    if (we are under the german category) display german menu; 
    else display english menu;

    Thanks! 🙂

    #161800
    hazedesigns
    Participant

    For anyone using the Warp framework from yootheme I found the resolution to compatibility issue that I was having:

    Copy all the files from the plugin core across to the theme folder as if you want to override every single one of them. The locations are explained here: https://codex.bbpress.org/theme-compatibility/

    That’s it – now bbPress works seamlessly with my warp7 based WordPress site!

    #161798
    Chad R. Schulz
    Participant

    I actually found the info/code I needed elsewhere:
    add_filter('bbp_admin_replies_column_headers' , 'custom function'); and
    add_action( 'bbp_admin_replies_column_data' , 'custom function', 10, 2 );

    Odd that this particular custom post type must go against the grain and use a non-standard naming scheme for the admin columns. I guess that’s just the bbpress way;)

    Thanks for a great forum plugin and being a great community.

    Chad

    #161790
    novicechess
    Participant

    Thanks for the reply Robkk! I’ve removed the Mojo Marketplace, and I plan on removing the “password recovery” tab relatively soon as well.

    The code I’ve added that I intended to have a site-wide effect is as follows:

    .site {
    	background-color: white;
    	max-width: 1260px;
    	position: relative;
    	margin: 0 auto;
    }
    
    .primary-navigation a {
    	font-size: 16px;
    }
    
    #container {
    	width: 690px;
    	padding: 30px 30px 0;
    }
    
    #content {
    	width: 400px;
    	margin-left: 200px;
    }
    
    .singlecol #content {
    	width: 550px;
    	margin-left: 200px;
    }
    
    .tag-links {
    	display: none;
    }

    I used it to expand the container of all the posts on the site, so they wouldn’t look narrow, but I’m not sure if that somehow broke the forum.

    #161783
    Chad R. Schulz
    Participant

    I’m trying to add sortable columns into the backend using
    add_filter('manage_reply_posts_columns' , 'custom function'); and
    add_action( 'manage_reply_posts_custom_column' , 'custom function', 10, 2 );

    I was able to add thes columns to ALL custom post types except replies/topics.

    Are Replies/Topics somehow handled differently than other Custom Post Types in WordPress?
    Is there a workaround/fix/patch that I can use to get this working?

    Not mission critical, just curious and love learning how machines work:)

    Thanks,
    Chad

    prospurring
    Participant

    Hi there! I am completely new to bbPress and forums. Assume I know nothing.

    What I would like to do is set up individual, forums between myself and a client. Let’s say I have 7 clients: A, B, C, D, E, F, and G. I’d like to create a forum between myself and client A, that clients B-G can’t see. And a separate forum between myself and client B, that client A and clients C-G can’t see. And so on. (And I’d like to have a main forum that all clients A-G can see, but I figure that’s much easier.)

    How would I go about setting up a forum for each individual client, that no one else can see? Are there plugins I would need? Code to hack?

    Thanks in advance for your assistance!

    #161781
    crzyhrse
    Participant

    Something related to this that I wanted to do, ad because I finally found the answer I want to put it here for others to maybe find…

    To remove the url link fro all author instances in bbPress but leave the author names intact you can put this in the child theme’s functions.php:

    /* Remove link urls from forum author instances...
    */
    add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2);
    function remove_author_links($author_link, $args) {
    $author_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $author_link);
    return $author_link;
    }

    It was found here: http://www.digitspeak.com/web/wordpress/remove-bbpress-forum-profile-url-link/#comment-440

    Robkk
    Moderator

    @darkoned12000

    i think this CSS should fix your issue.

    there might be more areas for this to be added like on profile topics started and such , so i recommend looking through your style.css file and find lines similar to these and fix them so they dont affect bbPress as harshly.

    contact your theme author about help with this if you want.

    follow these two guides to make your theme fully compatible with bbPress.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    https://codex.bbpress.org/theme-compatibility/

    .single-forum .enigma_blog_post_content img,
    .forum-archive .enigma blog_post_content img,
    .topic-archive .enigma blog_post_content img {
      max-width: none !important;
    }
    .single-forum .avatar-14,
    .forum-archive .avatar-14,
    .topic-archive .avatar-14 {
      display: inline !important;
    }
    .single-forum .author_detail_img,
    .forum-archive .author_detail_img,
    .topic-archive .author_detail_img {
      width: auto!important;
      height: auto!important;
      float: none!important;
      margin-right: 0!important;
      margin-bottom: 0!important;
    }
    #161758
    Robkk
    Moderator

    also do this since it helps some users.

    https://codex.bbpress.org/theme-compatibility/

    #161756
    Robkk
    Moderator

    Mybe it is coded so closed topics are excluded from topic query?

    i just closed a topic in an empty forum , i didn’t see anything like this.

    Are you seeing anything that should be in a blog post in your bbPress forums.

    You did do all of the general issues troubleshooting steps?? like switch to a default theme and deactivate all your plugins except bbPress to find something conflicting??

Viewing 25 results - 8,826 through 8,850 (of 32,505 total)
Skip to toolbar