Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

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

    Hi,
    You can start from https://codex.bbpress.org/getting-started/importing-data/import-forums/vbulletin/

    If any issues, just get back here.

    Pascal.

    #170823
    Pascal Casier
    Moderator

    Hi, do you mean the color of the text ?

    #bbpress-forums .bbp-topic-content p,
    #bbpress-forums .bbp-reply-content p {
      font-size: 12px;
      color: #000000;
    }

    Pascal.

    #170805
    Robin W
    Moderator

    if you are into coding, then download my plugin

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

    and look at

    /includes/shortcodes.php

    where I create a shortcode that uses a different template

    You could create a new version by using that code as a base

    #170799

    In reply to: Breadcrumbs

    Robin W
    Moderator
    #170793
    AlexanderCnb
    Participant

    WordPress version: 4.4.1
    bbPress version: 2.5.8
    Site link: local

    Hello,

    With the code snippet I found here I was able to only show one reply revision log, namely the most recent one.

    I would now like to move the revision log out of the reply itself and show it right below. I’m not sure which could I’d have to move to where. If anyone would have some directions that would great, thank you!

    #170782
    tharsheblows
    Participant

    This is a result of a change in WordPress. I had this too – I don’t allow users to change their nickname so the nickname field on the edit form was disabled and didn’t submit (as was the intent). What I did was make the nickname field “readonly” rather than “disabled” and then added this in (you could add it to your functions.php)

    user_nickname_is_login( $meta, $user, $update ){
    	$meta['nickname'] = $user->user_login;
    	return $meta;
    }
    add_filter( 'insert_user_meta', 'user_nickname_is_login', 10, 3 );

    This sets the nickname as the user_login so you would change it to whatever the nickname should be. That function forces the nickname to be what I want — I know the field in the profile was readonly but it was still editable using dev tools and I didn’t want that!

    #170781
    antonv
    Participant

    I use the traditional forum outputting as well as shortcodes in posts.

    Now I want to differentiate the output format, but both the shortcodes and standard output use the template content-single-topic.

    How can I test if the template was included from bbpress/includes/common/shortcodes.php so that I can apply different styling.

    #170770
    vinstyton
    Participant

    My issues with colors are #5 & #8 that have been inherited from my theme.

    So, if I use the code below, where do I include #000000 for all of the text content to be black?

    #bbpress-forums .bbp-topic-content p,
    #bbpress-forums .bbp-reply-content p {
    font-size: 12px;
    }

    #170763
    willywonkabar
    Participant

    Hey superaven,

    That’s a perfect answer, actually. I was hoping that the move was successful, but even with what you shared, there’s still value in your answer. So thanks for that.

    We’re currently testing BBPress and plan to test Xenforo and Discourse as well. Xenforo has its origins in VB, so to us, that seemed like the most like-for-like switch, but as we’re also a WP shop, with 10 years worth of posts, we were hoping to bring everything to WP, or find something with cleaner integration with WP. bbPress is/was our hope for that. As we currently stand, with our hybrid WP/VB site, user authentication, access control, and user profile data defaults to VB, using an open-source VB plugin. We want to bring that into WP, so we can take advantage of some other WP-specific plugins/services, keeping that user profile data (and profile pages) in WP instead, without needing custom code. Having all of that under one roof has its obvious advantages.

    We’ll continue to test bbPress and the other platforms on our end. Thanks for the feedback! Much appreciated.

    #170762
    gene-stevo
    Participant

    Hi Folks,
    I thought I had this nailed but my forums are not sending out any messages re new posts.
    I’m using the following setup:
    WP version 4.4.1
    Theme Jolene 1.1.5
    PHP version 5.4.45
    bbPress version 2.5.8-5815
    site url http://conwycameraclub.co.uk
    Active Plugins Name and Version
    – p1 AsynCRONous bbPress Subscriptions 2.1
    – p2 bbP Manage Subscriptions 1.2.0
    – p3 bbP Toolkit 1.0.6
    – p4 bbPress Enable TinyMCE Visual Tab 1.0.1
    – p5 bbPress 2.5.8
    – p6 bbPress2 shortcode whitelist 2.2.1
    – p7 Content Aware Sidebars 3.0.1
    – p8 Duplicate Post 2.6
    – p9 GD bbPress Attachments 2.3.1
    – p10 My Calendar 2.4.13
    – p11 Nav Menu Roles 1.7.4
    – p12 PDF Embedder 2.4.1
    – p13 Postman SMTP 1.7.2
    – p14 Remove Widget Titles 1.0
    – p15 Fast Secure Contact Form 4.0.39
    – p16 Simple Custom CSS 3.3
    – p17 Slideshow 2.3.1
    – p18 TablePress 1.7
    – p19 W3 Total Cache 0.9.4.1
    – p20 WP User Avatar 2.0.4
    This is a real pain as I’ve only just created the user accounts for the club membership at:
    conwycameraclum.co.uk/forums
    I’ve checked all the setting options on the associated plugins but can’t find anything that could be causing the problem. Sending a test message from postman SMTP works and the site is providing admin messages re users changing passwords etc. Seams only bbP that doesn’t want to comunicate.
    Any help greatly appreciated. Cheers, Eugene

    #170750
    Pascal Casier
    Moderator
    #170749
    Pascal Casier
    Moderator

    Hi,
    bbPress has a converter from vbulletin. You can install the latest stable bbPress 2.5.8 as a plugin to your WordPress and start the conversion. I would however like to indicate that bbPress 2.6-alpha (so not yet stable) is however much improved for conversions, so it could be an option to do it with that version.
    You can find information on installing and importing in the codex: https://codex.bbpress.org/getting-started/

    #170731
    Pascal Casier
    Moderator

    What theme do you use ? Can you confirm that you have the same issues in a standard WP theme ?
    You don’t have any redirection plugins (like 404 Redirected) ?
    How do you show your topics ? Using a shortcode ? Do you have multiple shortcodes on the same page ?

    Pascal.

    #170719
    Pascal Casier
    Moderator

    Hi,
    You will have to follow the normal troubleshooting way to get out of this:
    – Switch to a standard WP theme and see if that helps. If it does, ask the support of the theme author.
    – Switch off all plugins, then see if it works, then switch them on one after the other.

    https://codex.bbpress.org/getting-started/troubleshooting/

    Pascal.

    #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
Viewing 25 results - 7,076 through 7,100 (of 32,519 total)
Skip to toolbar