CodingMachine (@codingmachine)

Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • @codingmachine

    Participant

    Okay buddy first thing u have to check is that in settings>general have you checked anyone can registration

    @codingmachine

    Participant

    #bbpress-forums ul.bbp-replies li div.bbp-reply-content div {
    font-size: 16pt;
    margin: 5px;
    padding: 5px;
    min-height: 0px;
    }

    In reply to: CSS issues

    @codingmachine

    Participant

    and to change the headers use this plugin ‘bbPress String Swap’

    @codingmachine

    Participant

    @vadim use bbPress String Swap plugin to change the name of voice author… basically any

    In reply to: CSS issues

    @codingmachine

    Participant

    Hi @andrecgro just do one thing create a folder named ‘css’ in themes/child-theme/ and copy bbpress.css from wp-content/plugins/bbpress/templates/default/css and paste the file in the css folder and then edit any element you want to… u can try those css too

    https://codex.bbpress.org/bbpress-styling-crib/

    In reply to: Coloring answer

    @codingmachine

    Participant

    And if you want to hide your closed topic just do it in css

    #bbpress-forums .status-closed, #bbpress-forums .status-closed a {
    display:none;
    }

    In reply to: Coloring answer

    @codingmachine

    Participant

    Hello @Julien sSerenity…!

    I believe you got to write a function for that…

    But could you tell some more clarification for your question, what actually you want to do in that as in do you want it like a notification

    @codingmachine

    Participant

    In the background without editing bbpress at wordpress template function, there

    Can you help me to understand your problem more Clearly

    @codingmachine

    Participant

    @robin-w

    Thank you…!

    I’ll be a regular visitor for the forum, and as you said i personally believe its a good way of learning and also ill try my best to share my knowledge and even gain some nice knowledgeable things from some of good programmers like you… thank you for replying to me i was waiting for your answer and guidance

    @codingmachine

    Participant

    You can always forward me some problems i would love to give it a try … I have read whole bbpress documentation, i want to get much more familiar to it so you can shoot at me any problem…

    Great – and thanks for posting the solution !

    @codingmachine

    Participant

    I found Solution…! hope may someone else with same customs…
    steps to do display wp_users roles excluding bbpress default role
    1) First create a folder in your child theme named wp-content/theme/yourchildtheme/bbpress.
    2) Then copy the loop-single-reply.php from wp-content\plugins\bbpress\templates\default\bbpress
    3) Go line 47 and replace the line

    bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => false ) );

    with

    bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => false ) );
    $reply_author_id = get_post_field( ‘post_author’, bbp_get_reply_id() );
    $user = new WP_User( $reply_author_id );

    if ( !empty( $user->roles ) && is_array( $user->roles ) )
    {
    foreach ( $user->roles as $role )
    {
    /*if (preg_match(“/”.$roles.”/i”, “administrator”))
    {
    echo(“Administrator”);
    break;
    }
    else*/
    echo “<div class=’role_custom_bhush’>”.ucfirst($role).”</div>”;
    break;
    }
    }

    hope anyone find it helpful and can reply for any queries on this

    @codingmachine

    Participant

    Thank you Rodin for that useful link..!

    How have you done this – using a plugin or by coding?

    I have used “wp-roles-at-registration”, so thats adds a drop-down in my registration page ( You can check my registration page ) so now when the user chooses role from my registration page the forum should also use the same role to display, how can i do that waiting for your reply… And please asset me step by step

Viewing 12 replies - 1 through 12 (of 12 total)