Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,126 through 7,150 (of 32,585 total)
  • Author
    Search Results
  • #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

    #170562
    Pascal Casier
    Moderator

    Hi senco,
    Please do not revive old tickets but next time open your own one explaining what issue you have.
    Only keymasters should see this message. If you have any plugin that changes capabilities, please review your settings.
    If you only want to hide the box then you can play with a CSS code like this:

    .bbp-template-notice {
    	display: none;
    }
    .bbp-template-notice.info,
    .bbp-template-notice.error,
    .bbp-template-notice.important,
    .bbp-template-notice.warning {
    	display: block;
    }

    Or check out a plugin like ‘bbP Toolkit’ that does this too. Just note that both options also remove some other informational messages !
    Pascal.

    #170554
    Pascal Casier
    Moderator

    Hi Bruce,
    I suppose you refer to the breadcrumbs ?

    If you don’t want to add code yourself, you can just install my ‘bbP Tools’ plugin.

    If you are into coding, add a filter to bbp_before_get_breadcrumb_parse_args in adapting the correct arguments.

    Pascal.

    #170553

    In reply to: Thread Prefix

    erich199
    Participant

    For anyone interested in this, I had this made and it’s available on codecanyon now.

    http://codecanyon.net/item/bbpress-thread-prefixes/14402729?s_phrase=&s_rank=4

    If anyone is interested in seeing it in action, check out my forum

    http://artofwargaming.net/forums/cat/community-forums/off-topic-discussions/

    The author of the plugin was fantastic and I recommend him to anyone looking for a custom plugin.

    #170551
    Stephen Edgar
    Keymaster

    Make sure your using the correct database prefix, most phpBB tables will be named something like phpbb_posts, in that case the database prefix is phpbb_

    If you are importing from phpBB 3.1 then you can test the new importer via our bbPress “development version” aka bbPress 2.6 alpha, theres some new import improvements, you can get this from the following page or direct link:
    • https://wordpress.org/plugins/bbpress/developers/
    • https://downloads.wordpress.org/plugin/bbpress.zip

Viewing 25 results - 7,126 through 7,150 (of 32,585 total)
Skip to toolbar