Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • in reply to: BuddyPress Profile Tabs #208929
     joy
    Participant

    Thank you for your response. The original code didn’t do anything, but I used this instead. However, it still doesn’t work…

    COPY CODE
    #buddypress div#item-nav ul li a {
        padding: 0px 15px;
    }

    To reiterate, I am trying to make it so that the drop-down menu item is not hidden. In the screenshot of your demo provided earlier, there is only one more icon that is hidden in the drop-down toggle. There already is enough space there to show the icon and get rid of the toggle which is what I am trying to do – can you please help?

    in reply to: Logo link #160059
     joy
    Participant

    I figured it out.

    COPY CODE
    // redirect home page if logged in
    add_action('wp_head','wpmy_redirect_logged_in_users_away_from_home');
    function wpmy_redirect_logged_in_users_away_from_home() {
        if( is_user_logged_in() && ( is_home() || is_front_page() ) ) {
    		wp_redirect('http://www.website.com');
    		exit;
        }
    }
    
    //allow redirection, even if my theme starts to send output to the browser
    add_action('init', 'do_output_buffer');
    function do_output_buffer() {
            ob_start();
    }
    in reply to: Search Options #159931
     joy
    Participant

    Nevermind, I got it. 🙂

    COPY CODE
    function remove_pages_from_search($query) {
    if ($query->is_search) {
    $query->set('post_type', 'post');
    }
    return $query;
    }
    add_filter('pre_get_posts','remove_pages_from_search');
    in reply to: Default filter for activity stream? #94002
     joy
    Participant

    Thank you. I tried that but I’m not sure what I’m doing wrong. This is what I used:

    COPY CODE
    function filtering_activity_default( $query ) {
      if ( empty( $query ) && empty( $_POST ) ) {
        $query = 'action=comments';
      }
      return $query;
    }
    add_filter( 'bp_ajax_querystring', 'filtering_activity_default', 999 );

    Does that seem correct or do you notice any problems in this?

    in reply to: BBpress layout #58464
     joy
    Participant

    Hello, I have some CSS that I used to fix the mobile view. Since the same properties apply I used it for the global as well. However, it’s inconsistent and my margins are funny. The first two topics look fine, but as you scroll, you can see the layout isn’t displaying the same way. Any ideas?

    COPY CODE
    #bbpress-forums li.bbp-body li.bbp-forum-freshness, #bbpress-forums li.bbp-body li.bbp-topic-freshness {
      color: #bbb;
      font-size: 12px;
      text-align: right;
      padding-top: 30px;
      font-weight: 700;
    }
    #bbpress-forums li.bbp-forum-freshness .bbp-topic-meta, #bbpress-forums li.bbp-topic-freshness .bbp-topic-meta {
      display: inline;
      margin-top: -70px;
      float: right;
    }
    
    #bbpress-forums li.bbp-body li.bbp-forum-freshness a, #bbpress-forums li.bbp-body li.bbp-topic-freshness a {
    	line-height: 0px;
    	margin-top: 15px;
    }
    in reply to: bbpress topic/freshness mobile fix #58463
     joy
    Participant

    Thank you so much. This gave me an excellent base. This is what I ended up using.

    COPY CODE
    @media (max-width: 620px) {
    span.bbp-topic-freshness-author .bbp-author-name {
      margin-top: -5px;
    }
    #bbpress-forums li.bbp-body li.bbp-forum-freshness, #bbpress-forums li.bbp-body li.bbp-topic-freshness {
      color: #bbb;
      font-size: 12px;
      text-align: start;
      padding-top: 55px;
      font-weight: 700;
    }
    #bbpress-forums li.bbp-forum-freshness .bbp-topic-meta, #bbpress-forums li.bbp-topic-freshness .bbp-topic-meta {
      display: inline;
      margin-top: -70px;
    }
    
    #bbpress-forums li.bbp-body li.bbp-forum-freshness a, #bbpress-forums li.bbp-body li.bbp-topic-freshness a {
    	line-height: 0px;
    	margin-top: 30px;
    }
    }
    in reply to: BBpress form mobile issue #57541
     joy
    Participant

    I just did this and it worked out fine.

    COPY CODE
    @media screen and (max-width: 620px) {
    #bbpress-forums .bbp-form input[type="text"] {
    	width: 100%;
    }
    }

    Thank you.

     joy
    Participant

    I’ve been successful with part of this code. But for some reason only 4 of my icons show even though the URL’s are complete. Does anyone have any idea what I’m doing wrong here? This is the code I’m using:

    COPY CODE
    add_action('bp_profile_header_meta','social_links_in_header');
    
    function social_links_in_header () {
    	$social_links = array('facebook','twitter','google+','instagram','linkedin','youtube','pinterest');
    	foreach( $social_links as $link ) {
    		if ( $data = bp_get_profile_field_data( array('user_id'=>bp_displayed_user_id(), 'field'=>$link )) ) : ?>
    			<a href="<?php echo bp_get_profile_field_data( array('user_id'=>bp_displayed_user_id(), 'field'=>$link)); ?>" target="_blank"><i class="icon-<?php echo $link; ?>"></i></a>
    		<?php endif;
    	}
    	
    }

    The only icons that appear are Facebook, Twitter, Linkedin, and YouTube.

    Thanks in advance for any help.

    in reply to: Header issue with BBpress replies #57294
     joy
    Participant

    Never mind, I figured it out. I put this code in my css file. The z-index was listed at “999” which is why it’s overlapping the header.

    COPY CODE
    #bbpress-forums .hentry div.bbp-reply-content::before, #bbpress-forums .hentry div.bbp-topic-content::before {
    z-index: 0;
    }

    This seemed to have corrected the issue.

    in reply to: Members Directory Edit #56997
     joy
    Participant

    Thank you. That didn’t work though. I was able to achieve it with this:

    COPY CODE
    #buddypress #friend-list div.action, #buddypress #member-list div.action, #buddypress #members-list div.action {
      display: none !important;
    }
    
    #buddypress #friend-list .update, #buddypress #member-list .update, #buddypress #members-list .update {
    display: none !important;
    }
Viewing 10 posts - 1 through 10 (of 10 total)

Log in with your credentials

Forgot your details?