Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,076 through 7,100 (of 32,505 total)
  • Author
    Search Results
  • #170686
    Pascal Casier
    Moderator

    Hi,
    Have a look at this page: https://codex.bbpress.org/bbpress-styling-crib/
    Pascal.

    #170685
    gamersden
    Participant

    Nothing under appearance is changing the Large font size of the bbpress forum. Everywhere I have looked, css is required, I am just unsure where I need to add any code required, and what the code is.

    #170672
    Jtejerina
    Participant

    Greetings,

    I’ve been trying a lot of solutions that I’ve found around the forum but none seem to work (or are too complicated for someone of my level). I’ve even tried editing the bbpress-functions.php code and it all crashed down.

    I will be hosting 3 different kind of users, they all have the same access and privileges, but I want to differenciate them between “bronze, silver and gold”. So I want that to display somewhere on the screen when they post.

    I though about adding new roles and just setting the role name… but I can’t do it, I tried almost everything and nothing worked.

    Any step by step guide on how to add new roles? I’ve found this https://codex.bbpress.org/custom-capabilities/ but I don’t know what files to edit nor where to find them.

    Also, if there’s any way to add these custom ranks some html ID so I can target them via CSS and give them a different look & feel, that’d be great.

    Thanks in advance,

    #170670
    Pascal Casier
    Moderator

    Hi,
    Create a bbpress folder inside your theme (https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/)

    You probably need to copy content-single-forum.php into your bbpress folder, then you can delete any instance that says <?php bbp_get_template_part( 'form', 'topic' ); ?>

    That should do it.
    Pascal.

    #170669
    charliemyboy
    Participant

    I’m working to set up my first bbPress (and first WP) site using the TwentyTen theme. I’m using WP 4.3.2 and bbPress 2.5.8. I want to hide the “Create New Topic” on a Forum’s page behind a link to discourage people from starting a new topic without looking at the ones that are already there.

    I’ve got some php and html experience but have been beating my head against the code without solving this and and am running into a deadline. I’ll be very grateful for any help you can give me on this.

    #170668
    jessicana
    Participant

    Hello

    Thanks. Just to confirm with you, suppose the role tutor is a role that can not create topics but can edit the reply s/he creates. Accordingly, is the code below be correct?

    
    //code to add tutor role 
     
    function add_new_roles( $bbp_roles )
    {
        /* Add a role called tutor */
        $bbp_roles['bbp_tutor'] = array(
            'name' => 'Tutor',
            'capabilities' => custom_capabilities( 'bbp_tutor' )
            );
     
        return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
     
    function add_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_tutor' )
            $caps = custom_capabilities( $role );
     
        return $caps;
    }
     
    add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
     
    function custom_capabilities( $role )
    {
        switch ( $role )
        {
     
            /* Capabilities for 'tutor' role */
            case 'bbp_tutor':
                return array(
                    // Primary caps
                    'spectate'              => true,
                    'participate'           => true,
                    'moderate'              => false,
                    'throttle'              => false,
                    'view_trash'            => false,
     
                    // Forum caps
                    'publish_forums'        => false,
                    'edit_forums'           => false,
                    'edit_others_forums'    => false,
                    'delete_forums'         => false,
                    'delete_others_forums'  => false,
                    'read_private_forums'   => true,
                    'read_hidden_forums'    => false,
     
                    // Topic caps
                    'publish_topics'        => false,
                    'edit_topics'           => true,
                    'edit_others_topics'    => false,
                    'delete_topics'         => false,
                    'delete_others_topics'  => false,
                    'read_private_topics'   => true,
     
                    // Reply caps
                    'publish_replies'       => true,
                    'edit_replies'          => true,
                    'edit_others_replies'   => false,
                    'delete_replies'        => false,
                    'delete_others_replies' => false,
                    'read_private_replies'  => true,
     
                    // Topic tag caps
                    'manage_topic_tags'     => false,
                    'edit_topic_tags'       => false,
                    'delete_topic_tags'     => false,
                    'assign_topic_tags'     => true,
                );
     
                break;
     
            default :
                return $role;
        }
    }

    Thanks

    Stephen Edgar
    Keymaster

    When importing every imported user has there old user id added to the wp_usermeta table:

    _bbp_old_user_id 318

    You can check them all out via this MySQL snippet:

    SELECT * FROM wp_usermeta WHERE meta_key LIKE '%_bbp_old_user_id%'

    So, yes, preserving/storing the old user ID is already included in bbPress

    #170648

    In reply to: bbpress Login widget

    Pascal Casier
    Moderator
    #170637
    Robin W
    Moderator

    try

    https://wordpress.org/plugins/bbp-style-pack/

    ‘extras’ tab looks like it is close to what you want, or

    [bsp-display-forum-index forum= ‘2932, 2921′ breadcrumb=’no’ search=’no’] from the shortcodes in the style pack plugin may work for you

    #170632
    Pascal Casier
    Moderator
    #170616
    Pascal Casier
    Moderator
    ZivotsRS
    Participant

    Hi,

    1.) Please advice – everywhere Avatar set circle, but online users shows the square. How I fix it?

    2.) Profile extension – I have a profile on Ultimate Member extension, but it fails link it. Could you give me an advice please? More specifically – shortcode extension will not appear in the user’s profile.

    3.) Profile itself only appears when a user knows the exact link. Why do clicking on the word “Profil” does not appear portfolio? What is wrong?

    Vendulka

    (bbPress 2.5.8; WP 4.3.2)

    #170603
    Zlato
    Participant

    I need help on how to do that when in use the radio button (profile page) or drop down (the
    sign in form), the user can select several options jut by clicking ((Without ctrl;)).

    Plugin, code…
    see : http://s17.postimg.org/r22yls5y7/dropmenu.png

    Thx

    #170595
    mohi
    Participant

    Hi Casipea,

    I have one button “New Topic” When I click on that I open new page which is added from pages admin section in that page only shortcode added “[bbp-topic-form]” . and this page only for paticipants.
    Sometimes new topic added successfully sometimes not mostly not added

    And on other page where we listing all topics and at bottom there is one form for new topic add.
    From this new topic is not going to add sometimes added.
    Wordpress : 4.3.1
    BBPress: bbPress 2.5.8-5815.

    #170594
    Pascal Casier
    Moderator

    Hi,
    If you are looking for buddyPress, then you are not on the right support forum.
    If you want to add a forum and you look for bbPress, then we can help you further. The basic steps for installing are here: https://codex.bbpress.org/getting-started/
    If anything is not clear, just get back and open another thread.
    Pascal.

    #170589
    mohi
    Participant

    @casiepa, thanks. I have child theme already. I added this code lines at bottom of file functions.php.
    but some time new topic is going to create sometime not?
    I don’t understand what’s going on, and how to fix it ?

    #170585
    Robin W
    Moderator

    The best way would be to create a new role, and not give it the create topic capability

    see

    https://codex.bbpress.org/custom-capabilities/

    and give it :

    // Topic caps
    ‘publish_topics’ => false,
    ‘edit_topics’ => false,
    ‘edit_others_topics’ => false,
    ‘delete_topics’ => false,
    ‘delete_others_topics’ => false,
    ‘read_private_topics’ => true,

    #170581
    TheMusicianGirl1
    Participant

    Hi there!

    I use bbpress along with the Optimize Press theme. It has always worked great.

    However, recently, the index shortcode has stopped displaying properly. Instead of a nice, neat little box that listed all my forums, it is now sprawled out all over the page. What is going on, and how do I fix this?

    You can see what I mean here: http://www.themusiciangirl.com/community-forum/

    Thanks so much,

    Maya

    #170579
    Stephen Edgar
    Keymaster

    And, make sure you have no other plugins active when you do the import, a recent case of an import taking forever was because the plugin was hooking pre_get_posts and as such every single post as it was being imported was being passed through this plugin making the import ~20x slower.

    #170578
    Stephen Edgar
    Keymaster

    Try also dropping the “delay”, I typically run it as 0.1 (you can change this “on the fly” if you’ve already kicked it off 😉

    Also if your MySQL server can handle it, bump the “rows” to 1,000.

    With or without the changes above it should be no where near 5.5 days, I’d expect somewhere it should do 500k on a “typical” machine in about 6-8 hours based on others historical imports.

    #170576
    Pascal Casier
    Moderator
    #170573
    ZivotsRS
    Participant

    Yes, it is a several custom fields in the profile (place of residence, family, interests, about the disease, etc.)
    Everything I have prepared in the form of Ultimate Member, but do not know how to assign a profile form bbPress. When I enter shortcode, Displayed only the word “text”.
    Vendulka

    #170571
    Pascal Casier
    Moderator

    Hi,
    The best way is to create a child theme (see https://codex.bbpress.org/functions-files-and-child-themes-explained/).
    If you don’t want to do that, find the functions.php in your current theme and add it at the end. Of course when you update your theme, you will have to do this action again.
    Pascal.

    #170570
    ZivotsRS
    Participant

    Please Councils – use bbPress 2.5.8, extension Ultimate Member 1.3.36, Ultimate Member – Online Users 1.1.0, Ultimate Member – Profile Completeness 1.1.9 (on their website, I found the answer).
    When specify a custom of profiles field, fail to show it to me nowhere. I tried insert a shortcode in several placesbut no success. Still I do not know what I’m doing wrong.
    I guess I have something set a wrong, but I do not know what.

    For any advice, I would be grateful, Vendulka

    #170568
    mohi
    Participant

    Hello,
    Wordpress is new for me.
    I implemented bbpress forum in my wp webiste.
    but I am getting same problem.
    Please anyone tell me location of file where to put Satrya’s code ?
    Satry’s told to put it in functions.php but which functions.php ?
    Because,there are a lot of functions.php in plugin/bbpress/admin,plugin/bbpress/user
    I put that code at bottom of plugin/bbpress/user
    but did not worked.
    Please, help me
    Thanks

Viewing 25 results - 7,076 through 7,100 (of 32,505 total)
Skip to toolbar