Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'remove sidebar'

Viewing 25 results - 251 through 275 (of 323 total)
  • Author
    Search Results
  • #112696
    kikac_nngk
    Member

    First of all sorry for bumping so often.

    I’m using the suffusion v4.0.4 theme as I mentioned above. I use wordpress version 3.3.1 along with bbpress 2.0.2 and buddypress 1.5.5.

    First I removed the <?php get_sidebar()?> from bbpress .php files, then in the style.css i added the proper components for the forum to be full width (i hope you get it), it was working fine.

    But then I went into the sidebar.php in the suffusion theme folder (i was just trying something) and when I went to the forum page the other widgets were gone, but the new one was standing right next to the forum container .. I think this happened after I upgraded buddypress.

    Then I tried to remove the bbpress plugin along with all his files, then again i re-installed bbpress, and done the same thing as before, but now all widgets are shown, not just only one. X_X

    Here’s the link to the forum http://www.poker.mk/forum/forum/

    #112695

    There is no need to bump your thread 3 times in 24 hours, thats not going to help get a reply any faster.

    First thing is this would be a better question to ask you theme author.

    Secondly, you didn’t provide near enough information. Telling us it’s broke doesn’t give us enough info.

    What theme are you using? What version of bbPress are you using? What is the URL of the site? Do you have a screenshot? What code did you use to remove the sidebar?

    I could go on with the details but you get the point.

    #43760
    kikac_nngk
    Member

    Hi there. I’m using the suffusion theme along with a bbpress forum plugin. The point is, that, I removed the sidebar and the previous widgets from the forum pages, but if I add new widget to the sidebar, the widget is showing on the forum pages. I want to know if I’m missing something like some functions like dynamic_widgets() or the problem is something else.

    Thanks in advance !

    #43456
    Millen
    Participant

    I have run into some problems while theming bbp-twenty ten on my site. BBpress is installed, The forum fits within my custom theme after changing the template files. But some CSS does not seem to stick and my forum got issues with padding/margins and width or height at many places.

    Some guidance would be much appreciated!

    Here is my forum: http://www.fruitpickingjobs.com.au/forums

    I started with copying all files from bbp-twenty ten folder to my own wp theme folder. I have also changed all template files so the forum fits within my theme with sidebar.

    I have also added nesecery code to functions.php

    like instructed here: http://www.youtube.com/watch?v=lB2Oodx2GJw

    This is how my functions.php file looks like:

    // bbpress functions below this line

    add_theme_support( ‘bbpress’ );

    /**

    * Functions of bbPress’s Twenty Ten theme

    *

    * @package bbPress

    * @subpackage BBP_Twenty_Ten

    * @since Twenty Ten 1.1

    */

    // Exit if accessed directly

    if ( !defined( ‘ABSPATH’ ) ) exit;

    /** Theme Setup ***************************************************************/

    if ( !class_exists( ‘BBP_Twenty_Ten’ ) ) :

    /**

    * Loads bbPress Twenty Ten Theme functionality

    *

    * Usually functions.php contains a few functions wrapped in function_exisits()

    * checks. Since bbp-twenty-ten is intended to be used both as a child theme and

    * for Theme Compatibility, we’ve moved everything into one convenient class

    * that can be copied or extended.

    *

    * See @link BBP_Theme_Compat() for more.

    *

    * @since bbPress (r3277)

    *

    * @package bbPress

    * @subpackage BBP_Twenty_Ten

    */

    class BBP_Twenty_Ten extends BBP_Theme_Compat {

    /** Functions *************************************************************/

    /**

    * The main bbPress (Twenty Ten) Loader

    *

    * @since bbPress (r3277)

    *

    * @uses BBP_Twenty_Ten::setup_globals()

    * @uses BBP_Twenty_Ten::setup_actions()

    */

    public function __construct() {

    $this->setup_globals();

    $this->setup_actions();

    }

    /**

    * Component global variables

    *

    * @since bbPress (r2626)

    * @access private

    *

    * @uses plugin_dir_path() To generate bbPress plugin path

    * @uses plugin_dir_url() To generate bbPress plugin url

    * @uses apply_filters() Calls various filters

    */

    private function setup_globals() {

    global $bbp;

    // Theme name to help identify if it’s been extended

    $this->name = ‘bbPress (Twenty Ten)’;

    // Version of theme in YYYMMDD format

    $this->version = ‘20110921’;

    // Setup the theme path

    $this->dir = $bbp->themes_dir . ‘/bbp-twentyten’;

    // Setup the theme URL

    $this->url = $bbp->themes_url . ‘/bbp-twentyten’;

    }

    /**

    * Setup the theme hooks

    *

    * @since bbPress (r3277)

    * @access private

    *

    * @uses add_filter() To add various filters

    * @uses add_action() To add various actions

    */

    private function setup_actions() {

    // Add theme support for bbPress

    add_action( ‘after_setup_theme’, array( $this, ‘add_theme_support’ ) );

    // Enqueue theme CSS

    add_action( ‘bbp_enqueue_scripts’, array( $this, ‘enqueue_styles’ ) );

    // Enqueue theme JS

    add_action( ‘bbp_enqueue_scripts’, array( $this, ‘enqueue_scripts’ ) );

    // Enqueue theme script localization

    add_filter( ‘bbp_enqueue_scripts’, array( $this, ‘localize_topic_script’ ) );

    // Output some extra JS in the <head>

    add_action( ‘bbp_head’, array( $this, ‘head_scripts’ ) );

    // Handles the ajax favorite/unfavorite

    add_action( ‘wp_ajax_dim-favorite’, array( $this, ‘ajax_favorite’ ) );

    // Handles the ajax subscribe/unsubscribe

    add_action( ‘wp_ajax_dim-subscription’, array( $this, ‘ajax_subscription’ ) );

    }

    /**

    * Sets up theme support for bbPress

    *

    * Because this theme comes bundled with bbPress template files, we add it

    * to the list of things this theme supports. Note that the function

    * “add_theme_support()” does not /enable/ theme support, but is instead an

    * API for telling WordPress what it can already do on its own.

    *

    * If you’re looking to add bbPress support into your own custom theme, you’ll

    * want to make sure it includes all of the template files for bbPress, and then

    * use: add_theme_support( ‘bbpress’ ); in your functions.php.

    *

    * @since bbPress (r2652)

    */

    public function add_theme_support() {

    add_theme_support( ‘bbpress’ );

    }

    /**

    * Load the theme CSS

    *

    * @since bbPress (r2652)

    *

    * @uses wp_enqueue_style() To enqueue the styles

    */

    public function enqueue_styles() {

    // Right to left

    if ( is_rtl() ) {

    // TwentyTen

    wp_enqueue_style( ‘twentyten’, get_template_directory_uri() . ‘/style.css’, ”, $this->version, ‘screen’ );

    wp_enqueue_style( ‘twentyten-rtl’, get_template_directory_uri() . ‘/rtl.css’, ‘twentyten’, $this->version, ‘screen’ );

    // bbPress specific

    wp_enqueue_style( ‘bbp-twentyten-bbpress’, get_stylesheet_directory_uri() . ‘/css/bbpress-rtl.css’, ‘twentyten-rtl’, $this->version, ‘screen’ );

    // Left to right

    } else {

    // TwentyTen

    wp_enqueue_style( ‘twentyten’, get_template_directory_uri() . ‘/style.css’, ”, $this->version, ‘screen’ );

    // bbPress specific

    wp_enqueue_style( ‘bbp-twentyten-bbpress’, get_stylesheet_directory_uri() . ‘/css/bbpress.css’, ‘twentyten’, $this->version, ‘screen’ );

    }

    }

    /**

    * Enqueue the required Javascript files

    *

    * @since bbPress (r2652)

    *

    * @uses bbp_is_single_topic() To check if it’s the topic page

    * @uses get_stylesheet_directory_uri() To get the stylesheet directory uri

    * @uses bbp_is_single_user_edit() To check if it’s the profile edit page

    * @uses wp_enqueue_script() To enqueue the scripts

    */

    public function enqueue_scripts() {

    if ( bbp_is_single_topic() )

    wp_enqueue_script( ‘bbp_topic’, get_stylesheet_directory_uri() . ‘/js/topic.js’, array( ‘wp-lists’ ), $this->version );

    if ( bbp_is_single_user_edit() )

    wp_enqueue_script( ‘user-profile’ );

    }

    /**

    * Put some scripts in the header, like AJAX url for wp-lists

    *

    * @since bbPress (r2652)

    *

    * @uses bbp_is_single_topic() To check if it’s the topic page

    * @uses admin_url() To get the admin url

    * @uses bbp_is_single_user_edit() To check if it’s the profile edit page

    */

    public function head_scripts() {

    if ( bbp_is_single_topic() ) : ?>

    <script type=’text/javascript’>

    /* <![CDATA[ */

    var ajaxurl = ‘<?php echo admin_url( ‘admin-ajax.php’ ); ?>’;

    /* ]]> */

    </script>

    <?php elseif ( bbp_is_single_user_edit() ) : ?>

    <script type=”text/javascript” charset=”utf-8″>

    if ( window.location.hash == ‘#password’ ) {

    document.getElementById(‘pass1’).focus();

    }

    </script>

    <?php

    endif;

    }

    /**

    * Load localizations for topic script

    *

    * These localizations require information that may not be loaded even by init.

    *

    * @since bbPress (r2652)

    *

    * @uses bbp_is_single_topic() To check if it’s the topic page

    * @uses is_user_logged_in() To check if user is logged in

    * @uses bbp_get_current_user_id() To get the current user id

    * @uses bbp_get_topic_id() To get the topic id

    * @uses bbp_get_favorites_permalink() To get the favorites permalink

    * @uses bbp_is_user_favorite() To check if the topic is in user’s favorites

    * @uses bbp_is_subscriptions_active() To check if the subscriptions are active

    * @uses bbp_is_user_subscribed() To check if the user is subscribed to topic

    * @uses bbp_get_topic_permalink() To get the topic permalink

    * @uses wp_localize_script() To localize the script

    */

    public function localize_topic_script() {

    // Bail if not viewing a single topic

    if ( !bbp_is_single_topic() )

    return;

    // Bail if user is not logged in

    if ( !is_user_logged_in() )

    return;

    $user_id = bbp_get_current_user_id();

    $localizations = array(

    ‘currentUserId’ => $user_id,

    ‘topicId’ => bbp_get_topic_id(),

    );

    // Favorites

    if ( bbp_is_favorites_active() ) {

    $localizations = 1;

    $localizations = bbp_get_favorites_permalink( $user_id );

    $localizations = (int) bbp_is_user_favorite( $user_id );

    $localizations = __( ‘favorites’, ‘bbpress’ );

    $localizations = __( ‘?’, ‘bbpress’ );

    $localizations = __( ‘This topic is one of your %favLinkYes% [%favDel%]’, ‘bbpress’ );

    $localizations = __( ‘%favAdd% (%favLinkNo%)’, ‘bbpress’ );

    $localizations = __( ‘×’, ‘bbpress’ );

    $localizations = __( ‘Add this topic to your favorites’, ‘bbpress’ );

    } else {

    $localizations = 0;

    }

    // Subscriptions

    if ( bbp_is_subscriptions_active() ) {

    $localizations = 1;

    $localizations = (int) bbp_is_user_subscribed( $user_id );

    $localizations = __( ‘Subscribe’, ‘bbpress’ );

    $localizations = __( ‘Unsubscribe’, ‘bbpress’ );

    $localizations = bbp_get_topic_permalink();

    } else {

    $localizations = 0;

    }

    wp_localize_script( ‘bbp_topic’, ‘bbpTopicJS’, $localizations );

    }

    /**

    * Add or remove a topic from a user’s favorites

    *

    * @since bbPress (r2652)

    *

    * @uses bbp_get_current_user_id() To get the current user id

    * @uses current_user_can() To check if the current user can edit the user

    * @uses bbp_get_topic() To get the topic

    * @uses check_ajax_referer() To verify the nonce & check the referer

    * @uses bbp_is_user_favorite() To check if the topic is user’s favorite

    * @uses bbp_remove_user_favorite() To remove the topic from user’s favorites

    * @uses bbp_add_user_favorite() To add the topic from user’s favorites

    */

    public function ajax_favorite() {

    $user_id = bbp_get_current_user_id();

    $id = intval( $_POST );

    if ( !current_user_can( ‘edit_user’, $user_id ) )

    die( ‘-1’ );

    if ( !$topic = bbp_get_topic( $id ) )

    die( ‘0’ );

    check_ajax_referer( ‘toggle-favorite_’ . $topic->ID );

    if ( bbp_is_user_favorite( $user_id, $topic->ID ) ) {

    if ( bbp_remove_user_favorite( $user_id, $topic->ID ) ) {

    die( ‘1’ );

    }

    } else {

    if ( bbp_add_user_favorite( $user_id, $topic->ID ) ) {

    die( ‘1’ );

    }

    }

    die( ‘0’ );

    }

    /**

    * Subscribe/Unsubscribe a user from a topic

    *

    * @since bbPress (r2668)

    *

    * @uses bbp_is_subscriptions_active() To check if the subscriptions are active

    * @uses bbp_get_current_user_id() To get the current user id

    * @uses current_user_can() To check if the current user can edit the user

    * @uses bbp_get_topic() To get the topic

    * @uses check_ajax_referer() To verify the nonce & check the referer

    * @uses bbp_is_user_subscribed() To check if the topic is in user’s

    * subscriptions

    * @uses bbp_remove_user_subscriptions() To remove the topic from user’s

    * subscriptions

    * @uses bbp_add_user_subscriptions() To add the topic from user’s subscriptions

    */

    public function ajax_subscription() {

    if ( !bbp_is_subscriptions_active() )

    return;

    $user_id = bbp_get_current_user_id();

    $id = intval( $_POST );

    if ( !current_user_can( ‘edit_user’, $user_id ) )

    die( ‘-1’ );

    if ( !$topic = bbp_get_topic( $id ) )

    die( ‘0’ );

    check_ajax_referer( ‘toggle-subscription_’ . $topic->ID );

    if ( bbp_is_user_subscribed( $user_id, $topic->ID ) ) {

    if ( bbp_remove_user_subscription( $user_id, $topic->ID ) ) {

    die( ‘1’ );

    }

    } else {

    if ( bbp_add_user_subscription( $user_id, $topic->ID ) ) {

    die( ‘1’ );

    }

    }

    die( ‘0’ );

    }

    }

    /**

    * Instantiate a new BBP_Twenty_Ten class inside the $bbp global. It is

    * responsible for hooking itself into WordPress where apprpriate.

    */

    if ( ‘bbPress’ == get_class( $bbp ) ) {

    $bbp->theme_compat->theme = new BBP_Twenty_Ten();

    }

    endif;

    ?>

    #112286
    glrberg
    Member

    I’ve already got the sidebar removed. I’m looking for options to get the registration/login box in the actual forum vs the sidebar.

    Thanks

    #111800
    LabSecrets
    Participant

    Hi Martin!

    Keep in mind that any CSS you run on your main theme, or child theme, will also apply to the core bbPress files as well, so long as you have structured your site properly. As such, you can apply the suggested body class of “.bbPress” and you will be able to modify the content area and sidebar to make a page full-width as we show.

    1) I use Smultron or Komodo Edit, but also like Sublime Text;

    2) The message you see is, I believe, removed in the latest update to bbPress. Otherwise, just ignore it… (it can be suppressed by adding a line in your wp-config.php file… but why bother as I think it was mentioned here that they are updating this out?)

    Hope this helps!

    Spence

    http://labsecrets.com

    Monkeyboy
    Participant

    As per the topic title. Is there an order in which the bbPress plugin chooses which WordPress template file to display the board? Is it index.php first, then maybe page.php?

    Is it possible to have a page-forum.php file in my WordPress theme, and have the plugin use that?

    Most of my template files have a sidebar, and I’d like to remove that for the forum.

    #42101
    OC2PS
    Participant

    I have just installed bbPress and this plugin.

    I activated the plugin and in the bbPress widget, I placed bbPress search widget.

    When I go to the forums page, the bbPress-specific sidebar doesn’t seem to appear – at least I don’t see the bbPress search widget. Also, the CMS/normal sidebar doesn’t seem to be removed – the sidebar seems exactly like the sidebar for the rest of the site.

    Finally, I tried selecting single.php as default forum wrapper. But this doesn’t seem to make any difference at all – I still see the *normal* 3-column/2-sidebar page when I visit forums.

    Please help!

    http://wordpress.org/extend/plugins/bbpress-wp-tweaks/

    P.S. Searching on bbpress.org plugin browser does not show this plugin

    dreamgrowers
    Member

    No, but I’d love to know if you or anyone else figures this out.

    I would love to see a clear explanation of how to remove the sidebar on bbpress or a little easier theme integration.

    Although bbpress has loads of potential, I’ve currently put my bbpress usage on hold and using other solutions until there’s a little more documentation and support around it.

    Good luck to you!

    #111492

    you need to remove the sidebar (get_sidebar() function) from every file of bbPress template.

    #41938
    patking76
    Member

    I recently added bbpress to my existing site. Everything is working good except the layout is kinda funky. The Sidebar looks stupid. Is there a way to remove this all together from bbpress pages? Or is there a way to adjust the width of bbpress on the bbpress pages?

    See here

    http://thefitnessking.com/groups/

    http://thefitnessking.com/members/

    http://thefitnessking.com/activity/

    Any help is appreciated

    Thanks

    Pat

    #111459
    Nirzol1
    Member

    Ok thx a lot for this informations. I understand and I ‘m ok with what you say :)

    I try a lot of thing, first I created a forum.php who overwrite the template and with that I can remove sidebar or make a specific sidebar.

    I remove the sidebar for a full width page, and make 2 div with float properties to have on the left [bbp-forum-index]] and on the right bbp-topic-index

    But it was not exactly what I want because when I click on a forum this positionning disapear.

    So I do more simply, just a custom page like you said me before with default template of my theme (content + sidebar)

    And put bbpress widget in the sidebar and for moment it’s a quite good.

    I use widget logic, but !!!!! I nearly killed me !!!!!… LOL to find the good conditional . I find this good post –> https://bbpress.org/forums/topic/bbpress-20-conditional-tags .

    Maybe a bug ? or something I do wrong but !bbp_is_forum() not work. I use :

    !(is_post_type_archive( ‘forum’ ) || is_singular( array( ‘forum’, ‘topic’, ‘reply’ ) ))

    It will be best if “last Topic widget” have more “design” like the column ‘topic’ when I use bbp-topic-index with the poster name and the category

    The same for “forum list widget”, it’s just .. a list :p with no indentation and with the “any” option, it’s difficult to understand all. Perhaps a pagetree ? or something else.

    I begin to use bbpress hope it wil be best ^^. Thx

    PS: excuse me for bad english , I ‘m french

    #111193

    In reply to: Theme malfunction

    Anointed
    Participant

    @Tammy

    I don’t think that the template files are currently used, even if placed within your currently active theme. According to JJ< bbPress 2.1 should make this much easier.

    Right now, the only way I know how to change the appearance in your own theme is to actually remove the shortcode actions and write your own custom shortcodes.

    You can of course add a bbpress.php/forums.php page and place that within your theme to do some basic changes such as removing sidebars.

    #109816

    In reply to: Full-Width Forum

    zofar143x
    Member

    It can never be full width as long as you don’t remove that sidebar. You can use Widgetlogic in order to only make your widgets disappear on your forum.

    #41322
    Kalle_L
    Member

    How do I make the forum full width in the Twenty Eleven theme?

    Viewing the forum on the Twenty Eleven theme there is a blank sidebar.

    How do I remove this sidebar so the forum is presented in full width?

    #110810
    benfrain
    Member

    Hi Raphaelsuzuki – no, making a page (with full width template) and setting it as the base slug doesn’t work I’m afraid.

    I’m not using TwentyTen, I’m using a child theme based on Thematic. I ended up just filtering the sidebar away with the following in my main theme’s functions.php:

    function remove_sidebar() {
    if(function_exists('is_bbpress') && is_bbpress()){
    return FALSE;
    } else {
    return TRUE;
    }
    }
    add_filter('thematic_sidebar', 'remove_sidebar');

    Hope that helps someone in future.

    #40586
    stober
    Member

    Hey guys,

    I’m searching for an option to remove the sidebar from all subpages (topics, posts…).

    On my main forum page is no sidebar, because I use a template there, but on every other page there is a sidebar. Hope you understand what I mean. Just have a look here:

    http://www.abi13-ass.de/?page_id=127

    I tried a few things but nothing worked.

    I hope one can help me :)

    Greetings

    #110100
    Anointed
    Participant

    Because the skeleton plugin adds the capability of adding theme templates which do not require added markup such as the header/footer/etc.

    The way it is now, bbPress has a bunch of twentyten specific templates which handle all the output for bbPress. Each of these templates carries the overall ‘layout’ for twentyten instead of just what is output by bbPress.

    If my understanding is correct, I would create a single bbpress.php file that holds just the twentyten layout. ‘The_content’ would then be auto replaced according to what page you are on.

    This would mean that in order to get a custom setup in any theme, I would only have to modify one template file, ‘the twentyten base layout’ instead of modifying every file.

    Basically I am trying to find a way of making it easier for me to build and market bbPress templates that work in any theme.

    An example would be people that don’t want a sidebar. You would simple change the bbpress.php file to remove the sidebar, change the css attribute for the content area to be fullwidth and your done. You don’t have to modify the other bbPress templates.

    *Yeah, I know, there are shortcodes, custom page templates etc already avail, but trying to find an even better approach.

    #109854
    travis.hill
    Participant

    @thetbasket, could you provide a URL, please?

    …but was a no-go for me.

    Your problem still exists because you probably have a completely different theme than that user did.

    …but the sidebars still remained.

    Are you using a Full Width Page Template? These templates do not have a sidebar. They are included with your theme. You select a template when you create a page.

    I removed the div.bbp-breadcrumb in bbpress.css as suggested…

    I didn’t suggest removing div.bbp-breadcrumb, I suggested removing the float:left from div.bbp-breadcrumb. You’ll probably want to style the breadcrumb.

    But there was no change.

    Again, this is probably because your not using a full width page template.

    …but at the same time the function of a forum does not necessarily adhere to that format or fit appropriately within it.

    Perhaps I shouldn’t have said “what WordPress is built to do”, because WordPress is nearly limitless. It’s only restriction is the ability of it’s builder. There is a solution to almost any problem within WordPress. Sure, a vanilla installation of WordPress is pretty limited, but alas, it can be extended to do very powerful things.

    A forum software is exactly what WordPress is. A Content Management System.

    A blog is a forum. A person creates a post (topic) and people comment (reply) on it.

    A forum is a blog. A person creates a topic (post) and people reply (comment) to it.

    A blog and forum are one in the same. How can it not fit appropriately?

    For me, the benefit of having such a plugin is to have a forum that operates well and lightly as a forum on a wordpress site, not necessarily a forum that works within the confines of a wordpress post or page, which is not how forums have functioned nor probably how they best function – considering the horizontal space they typically need for the post title, user that posted, number of replies, and so on, which take up quite a bit of horizontal real-estate.

    Again, I think your missing the full width page template.

    And since the typical widget that would be placed on the sidebar of a blog would be unlikely to directly apply to the forum, what you have in the end is an unnecessary utilization of space that would – for the end user – probably be better used to create a forum which is less cramped, more spacious, etc. – especially when they have the option to access the widgets and sidebars by going back to the blog – that which those widgets and sidebars were likely created for in the first place.

    The bulk of your post deals with your forum not “fitting” within a page, because of the sidebar. I understand where your coming from, so please verify that you are using a full width page template, as these typically don’t have sidebars. This should solve your sidebar issue. If you don’t have a full width page template, create one.

    WordPress Codex: Creating Your Own Page Templates

    The last resort, and not a good one, is to comment out the get_sidebar() code in your template files.

    #109853
    thetbasket
    Member

    Thank you for the information.

    I just tried the solution you had posted for a Full-width forum, but the sidebars still remained. It seemed to work for the other user, but was a no-go for me.

    I removed the div.bbp-breadcrumb in bbpress.css as suggested and replaced it with:

    .bbp-forums {

    width: 100%;

    }

    But there was no change.

    Any tips would be great. I can understand what you’re saying about how wordpress is built for a certain function, but at the same time the function of a forum does not necessarily adhere to that format or fit appropriately within it.

    For me, the benefit of having such a plugin is to have a forum that operates well and lightly as a forum on a wordpress site, not necessarily a forum that works within the confines of a wordpress post or page, which is not how forums have functioned nor probably how they best function – considering the horizontal space they typically need for the post title, user that posted, number of replies, and so on, which take up quite a bit of horizontal real-estate.

    And since the typical widget that would be placed on the sidebar of a blog would be unlikely to directly apply to the forum, what you have in the end is an unnecessary utilization of space that would – for the end user – probably be better used to create a forum which is less cramped, more spacious, etc. – especially when they have the option to access the widgets and sidebars by going back to the blog – that which those widgets and sidebars were likely created for in the first place.

    #109933
    thetbasket
    Member

    I’m also considering how this can be done. I have a left and right sidebars with widgets in them that I wish would not even be displayed. As far as the forum is concerned, I would like it to be the full width of the theme without the sidebars/widgets but see no clear way to remove them.

    Any assistance on this would be helpful. Also, if I am not completely missing it, it may be a good option to release in the GUI for future users. Most blogs contain these sidebars which – however well they may work for a blog – will almost always make a forum which fits between them too narrow and cumbersome.

    The bbpress forum on install had four columns, and my wordpress blog has a 900px width with sidebars on each side. This doesn’t leave much room for the forum to operate within, and it is basically “squished”. I would imagine other users would have similar issues.

    As sidebar items such as search, categories, and archives usually are related more to the blog and not necessarily related to the forum at all, or necessary for the forum to operate (especially as the user can simply click “Home” on the menu and see the forum with all of it’s widgets and sidebars”), I would think there would be many cases where users would find keeping the widgets from the blog on the forum unnecessary and clunky.

    An option to disable sidebars and widgets from the current wordpress theme would be a fantastic addition to bbpress.

    Until that feature is implemented, how can one make the forum the full width as the OP request, disabling the WP widgets and sidebars?

    Great job, though, it’s a very promising project.

    #106309
    Anointed
    Participant

    @eraleks

    Let’s assume that you created a new sidebar called ‘bbpress’ via your functions file. This means that when you go to the sidebar manager, that you can see one called bbpress.

    Next, take the sidebar.php file from your theme and make a copy. Name it bbpress-sidebar.php.

    Here is an example of my bbpress-sidebar.php code.

    <div id="sidebar" role="complementary">

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('bbpress') ) : ?>
    <?php endif; ?>

    </div>

    Finally there are a number of bbpress templates that call the sidebar. Replace those calls with:

    <?php get_sidebar( 'bbpress' ); ?>

    Wrapping up:

    1. You registered a new sidebar called ‘bbpress’

    2. You created a new template file called bbpress-sidebar.php

    3. You edited the bbpress-sidebar.php file to ask for the bbPress sidebar.

    4. You replaced all the calls to the sidebar with the new call to the bbpress sidebar.

    That’s about it. If it is still causing you problems then I suggest reading a few resources.

    https://codex.wordpress.org/Function_Reference/register_sidebar

    http://justintadlock.com/archives/2010/11/08/sidebars-in-wordpress

    *Author avatars.

    JJ already thought about this and added in a filter where you can choose to display just the username and not the avatar.

    <?php bbp_topic_author_link( array( 'type' => 'name' ) ); ?>

    You will see a lot of functions like the one above throughout the bbPress templates. Anywhere you find an avatar that you want to remove and just show the username, simply add the ‘type’ => ‘name’ and your good to go.

    **There may be a global way of doing this, but I did not look as I didn’t need it myself.

    taesheren
    Member

    What I want people to see:

    http://pride.mmbr.no/wp-content/uploads/2011/10/bbpress2.png

    What people really see:

    http://pride.mmbr.no/wp-content/uploads/2011/10/bbpress3.png

    Only stickys show up in the forum. Also: notice how it says the forum has 2 topics, but viewing only 1.

    http://pride.mmbr.no/wp-content/uploads/2011/10/bbpress5.png

    http://pride.mmbr.no/wp-content/uploads/2011/10/bbpress4.png

    Here is the actual pages so you can see for yourselves:

    http://pride.mmbr.no/forum/delforum/minecraft » the forum

    http://pride.mmbr.no/forum/emne/1-9-og-apaxia-nova » the topic

    I installed bbPress via the WordPress Plugins tab and I have copied the template files to my custom theme and customized them (basicly just removed the sidebar) and added the add_theme_support( 'bbpress' ); line in functions.php.

    It’s like the topics are set to hidden.

    I have checked and double checked that the publish status is set to published. What do?

    Thank you for any help.

    #109664
    Per Carlen
    Member

    Thanks alot for helping me out!

    I have removed <?php get_sidebar(); ?> in the .php’s within …/wp-contentpluginsbbpressbbp-themesbbp-twentyten folder, but as you say, that’s not where I should be looking.

    The thing is that I want to keep my sidebars on the rest of the blog so I don’t want to remove them in my wp-theme (Suffusion). Is there a way to remove the sidebars from the forum part of my blog, but keep them on the other pages?

    Thanks again!

    #109663

    ..

    I changed this in mypage.com/wp-content/plugins/bbpress/bbp-themes/bbp-twentyten

    But I don’t use that theme. I use NO theme. So where do I remove the sidebars?

    Hi, AFAIK every bbPress usage always use ‘bbPress default theme’ located within …/wp-contentpluginsbbpressbbp-themesbbp-twentyten folder (except you integrated it with your WordPress theme or you are using custom theme already).

    So you are using ‘bbPress theme’ already and there are no sidebars within that default theme. Sidebars if from your WordPress theme, that you should edit.

    Things looks okey so far! Now I want to remove the sidebars from the forum (not the page, I know how to do that) and I have read a couple of tutorials but still don’t get it.

    Some theme have page template to display ‘full width page’, you must choose it. If your theme don’t have it try create it.

    Here are sample of page using shortcode [bbp-forum-index]

    -> http://themescommunity.com/forums-index/

    I’m newbie too!

Viewing 25 results - 251 through 275 (of 323 total)
Skip to toolbar