Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,826 through 8,850 (of 32,519 total)
  • Author
    Search Results
  • #161941
    Robkk
    Moderator

    look at the subpages on the left too.

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

    #161940

    In reply to: Hide Date

    Robkk
    Moderator

    this custom CSS should do it.

    span.bbp-reply-post-date {
      display: none;
    }
    #161939
    Robkk
    Moderator

    create a bbpress.php and remove any post meta code like by (author) published (post date)

    basically your theme thinks that the bbPress archive page is a blog post so it structures it like so , it keeps the forum limit low as if it was an excerpt.

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

    this plugin will help you find the file you would need to copy and create a bbpress.php file from.

    https://wordpress.org/plugins/what-the-file/

    #161937
    Robkk
    Moderator

    you can use this as an alternative if you want.

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

    you would have to put this code somewhere in your loop-single-topic.php file in your child theme.

    <?php if(function_exists('the_views')) { the_views(); } ?>

    Maybe replace voice count?? or create a new column?? or just like simple view counts has like this.

    function rk_bbp_postviews() {
      if (function_exists('the_views')) { 
    	
    	echo the_views(); 
      
      }
      
    }  
    
    add_action( 'bbp_theme_after_topic_started_by', 'rk_bbp_postviews' );

    heck you can even use jetpack for post views.

    #161936
    Robkk
    Moderator

    you have to add on to the code.

    the original is this

    // Span
    		'span'             => array(
    			'class'     => true,
    		),

    you would have to edit it like this

    // Span
    		'span'             => array(
    			'class'     => true,
                            'style'     => true,
    		),

    and probably the same thing for the paragraph tag ‘p’ , but for this you will need to just add it on like this.

    // Paragraph
    		'p'          => array(
    			'dir'    => true,
    			'style'     => true,
    		),

    basically any child elements of the tag add it in the function.

    #161922
    snecz
    Participant

    Hello,
    I’m creating own new WordPress theme for my website.
    On the forum page I can see the forum [bbp-forum-index]
    But I can’t see individual topics pages.
    Am I missing any template in my theme?

    #161920
    tiquality
    Participant

    @donutz Hy Peter, where can I Insert the code you wrote?

    My site is in a internal server, and i didnt understand where I insert this code.

    tks!

    #161908
    Hope
    Participant

    Thanks Robkk for your help! I tried the mentioned code but apparently it’s not working properly, I don’t know why! For example, I’m still having:
    <span style=”text-decoration: underline; color: #ff0000;”>test
    Although “span” is supposed to be treated in the code.

    Have I missed something?

    Thanks for your help
    Hope

    #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 );
Viewing 25 results - 8,826 through 8,850 (of 32,519 total)
Skip to toolbar