Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,526 through 12,550 (of 32,521 total)
  • Author
    Search Results
  • #143168

    In reply to: bbPress 2.5.3

    surangaudimedia
    Participant

    Hi..
    please help me to get bbpress latest post.’[bbp-single-view]‘ this shortcode are not working. how I get bbpress latest post to my home page.

    Robin W
    Moderator

    the url reads

    http://domain.com/whatever-your-shortcode-page-is-called/page/2/

    So presume your page is called “topics”

    The code works – I’ve just retested it on twentyten site and pagination and subsequent pages were fine, so suggest you try

    Check other plugins

    Check that no other plugins are affecting this.

    Turn off all other plugins, and see if that fixes the problem. If the problem is resolved, add back one at a time to see which is causing the conflict.

    Check themes

    If plugins are not the cause, the it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.

    and then come back if you need further help.

    #143159
    aerotran
    Participant

    Hi, I’m using a wordpress theme, Brooklyn, that includes a contact section on all the pages including the bbpress forum I added. The contact section I designed uses shortcode the theme came with, but on the bbpress forum page the shortcode does not work. Instead the text of the shortcode is written out. I tried changing this to html instead of shortcode in the theme, but then it stack the icons into one column.

    Does anyone have suggestions on how bbpress can recognize the shortcode for the theme.

    Thank you,
    Matt

    kokocipher
    Participant

    If anyone knows how to turn off pagination just for the shortcode, bbp-topic-index, that’d work too. Or maybe customize its URL

    kokocipher
    Participant

    in an attempt to replicate bbpress.org’s recent 5 topics on its homepage, I used the shortcode, bbp-topic-index. One critical problem is that the pagination links fail miserably. So instead of http://domain.com/forums/page/2/ , it’s http://domain.com/topics/page/2/ which result in “page not found.”

    Can someone please enlighten me on how to replicate bbpress.org’s recent 5 topics?

    #143149
    Stephen Edgar
    Keymaster

    @stagger-lee I just tested the code from https://codex.bbpress.org/enable-visual-editor/ and it worked fine.

    You could also try the following as a plugin, it has options to enable the full editor, though it sounds like you don’t want this so don’t enable it.

    https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/

    #143136
    Robin W
    Moderator

    Sorry, I don’t run buddypress.

    You might do better on the buddypress support forum

    https://buddypress.org/support/

    Have you tried

    Installing Group and Sitewide Forums

    and there is also talk of

    https://wordpress.org/plugins/private-bp-pages/

    and what have you set visibility within bbp to be eg

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ section 5

    #143134
    satrya
    Participant

    I guess the main question here is the [bbp-topic-form] not work if you place the shortcode on your main forum/forum archive. This is because the form uses bbp_current_user_can_access_create_topic_form function to check several condition and the most important you need to know is it ONLY allow the form displayed on single page/forum.

    Here’s my simple solution, place it in your functions.php

    
    add_filter( 'bbp_current_user_can_access_create_topic_form', 'custom_bbp_access_topic_form' );
    function custom_bbp_access_topic_form( $retval ) {
    
    	if ( bbp_is_forum_archive() ) {
    		$retval = bbp_current_user_can_publish_topics();
    	}
    
    	return $retval;
    
    }
    
    #143131
    Robin W
    Moderator

    ok, so if you’re not miles down the redesign, I’d copy across your current site and then mod from there

    see

    https://codex.bbpress.org/creating-a-test-site/

    for a lot of detail on this.

    #143126
    Stagger Lee
    Participant

    This from codex is simply not working. Tried with several different modifications. Functions.php code for WP comments form works without problems with functions.php code.

    I would use plugins for this, but dont want to give forum users all buttons Admin sees and use too.

    #143123

    In reply to: Change color

    Robin W
    Moderator

    That’s interesting because both topic and reply should both use the same class and styling to display (or not!) the avatar and name.

    The code they are drawing from is around line 208 in bbpress.css

    #bbpress-forums div.bbp-topic-author a.bbp-author-name, #bbpress-forums div.bbp-reply-author a.bbp-author-name {
    clear: left;
    display: block;
    }

    you could add

    #bbpress-forums div.bbp-topic-author a.bbp-author-name, #bbpress-forums div.bbp-reply-author a.bbp-author-name {
    background-color : none !important ;
    }

    in your style.css to this to see if it clears it.

    Otherwise post a link to your url and I’ll take a closer look

    #143119

    In reply to: No toolbar available

    Liberty
    Participant

    Sorry for my late reply.


    @robin-w

    I have read the site you gave me but I can’t find a solution for my problem.


    @lynqoid

    I have deleted every JavaScript and tested it. Nothing!
    I deleted the code of the function.php. Nothing!
    I deactivated every plug-in. Nothing!
    …and the CSS can’t be the fault because the toolbar is not disabled. It’s not there.

    I don’t know what the problem could be. I hope someone can help me.

    #143113
    Robin W
    Moderator

    yes!

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

    section 8 shows you how to set up templates

    #143104
    sergio_ept
    Participant

    Hello, i’m tryng to show replies from one topic in a loop but something must be wrong because is showing all replies, you can view the website http://forocolombofilocadiz.com/forum/foro-de-colombofilia-en-cadiz/, this is the code:

    	<li class="bbp-body">
    
    		<?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    
    			<?php bbp_get_template_part( 'loop', 'single-topic' ); ?>
    <div class="erespuestas">
    <a href="#" onclick="document.getElementById('respuestas-<?php bbp_topic_id(); ?>').style.display='block';return false;">Mostrar respuestas</a> | <a href="#" onclick="document.getElementById('respuestas-<?php bbp_topic_id(); ?>').style.display='none';return false;">Esconder respuestas</a>
    </div>
    <div id="respuestas-<?php bbp_topic_id(); ?>" style="display:none;">
    
    		<?php if ( bbp_has_replies() ) : ?>
    
    //this is the problem because this function always is showing all replies
    			<?php bbp_get_template_part( 'loop', 'replies' );
    			 
    			 ?>
    
    		<?php endif; ?>
    <div class="erespuestas">
    <a href="#" onclick="document.getElementById('respuestas-<?php bbp_topic_id(); ?>').style.display='none';return false;">Esconder respuestas</a>
    </div>
    </div>
    <!--fin-->
    
    		<?php endwhile; ?>
    
    	</li>

    i would like to show replies from each topic and not all every loop.

    sorry for my english.

    #143100

    Topic: Change color

    in forum Showcase
    driftffkf
    Participant

    I have modified font-sizes and colors of my bbpress-installation, but I’m stuck with an ugly green “blob” in the answers linking to my profile. Where do I find the code to modify this? Looks like this: Blob

    #143095
    Lynqoid
    Participant

    Here is the shortcode for the new topic form.
    [bbp-topic-form]

    Or you can pass it the forum id using this
    [bbp-topic-form forum_id=$forum_id]

    #143092
    jslom
    Participant

    For some reason this code was not implemented into my bbpress defauly bbpress.css file.
    I am posting it so you guys can update it for future releases..

    When posting an image to the forum your current css makes the image 100% width, so it does not break the forum layout. Unfortunately this does not keep the image proportional so the height stays the same. All you have to do is this.

    Change

    #bbpress-forums div.bbp-topic-content img,
    #bbpress-forums div.bbp-reply-content img {
    	max-width: 100%;

    To

    #bbpress-forums div.bbp-topic-content img,
    #bbpress-forums div.bbp-reply-content img {
    	max-width: 100%;
            height: auto;
    #143083

    In reply to: Freshness Date Format

    ZachMatthews
    Participant

    That code is also pulling only the date/time when the topic was STARTED, not the most recent reply. Any help?

    #143082

    In reply to: Freshness Date Format

    ZachMatthews
    Participant

    That code kinda works. It looks like some of the timestamps are off, and the timestamps on the Forums page (as opposed to Topics) aren’t correct and aren’t updating. Anyone know how to fix that?

    looks like this line isn’t working:

    
    add_filter( 'bbp_get_forum_freshness_link', 'wpse_77441_change_time_format', 10, 2 );

    Zach

    #143077
    Doremdou
    Participant

    I have never seen any response from the devs/leaders of the bbpress team themselves, seems only volunteers (and thank you very much to them) are answering this forum. I can understand that, because they already created this plugin in their spare time, are not paid or anything, so if they had to answer here it would be a lot of more work… that is what I think.

    I think the threaded/nested replies included in bbpress are working the way it should, it is not a bug, it is just the way they wanted it to be it seems.

    The only way to fix this problem is to find someone skilled enough to code /and/or hack the current code to change the way nested replies are working and add pagination to it.
    I am trying to do it, but can’t figured it out yet… I am not a developper at all, so there is a lot of things I don’t understand… :/

    Another solution would be to update the bbPress Threaded Replies plugin https://wordpress.org/support/plugin/bbpress-threaded-replies to make it work with the new bbpress version (and disable the integrated system in bbpress…) but I don’t know how to do that either…

    Hope we’ll find a fix soon, if someone has an idea we’ll be really grateful 🙂
    Thank you,
    Dorem

    #143062
    Robin W
    Moderator

    ‘The box fields are overlapping one of the widgets on my side menu’
    Can you give us a url so that we can see the problem?

    ‘The other thing I need to change the color of the box fields.’
    This would be a css change – see https://codex.bbpress.org/bbpress-styling-crib/ and If what you want to do is not thee, come back and tell us which bit needs chnaging

    robahas
    Participant

    Hi – I figured this out. Everything under a forum category is a descendant. So based on that you can select an entire “section” of the forum. Here is the code (this is in the genesis framework, so adjustments would be needed for applying to the body class in non-genesis installations). The key is to get the ancestors of the current post, and if your top level forum is included, then apply the css.

    add_filter( 'body_class', 'sp_body_class' );
    function sp_body_class( $classes ) {
        global $post;
        $anc = get_ancestors($post->ID, 'post');
         if ( is_single( '1530' ) || in_array('1530', $anc) )
              $classes[] = 'custom-class';
              return $classes;
    }
    #143040
    Robin W
    Moderator

    Whilst much of this link is blanked out, it does seem to indicate a problem with conflicting page templates.

    http://www.experthelp.com/question/74882/i-have-installed-two-plugins-shopp-and-bbpress-a-shop-and-a-forum-the-start-page-of-each-plugin-is-showing-up-blank-on-my-wordpress-site-how-do-i-fix-it

    What I’d suggest you do is create a page template for your bbpress so that it only uses that one, leaving shop to use whatever template it is using.

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ part 8

    You don’t say what theme you are using – and in fact it could be the theme’s page template that is causing the issue.

    But let’s suggest for a starter that you look in your theme, and copy then rename it’s default page template as per part 8 above.

    If you need further help doing that, or it doesn’t work, come back

    #143030

    In reply to: No toolbar available

    Robin W
    Moderator

    not quite sure what you mean, but have a look at

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

    and if you still have a problem, come back

    #143021
    Robin W
    Moderator

    You would paste that code into your theme’s function file.

    If you do not have a child theme you should consider creating one, just google “wordpress child theme video” and you’ll find lots of help. You’d then put this code into that theme’s function file.

    If you put it in the main theme (or indeed bbpress) it will be overwriten by any upgrades to those.

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