Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,951 through 9,975 (of 32,519 total)
  • Author
    Search Results
  • #155760

    In reply to: Page Not Found Error

    Robkk
    Moderator

    why didnt you use the phpbb to bbPress importer in the bbPress plugin.

    https://codex.bbpress.org/import-forums/

    #155757

    In reply to: Remove Separator

    MaxLiao
    Participant

    First of all, thank you for the response. I really appreciate your help.

    Unfortunately, that code did not work; the separator is still there. You indicated that was a possibility, so no worries.

    Since this doesn’t seem like a matter of just finding a | in some code and removing it or adding a display:none; to the CSS to remove it, is there a resource that would better help me understand how this is being accomplished? I would hate to have to ask this same question every time I want to add or remove a separator. My PHP skills exist but they are weak. Anything to help strengthen them in this regard would be fantastic.

    #155754
    Robkk
    Moderator

    if you were here I’d give you a big kiss.

    uhhhhhhhhhhhhhh , your welcome i guess?? haha

    about it not being updated in over a year , the plugin is very simple it basically just outputs a shortcode at the bottom of blog posts.

    and also that this functionality is going to be implemented in the future release of bbPress.

    so when the update comes and says bbPress for WordPress comments in the changelog of the plguin. you can pretty much just remove the topics for posts plugin from there on and just use bbPress.

    #155752

    In reply to: resize bbpress forum

    Robkk
    Moderator

    add this anywhere you can add custom css and see if this works

    .bbpress .container {
    max-width:100%;
    }

    if it doesnt try this also

    .bbpress .container {
    max-width:100% !important;
    }
    #155751
    Robkk
    Moderator

    yeah you shouldnt edit the core files.

    i see there is additional quotation marks in your code maybe replacing it with this will help.

    <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '90' ) ) ); ?></span>

    #155744
    Robkk
    Moderator

    @skisma

    this topic is for changing the role names background color.

    like for example this site has them with a gray background

    if i use the code snippet above i can have blue for participants , red for keymasters , and yellow for moderators and so on for each role just by applying a little CSS.

    make a new topic and ill check out doing that in the next few days when i setup my custom cpu up all right with a local dev area and not use linux anymore.

    #155743
    Robkk
    Moderator

    @skisma i think that was just a mockup from this website in the link below

    and the author of this topic just stumbled upon it.

    http://www.sitepoint.com/forums/showthread.php?630149-bbPress-theme-project-Design-wireframe-UI/page3

    and since this is from 2009 it is most likely the bbpress standalone version 1.0x and such

    but you could accomplish close to the same result using wp-usersonline plugin and also the inbuilt stats shortcode and just a little bit of CSS.

    create a new topic about this though.

    #155742
    Robkk
    Moderator

    untick topic/reply edit logging in settings>forums to disable the logging of future posts.

    and add this CSS anywhere you can add custom CSS to hide the edit logs on any existing posts.

    #bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log, 
    #bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log, 
    #bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log {
    display: none;
    }
    #155730

    In reply to: Remove Separator

    Robin W
    Moderator

    quick reply as I’m on my way out, so untested, but put the following in your functions file

    function remove_sep ($args) {
    $args['before' ] = '' ;
    Return $args ;
    }
    
    add_filter ('bbp_before_get_topic_subscription_link_parse_args', 'remove_sep') ;
    

    If it doesn’t work, come back and I’ll do it properly and test it for you !

    #155727
    Robin W
    Moderator
    #155710
    Robin W
    Moderator
    #155709
    Robin W
    Moderator
    #155701
    robertosalemi
    Participant

    Hi,
    I try this code
    add_filter( 'auto_update_translation', '__return_false' );

    but this code not works, today my language files are overwritten.

    Why?

    Thanks.

    #155696
    AlexandruIoan
    Participant

    Try to use a plugin, search for ” statistics plugin or who’s online plugin ” or use this new short code : [bbp-statistics] .
    You welcome!

    #155694
    Lumartist
    Participant

    Okay,

    I did install a complete fresh wordpress with only bbpress. Then I added

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    to the functions.php of “Twenty Fourteen”. And again, the same problem as described above. I have to click row one. If I click below it nothing happens.

    But – I also found out, that it is a problem of “Chrome” only. Everything is working fine in Firefox and others. Here the cursor jumps to row one if I click into the text field.

    So I guess it might not be a problem of bbpress… Not sure.

    Any Ideas?

    ——–

    Btw: As soon as I add links into this answer it disappears…

    #155691
    dice2dice
    Participant

    I have found some more information that may be relevant. My forums still exist, here’s one http://whichinvestmenttrust.com/forums/topic/our-top-10-tips-on-where-to-start-as-a-new-investor/

    The option to select a bbPress forum is gone when I’m creating a post but even if I use a short code such as [bbp-single-forum id=8671] the forum still fails to appear in the post.

    I can’t figure out what’s stopping this from working, what is blocking it?

    #155689
    Lumartist
    Participant

    Okay,

    I did a few tests. The Problem also appears if I enable the visual (tab) editor via functions.php, like described here: BBPress Codex, and even if I use this Plugin: bbPress Enable TinyMCE Visual Tab

    This is what it looks like on the Website: directupload.net Image

    And this is how it looks like in chrome dev tools: directupload.net Image

    Can’t believe that I am the only one with this problem… Or am I doing somethings wrong?

    #155679
    Tecca
    Participant

    It’s likely inheriting the bullets from your WordPress style.css rather than something coming from the bbPress stylesheet. So what you can do is add something like the below CSS to your bbPress stylesheet.

    #bbpress-forums li {
        list-style-type: none;
    }

    That will likely remove bullets from forum posts as well, but it’s hard to get specific without seeing the site itself.

    Hopefully that takes you in the right direction.

    #155678
    jmodine
    Participant

    I guess I should have tested that code before I posted it. This gets it in the footer but I cant seem to get the blue bullets this way (although they are there) I even tried placing the

      tag first just in case it needed that which didn’t do it. Also I cant seem to adjust the font size in the footer either. So the table boxes wont increase to fill the footer. I will play with it. See if i can’t come up with a better solution
    #155661
    Lumartist
    Participant

    Hello everyone,

    I am trying to change the tinymce toolbar for the forum (reply & topic). To do so I added this code to the form-reply.php and the same (just different context) for form-topic.php:

    <?php bbp_the_content( array( 
                                'context' 		=> 'reply',                            
                                'media_buttons' => false,
                                'wpautop' 		=> true,
                                'quicktags'		=> true,
                                'teeny'			=> false,
                                'tinymce'       => array(
                                    'toolbar1'      => 'bold,italic,underline,strikethrough,alignleft,aligncenter,alignright,bullist,numlist,blockquote,link,unlink,forecolor,backcolor,undo,redo,removeformat'
                                ),
                            ) ); ?>

    Everything is working so far, except a small detail:

    I am not able to click into the textarea/editor, so that the cursor jumps into the first line. Instead I have to click the first line, which is working.

    I was able to isolte the problem, which is coming from this part of the code:

    'tinymce'       => array(
                                    'toolbar1'      => 'bold,italic,underline,strikethrough,alignleft,aligncenter,alignright,bullist,numlist,blockquote,link,unlink,forecolor,backcolor,undo,redo,removeformat'

    It also appears if I just add:

    'tinymce' => true

    I looks like that the syntax might be wrong, but I read a lot of guides, and in all the syntax was the same.

    I also recognized, that there is a change in the source code, after I add that “tinymce” bit to the array.

    After the changes the appears this code:

    <p><br data-mce-bogus="1"></p>

    —–

    What I read is, that this problem occurs when tinymce is using a <textarea> – But I don’t know how to change that textarea to a div, which is recommended.

    Anyone can help me on this?

    Thank you for your help in advance!

    #155660
    Robin W
    Moderator

    ok, so it sounds like a theme issue, so I googled ‘wordpress theme pinboard bbpress’ and got this

    https://wordpress.org/support/topic/bbpress-forum-homepage-displaying-oddly?replies=8

    the advice is closed to perfect as this looks very strongly like your problem. The only issue might be that the page.php file has been changed in a later version and the lines might be slightly different.

    Read this first for background

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

    so try the following

    1. copy page.php and rename it bbpress.php
    2, edit the bbpress.php file
    line 12:
    <?php post_class(); ?>
    to
    <?php $classes=get_post_class(); echo str_replace(“twocol”, “onecol”, $classes); ?>
    4. modify LOCAL forums.php line 18:
    <?php the_content(); ?>
    to
    $content = get_the_content(); echo str_replace(“twocol”, “onecol”, $content); ?>
    Save this file and reload it to your theme

    As the link says, you should really put it into a child theme

    Functions files and child themes – explained !

    but either way keep a copy of it.

    Come back if this isn’t clear

    #155630
    robertosalemi
    Participant

    Resolved.

    function admin_bar_remove_this(){
    	global $wp_admin_bar;
    	$wp_admin_bar->remove_node('my-account-buddypress');
    }
    add_action('wp_before_admin_bar_render','admin_bar_remove_this');

    I hope this code is useful for someone.

    #155629
    Robin W
    Moderator

    Hey great, glad that you are fixed, an sort of see what he has changed (essentially the code was executing for a page which bbpress is and he’s essentially limited it to categories). Chances are that it won’t affect anything else.

    I presume he will release this as a permanent fix at some stage, but in the meantime, keep a note of this change, in case it gets overwritten by a plugin update.

    #155615
    xprt007
    Participant

    Hi

    The recipe plugin update ended up solving a small connected issue, but not the main one mentioned above. I informed the author again this morning & he quickly acted saying he found the bug in the plugin:

    OK, bug confirmed and (hopefully) found and resolved.

    Could you please edit the file php/class/rpr_core.php in the recipepress-reloaded plugin folder and change line 317 from
    if( !is_page() && ! is_attachment() ){
    to
    if( is_home() || is_category() || is_tag() ){

    This should be it. However this might introduce other problems I couldn’t find so far.

    Editing that file immediately made it possible to get the forum archive at /forums, with the recipe plugin activated, which was not possible before.

    The hope is nothing else is affected by this change. So I am going to check if the forum & other aspects of the site are running normally. I have no experience to tell if that code could affect some other function in WP.
    It seems the cause lies outside, though it affects bbpress.

    I had not yet got time to try the short code solution.

    Very grateful, though for your support.

    Kind regards

    #155614

    Topic: Import Hung?

    in forum Troubleshooting
    Chad
    Participant

    I was importing from my Vbulletin 4 and it went through converting topics, then it started converting tags and hung about 12,900. Is this a known bug? What’s the best way to do this over without losing the imported content and without taking risks of missing content not being imported initially on the hang up? Any ideas why it would hang up like that? It took a pretty long time just to do the topics. It didn’t start the users yet either. You’d think it would import users first?

    Side note, I don’t see any area to set up bbcodes? Is bbcode not a default feature?

Viewing 25 results - 9,951 through 9,975 (of 32,519 total)
Skip to toolbar