Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,701 through 6,725 (of 32,519 total)
  • Author
    Search Results
  • krroken
    Participant

    Hi everyone,

    i am new to bbPress, i took some time to search the forums for answers but i have only found a few things.

    So here is my issue. I’m starting a new blog and i would like :
    1. my blog posts to be automatically posted to the forums (either with full post content or with excerpt & link back to the blog).
    2. people that want to comment blog posts to do it from the forum (after registering)
    3. forum comments being displayed on the blog

    That’s something i used to have on an old project using IPB and WP (i had my own plugin coded to do that) but i was expecting bbPress to allow that directly.

    Apparently i was wrong, i only found the Topics for posts plugin to do that but it seems outdated.

    Any other simple solution to do what i want ?

    #173162
    r-a-y
    Participant
    #173159
    Robin W
    Moderator

    ok, put this into your child theme css

    .legend {
    display : none ;
    }
    
    

    or amend line 17 of pretitude.com#2 to change the display

    #173142
    dasboo125
    Participant

    Hi there

    I am using WordPress Version 4.4.2 and BBPress v2.5.8. I am using a magazine theme called Soledad which allows a number of custom sidebars.

    After setting the forum root to community (and I removed the shortcode from a page) and seeing that I did not have a sidebar, I created a new bbpress.php in a child theme to enable it.

    At first the sidebar was showing as the default one on the main forum index and the individual forums and topics were showing a custom side bar that I had assigned to posts (it shows the author bio)

    After I installed BB WP Tweaks, the main forum index page is showing the correct side bar after adding in the widgets into the BBPress sidebar. However, individual forums and topics are still showing the sidebar assigned to post.

    Any help much appreciated. I have read the how to page on setting up specific sidebars, but not luck.

    Thanks
    Laura

    #173138
    alwaysalready
    Participant

    Just in case anyone is looking to do this, I found a way to remove the pagination altogether (although not top and bottom independently).

    Add the following to the functions.php file in your active theme folder:

    add_filter( 'bbp_get_forum_pagination_count', '__return_false' );

    #173137
    imagecrisis
    Participant

    Try changing:

    $active_topic = $bbp->current_topic_id;

    …to:

    $active_topic_id = $bbp->topic_query->post->ID;

    #173133
    blackbird16k
    Participant

    I did a site insert and I found out it’s the “bbp-forum-content” How do I go about editing it to make the font bigger? What code would I use??

    #173132
    blackbird16k
    Participant

    I did a site insert and I found out it’s the “bbp-forum-content” How do I go about editing it to make the font bigger? What code would I use?

    #173126
    Pascal Casier
    Moderator

    Hi,
    Is this the standard /forums ? Then start creating a standard WordPress page and add the [bbp-forum-index] on it. Now you can add any other shortcut or text on this same page.

    Pascal.

    Shortcodes: https://codex.bbpress.org/features/shortcodes/

    #173121
    blackbird16k
    Participant

    Hello, So I changed the forums topic size. For my forum, but somehow the titles of the threads and the forum names were enlarged but the description of each forum is still small (12px.) I wanted to know, did anybody know how I can change the forums topic description font size as well with the code below? What would I put to change the description size along with the title font size. Thanks. 🙂

    #bbpress-forums div.even,
    #bbpress-forums ul.even {
    background-color: #fff;
    font-size: 18px;
    }

    #bbpress-forums div.odd,
    #bbpress-forums ul.odd {
    background-color: #fbfbfb;
    font-size: 18px;
    }

    #173116
    blackbird16k
    Participant

    Hello, so I’m looking forward to editing and changing some things on my bbpress. I’m looking to edit the backgrounds of the header, footer, reply header etc… But I notice through the link below the edits only show background color to change…

    bbPress Styling Crib

    I’m actually planning on using background images instead of a plain color. So I was wondering, if anybody knew how I go about putting a background image in place of the background color without messing up the code. Thanks in advance.

    Also for 7. Template Notices Do anybody know which one is strictly for the color of the background? Without changing the text color, I just want to change the blue box to a certain orange color. Thanks…

    one last change question…

    for the editing of 4. Topic/reply background, is there a possible way of just editing the topics background and leaving the actual post background white? Since both of them are considered under the same category. I was interested in changing the topics boxes and not affecting the background of the actual posts background.

    #173105
    pazzaglia
    Participant

    OK, started my own topic as I was, obviously, not clear enough for my question. I thought it would have been a simple tweak (for someone who know what they’re doing) of this code but, apparently not.

    How to set single default thumbnail for all “topic” content types?

    Ciao,

    L

    #173100

    In reply to: Recents topics

    Pascal Casier
    Moderator

    Use this as CSS:

    .bbp-search-form {
        display: none;
    }
    #173096
    tech55541
    Participant

    Hello,
    Site is still a little unstable, but I think it is good enough to get this problem fixed.
    Just so we all understand, here is what is going on. The menu is designed to open on mouse hover and then close when the mouse pointer leaves the menu. On mobile devices such as phones and tablets, you cannot close the menu because clicking Options opens it. We need to add some additional code to first check if the menu is open, if not, on click open it, if so, on click close it. Would this be a doable task?

    You do have to login to see the options menu, this user account will be deleted as soon as we are done using it.
    Username: bbpress.org-support
    Password: 5oj^gI6OOx*DrCeAlM4J7ZKG
    URL: http://yourtechadvisors.com/forums/topic/testing/

    Thanks for your help.

    munkitkat
    Participant

    I tried creating a plugin from the code above, but I couldn’t activate it. Can someone please help me with a step by step fix for a regular WP install?

    #173081
    Pascal Casier
    Moderator

    Thanks for the code !
    Pascal.

    #173074
    MarcGuay
    Participant

    Hi Pascal,

    Thanks for replying. It seems that the bbp_form_option() function is not available where I’m trying to get the value, but it’s basically a wrapper for get_option() so I can use that. Also, I was trying to grab the forum root slug, so the following has worked for me:

    home_url(get_option( '_bbp_root_slug', 'forums' ));

    Thanks for pointing me in the right direction.
    Salut,
    Marc

    #173072
    Pascal Casier
    Moderator

    Can’t test here, but did you check echo bbp_form_option( '_bbp_forum_slug', 'forum', true ); ?

    #173068
    MarcGuay
    Participant

    Here’s a filter that will redirect admins and editors to the admin panel after login.

    add_filter('bbp_redirect_login', 'custom_bbp_redirect_login', 10, 3);
    function custom_bbp_redirect_login($url, $raw_url, $user){
    	if ( !empty($user) && !empty($user->roles) && (in_array( 'administrator', (array)$user->roles ) || in_array( 'editor', (array)$user->roles )) ) {
    		return get_admin_url();
    	} 
    	return $url;
    }
    #173063
    Robin W
    Moderator

    @tech55541

    If it works on PC, tablets etc. but doesn’t on a mobile, this will not be code functionality, but either JS or CSS.

    Given that few mods will have the time to work out what this code is doing, let alone load it to their site, a URL to a page where it works on a PC but doesn’t on a mobile would be useful.

    #173058
    karthickeyang
    Participant

    i want to show search bar on top of category page,
    i pasted <?php echo do_shortcode(“[bbp-search-form]“); ?>
    above shortcode in content-single-forum.php , i get search bar in category page but in sub forums page
    i get 2 search bar..

    #173050
    kodacollider
    Participant

    I’m not, I am using a child theme of Twenty Twelve that I’ve been creating.

    I actually got this figured out, on a whim I decided to try your $args[‘type’] = ‘list’; again and for whatever reason this time it worked. I don’t know if I may have just overlooked it the first time, or what.

    My function:

    function bbp_custom_pagination_links( $args ) {
        $args['type'] = 'list';
        return $args;
    }
    add_filter ('bbp_topic_pagination','bbp_custom_pagination_links');

    I will still have to go through and do the same thing for other instances of pagination within bbPress, but that has worked for the topic list. It’s just a matter of styling the list elements with CSS at that point to get them aligned horizontally.

    Thanks for all of your help, I really do appreciate it.

    #173049
    Stephen Edgar
    Keymaster

    Right, clear as mud then 😉 But this does sound like this is the expected behaviour 🙂

    Trivia: bbPress.org theme here shows both @username and “Display Name” because people used to try and ping me via @Stephen Edgar, rather than @netweb, hence we added both to the template loops 🙂

    #173047
    tech55541
    Participant

    Hello,
    I have this code that I used to create a custom BBPress options menu. It works great. The only thing it does not do is close on a mobile device when the options menu is clicked again. Could you please help me add this functionality?

    functions.php code

    /* Custom BBPress admin links menu*/
    function wpmudev_bbp_admin_links_in_menu($retval, $r, $args) {
       if ( is_user_logged_in() ) {
       $menulinks = '<ul id="bbp_custom_links_menu-' . $r["id"] . '" class="bbp_custom_links_menu">';
        $menulinks .= '<li class="parent"><a href="#bbp_custom_links_menu-' . $r["id"] . '">Options</a>';
        $menulinks .= '<ul class="bbp_custom_links_submenu">';
        foreach($r['links'] as $key => $val) {
            $menulinks .= "<li>{$val}</li>";
        }
        $menulinks .= '</ul></li></ul>';
    
        echo $r['before'] . $menulinks . $r['after'];
        }
    }
    add_filter('bbp_get_topic_admin_links', 'wpmudev_bbp_admin_links_in_menu', 10, 3);
    add_filter('bbp_get_reply_admin_links', 'wpmudev_bbp_admin_links_in_menu', 10, 3);
    
    add_action( 'wp_footer', 'overflow_overriding' );
    function overflow_overriding() {
        if ( !is_user_logged_in() ) {
        }else{
        ?>
        <script type="text/javascript">
    		jQuery( document ).ready(function() {
    		   jQuery('.bbp-admin-links:even').css({"position": "absolute", "right": "380px"});
    		});
        </script>
    
         <?php
        }
    }

    Thanks for the help.

    #173042

    In reply to: Recents topics

    Robin W
    Moderator

    load my style pack, and you’ll find a shortcode to do just this

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

Viewing 25 results - 6,701 through 6,725 (of 32,519 total)
Skip to toolbar