Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,826 through 8,850 (of 32,511 total)
  • Author
    Search Results
  • #161903
    hazedesigns
    Participant

    I have had problems with yootheme on a project but have overcome them by simply ‘overriding’ ALL of the plugin files by copying them into the theme directory – not the directory for the ‘style’ as the warp framework calls it but the theme root directory. It seems you have to provide an override for every file to get all the different views working.

    Just follow the process laid out in the codex:

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

    And remember to override ALL the files!

    #161902
    TheMusicianGirl1
    Participant

    Guys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!

    1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
    2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
    3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.

    TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.

    You’re welcome!!

    Maya 🙂

    #161898
    Robkk
    Moderator

    you insert this into a child themes function.php file or a functionality plugin

    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' );

    this custom css you can put in your child themes style.css file or a custom css plugin.

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

    now for this to work exactly like the other site , you can download this image from here, by right clicking save image as, then uploading the image to your child theme in a folder called images. Make sure its named “team-member”

    #161897
    Robkk
    Moderator

    sorry i forgot about this.

    but since you have a full width forum try adding all this CSS to have bbPress look better.

    .bbpress-forums .col-2cl .main {
    
    	padding-right: 0;
    
    }
    
    .bbpress .site,
    
    .bbpress .site-header,
    
    .bbpress .site-content .entry-header,
    
    .bbpress .site-content .entry-content,
    
    .bbpress .site-content .entry-summary,
    
    .bbpress .site-content .entry-meta,
    
    .bbpress .page-content {
    
    	max-width: 100%;
    
    }
    
    .bbpress .hentry {
    
    	margin: 0 auto 48px;
    
    	max-width: 100%;
    
    }
    
    @media screen and (min-width: 1008px) {
    
    	.bbpress .site-content {
    
    		margin-right: 0;
    
    		margin-left: 182px;
    
    	}
    
    }
    
    @media screen and (min-width: 1080px) {
    
    	.bbpress .site-content {
    
    		margin-left: 222px;
    
    	}
    
    }
    
    @media screen and (min-width: 1218px) {
    
    	.bbpress .site-content .entry-content {
    
    		margin-right: 0;
    
    	}
    
    }
    
    @media screen and (min-width: 673px) {
    
    	.bbpress .site-content {
    
    		margin-right: 0;
    
    	}
    
    }
    #161895
    Benjamin Zekavica
    Participant

    I have the side timewise on xampp in the localhost mode. If you can exactly say me which files I must insert this code. Is this in the Theme a folder or in the plug-in itself?

    #161893
    Robkk
    Moderator

    link to your site so i can check the source code

    #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.

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