Sidebar doesn't appear Whoop theme GEODIR & BUDDYPRESS

This topic contains 51 replies, has 3 voices, and was last updated by  Paolo 8 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #289315

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    here is the content of that file:

    
    
    <?php get_header(); ?>
    <?php
    $sidebar = false;
    $full_width = false;
    if (bp_is_members_directory()) {
      $sidebar = apply_filters('whoop_members_page_sidebar', true);
      if (!$sidebar) {
        $full_width = true;
      }
    }
    if (bp_is_activity_directory()) {
      $sidebar = apply_filters('whoop_activity_page_sidebar', true);
      if (!$sidebar) {
        $full_width = true;
      }
    }
    ?>
    <div id="geodir_wrapper" class="geodir-single">
      <?php //geodir_breadcrumb();?>
      <div class="clearfix geodir-common">
        <div id="geodir_content" class="<?php if ($full_width) { echo "whoop-full-width-content"; } ?>" role="main">
          <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
          <article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
    	      <?php do_action('whoop_bp_page_header'); ?>
            <?php // end article header ?>
            <section class="entry-content cf" itemprop="articleBody">
              <?php
    			// the content (pretty self explanatory huh)
    			the_content();
    
    			/*
    			 * Link Pages is used in case you have posts that are set to break into
    			 * multiple pages. You can remove this if you don't plan on doing that.
    			 *
    			 * Also, breaking content up into multiple pages is a horrible experience,
    			 * so don't do it. While there are SOME edge cases where this is useful, it's
    			 * mostly used for people to get more ad views. It's up to you but if you want
    			 * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
    			 *
    			 * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
    			 *
    			*/
    			wp_link_pages( array(
    				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', GEODIRECTORY_FRAMEWORK ) . '</span>',
    				'after'       => '</div>',
    				'link_before' => '<span>',
    				'link_after'  => '</span>',
    			) );
    		?>
            </section>
            <?php // end article section ?>
    	      <?php do_action('whoop_bp_page_footer'); ?>
            <?php comments_template(); ?>
          </article>
          <?php endwhile; else : ?>
          <article id="post-not-found" class="hentry cf">
            <header class="article-header">
              <h1>
                <?php _e( 'Oops, Post Not Found!', GEODIRECTORY_FRAMEWORK ); ?>
              </h1>
            </header>
            <section class="entry-content">
              <p>
                <?php _e( 'Uh Oh. Something is missing. Try double checking things.', GEODIRECTORY_FRAMEWORK ); ?>
              </p>
            </section>
            <footer class="article-footer">
              <p>
                <?php _e( 'This is the error message in the buddypress.php template.', GEODIRECTORY_FRAMEWORK ); ?>
              </p>
            </footer>
          </article>
          <?php endif; ?>
        </div>
        <?php
         get_sidebar('bp-details');
        ?>
      </div>
    </div>
    <?php get_footer(); ?>
    

    Thanks

    #289361

    Stevens Nahmias
    Expired Member
    Post count: 94

    Ola Paolo Perfectly implemented sidebar on all the buddypress main pages thank you geodirectory for such a well coded theme but now i also see the side bar in the members activity tabs at the bottom right of the content instead of being in the right sidebar so i tried to solve it with css like this but it’s stuck at the bottom and it won’t go where it’s suppose to be what needs to be applied for this css should be enough right ?

    .buddypress #gd-sidebar-wrapper {
    border-left: medium none;
    float: right !important;
    }

    #buddypress #item-body {
    border-left: 1px solid #e5e5e1;
    padding: 0 15px;
    width: 400px;
    }

    #289733

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I’ll let Giri answer that, he could give you a better solution rather than just hiding them…

    He’ll be able to reply on monday though, because he’s already off for the week end.

    Thanks for your patience,

    #290340

    Stevens Nahmias
    Expired Member
    Post count: 94

    Hey Paolo thanks for letting me know check you guys out tomorow. Have a nice weekend.

    #290530

    Giri
    Expired Member
    Post count: 3155

    Please try with this code.

    
    
    
    function whoop_activity_bp_sidebar() {
        if (bp_is_user_activity()) {
            get_sidebar('bp-details');
        }
    }
    add_action('bp_whoop_sidebar', 'whoop_activity_bp_sidebar');

    and then add this css in custom css

    
    
    body.activity.buddypress .whoop-member-item-wrap #item-body {
        width: 49%;
    }

    PS: Don’t forget to remove your own custom css code.

    Let me know how that goes.

    Thanks

    #290543

    Stevens Nahmias
    Expired Member
    Post count: 94

    Hello Giri you fixed it very well! I added notifications, messages, friends, groups & settings following your steps but i cain’t get the function to work for the bbpress forums or for buddyforms can you show me the way once again ?

    THOSE DONT WORK

    function whoop_user_proposition_initiative_citoyenne_bp_sidebar() {
    if (bp_is_user_proposition_initiative_citoyenne()) {
    get_sidebar(‘bp-details’);
    }
    }
    add_action(‘bp_whoop_sidebar’, ‘whoop_user_proposition_initiative_citoyenne_bp_sidebar’);

    function whoop_user_forums_bp_sidebar() {
    if (bp_is_user_forums()) {
    get_sidebar(‘bp-details’);
    }
    }
    add_action(‘bp_whoop_sidebar’, ‘whoop_user_forums_bp_sidebar’);

    WORKING SIDEBAR FUNCTIONS ADDED TO functions.php in the child theme

    ///////////////////////////////////////////////////////////////////////////////
    // add function sidebar to whoop buddypress notifications tabs
    //////////////////////////////////////////////////////////////////////////////
    function whoop_user_notifications_bp_sidebar() {
    if (bp_is_user_notifications()) {
    get_sidebar(‘bp-details’);
    }
    }
    add_action(‘bp_whoop_sidebar’, ‘whoop_user_notifications_bp_sidebar’);
    ///////////////////////////////////////////////////////////////////////////////
    // add function sidebar to whoop buddypress messages tabs
    //////////////////////////////////////////////////////////////////////////////
    function whoop_user_messages_bp_sidebar() {
    if (bp_is_user_messages()) {
    get_sidebar(‘bp-details’);
    }
    }
    add_action(‘bp_whoop_sidebar’, ‘whoop_user_messages_bp_sidebar’);
    ///////////////////////////////////////////////////////////////////////////////
    // add function sidebar to whoop buddypress friends tabs
    //////////////////////////////////////////////////////////////////////////////
    function whoop_user_friends_bp_sidebar() {
    if (bp_is_user_friends()) {
    get_sidebar(‘bp-details’);
    }
    }
    add_action(‘bp_whoop_sidebar’, ‘whoop_user_friends_bp_sidebar’);
    ///////////////////////////////////////////////////////////////////////////////
    // add function sidebar to whoop buddypress groups tabs
    //////////////////////////////////////////////////////////////////////////////
    function whoop_user_groups_bp_sidebar() {
    if (bp_is_user_groups()) {
    get_sidebar(‘bp-details’);
    }
    }
    add_action(‘bp_whoop_sidebar’, ‘whoop_user_groups_bp_sidebar’);
    ///////////////////////////////////////////////////////////////////////////////
    // add function sidebar to whoop buddypress settings tabs
    //////////////////////////////////////////////////////////////////////////////
    function whoop_user_settings_bp_sidebar() {
    if (bp_is_user_settings()) {
    get_sidebar(‘bp-details’);
    }
    }
    add_action(‘bp_whoop_sidebar’, ‘whoop_user_settings_bp_sidebar’);

    #290547

    Giri
    Expired Member
    Post count: 3155

    Instead of creating a new function for each and every page, try using OR

    
    
    
    function whoop_add_bp_sidebar() {
        if (bp_is_user_notifications() ||
            bp_is_user_messages() ||
            bp_is_user_friends() ||
            bp_is_user_groups() ||
            bp_is_user_settings() ||
            bp_is_user() && bp_is_forums_component()
        ) {
            get_sidebar('bp-details');
    }
    }
    add_action('bp_whoop_sidebar', 'whoop_add_bp_sidebar');

    That above code would solve your forum problem

    I’m not familiar with buddyforms. So can’t help you much if you don’t provide ftp and admin login details.

    Thanks

    #290625

    Stevens Nahmias
    Expired Member
    Post count: 94
    This reply has been marked as private.
    #290671

    Giri
    Expired Member
    Post count: 3155

    Hi Stevens, It looks like you are overriding buddypress templates in your child theme.

    In sucgh case you don’t need to customize whoop in this case.

    Just clone whoop page.php template and then rename it to buddypress.php. Your case will be solved.

    #290672

    Giri
    Expired Member
    Post count: 3155

    You are overriding footer template again. So your customization causing footer issue.

    I highly advise you to hire someone if you have no idea what you are doing.

    Thanks

    #290692

    Stevens Nahmias
    Expired Member
    Post count: 94

    Sorry i added rich text editor to buddypress activity yes i’m in learning process as you can see errors learning tool if understood so i erased all the overides in the child theme footer.php the buddypress subfolders included except the post-form.php wich was the only file i needed to edit.

    I just haven’t gotten figured out the steps in the private message

    1. adding the sidebar to the buddyforms tabs
    2. getting the footer back on front page
    3. getting the whoop login widget to work on front page

    i guess i’m not asking the right questions at the right place could you tell me where it would be more appropriate peharps ? i can not afford any paid services at this moment only membership to wpgeodirectory was a smart move good theme good forum have a great day.

    #290782

    Giri
    Expired Member
    Post count: 3155

    Thanks Stevens.

    #291349

    Giri
    Expired Member
    Post count: 3155

    Hi Stevens,

    I won’t get any notification if you update your reply. So its better to write a new reply if you need follow up from me.

    This is last notification I got fro this thread.

    Sorry i added rich text editor to buddypress activity yes i’m in learning process as you can see errors learning tool if understood so i reased all the overides footer.php the buddypress subfolders included except activity wich is back like it was before when you helped me add the sidebar to the side so i’m trying to find out to create the function folliwing the proccess you showed earlier to get it go from bottom left to top right and i guess when i can figure it out i’ll add it to the buddyforms tabs thanks for all the help.

    As for your questions, let me see what I can do.

    Thanks

    #291360

    Giri
    Expired Member
    Post count: 3155
    This reply has been marked as private.
    #291361

    Giri
    Expired Member
    Post count: 3155

    And one more thing

    Chnage the WP_DEBUG value to false in wp-config.php file.

    I’m unable to do that since i’m unable to connect to your FTP

Viewing 15 posts - 16 through 30 (of 52 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount