Forum Replies Created

Viewing 27 posts - 1 through 27 (of 27 total)
  • Author
  • in reply to: Member Directory Pagination/Jump #40169
     adam
    Participant

    thank you – i changed this to

    COPY CODE
    
    jq('html, body').animate({
    	scrollTop: 0;

    and that seemed to do the trick.

    in reply to: Site break updating PMPro 1.7.10 to 1.7.14.2 #35368
     adam
    Participant
    This reply has been set as private.
    in reply to: Profile Page – Name Surname #8642
     adam
    Participant

    you can also try:

    COPY CODE
    
    <h2><?php bp_member_profile_data( 'field=Name' )?>&nbsp<?php bp_member_profile_data( 'field=Surname' ); ?></h2>
    

    For the name as you want it displayed.

    in reply to: How do I change the hearts #8286
     adam
    Participant

    hi – strangely the code above no longer works for me:

    COPY CODE
    
    #friends-my-friends:before {content: "";}
    

    i think this may be an issue resulting from the latest theme update?

    in reply to: Removing profilemenu #8273
     adam
    Participant

    this thread will help you:
    https://archived.seventhqueen.com/forums/topic/disable-profile-tab-below-profile-image

    this is my full code in my child theme’s functions.php file, which might help you too:

    COPY CODE
    
    function my_remove_profile_nav() {
        global $bp;
        if (!bp_is_my_profile()) {
            bp_core_remove_nav_item( 'profile' );
            bp_core_remove_nav_item( 'groups' );
            bp_core_remove_nav_item( 'friends' );
            bp_core_remove_nav_item( 'forums' );
            bp_core_remove_nav_item( 'events' );
            bp_core_remove_nav_item( 'location' );
            bp_core_remove_nav_item( 'settings' );
            bp_core_remove_nav_item( 'bp_album_setup_nav' );
        }
    
    }
    add_action( 'bp_setup_nav', 'my_remove_profile_nav' );
    
    function my_setup_nav() {
          global $bp;
    
          $bp->bp_nav['activity'] = false; 
          $bp->bp_nav['profile']['name'] = 'Edit Profile';
    }
    
    add_action( 'bp_setup_nav', 'my_setup_nav' );
    
    function my_remove_album_nav() {
        if (!bp_is_my_profile()) {
            remove_action( 'bp_setup_nav', 'bp_album_setup_nav' );
        }
     
    }
    add_action( 'bp_setup_nav', 'my_remove_album_nav', 9 );
    

    you can customize it to suit your needs.

    in reply to: How to remove membership -level indicator #8128
     adam
    Participant

    you can put this in quick css:

    COPY CODE
    
    .label.radius.pmpro_label {
    display: none;
    }
    
    in reply to: User not getting redirected after login #7781
     adam
    Participant

    show us your code.

    it should look like this:

    COPY CODE
    
    /* Filter the redirect url for login*/
    add_filter("login_redirect","kleo_redirect_to_profile",100,3);
     
    function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
    /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
        if(!is_super_admin($user->ID))
            return bp_core_get_user_domain($user->ID );
        else
            return $redirect_to_calculated; /*if site admin*/
    }
    
    in reply to: Remove \"Match\" #7578
     adam
    Participant

    @wiggerl3000 lots of people (myself included) use this theme for sites unrelated to dating so it’s necessary to remove the matching feature.


    @rota299
    put this in your functions.php file:

    COPY CODE
    
    /* Remove compatibility from profile */
    add_action('after_setup_theme','kleo_remove_compat');
    function kleo_remove_compat() 
    {
        remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');
    }
    
    in reply to: Remove Button (Send Public Message) From Profile Header #7542
     adam
    Participant

    Put this code in your functions.php file to remove the Send Public Message button:

    COPY CODE
    
    function remove_public_message_button() {
    remove_filter( 'bp_member_header_actions','bp_send_public_message_button', 20);
     
    }
    add_action( 'bp_member_header_actions', 'remove_public_message_button' );
    
    in reply to: Not able to log in on frontend #7285
     adam
    Participant

    in header.php you’ll see this:

    COPY CODE
    
    <li><a href="#">
    <i class="icon-user hide-for-medium-down"></i> 
    <?php _e("LOG IN", 'kleo_framework'); ?></a></li>
    

    change “#” to whatever url you like.

    as far as the log-in modal…are you sure you’re logged out fully from WP-Admin before trying to log-in using the modal? sometimes i have that problem.

    in reply to: Latest members carousel #7183
     adam
    Participant

    I see now I can keep the search form on in WP-Admin->Sweetdate and hide the search parts with css leaving the carousel intact.

    COPY CODE
    
    .form-search, .form-header {
    display: none;
    }
    

    I just need to figure out how to change the Latest registered members text.

    in reply to: Avatar is not center aligned in border #7066
     adam
    Participant

    does your css look like this?

    COPY CODE
    
    .activity-list span.avatar, #whats-new-avatar, #activity-stream div.avatar {
    height: 60px;
    width: 60px;
    left: -30px;
    margin-bottom: 20px;
    }
    

    if not, give it a shot in quick css. that should work for activity at least. not sure which widgets you mean?

    in reply to: Redirect After Login #7053
     adam
    Participant

    this will redirect users to their profile when they log-in and the administrator (you) to wp-admin:

    COPY CODE
    
    /* Filter the redirect url for login*/
    add_filter("login_redirect","kleo_redirect_to_profile",100,3);
     
    function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
    /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
        if(!is_super_admin($user->ID))
            return bp_core_get_user_domain($user->ID );
        else
            return $redirect_to_calculated; /*if site admin*/
    }
    

    it goes in the functions.php file of your child theme. is this what you’re looking for?

    in reply to: Remove heart in pictures overlay in BP-Album #7047
     adam
    Participant

    ok change the bottom part to:

    COPY CODE
    
    /* Display nothing on photo */
    function my_custom_icon () {
        return null;
    }
    
    in reply to: Map on front page #7038
     adam
    Participant

    I had this same problem. I believe this is how I fixed it. Add this to your quick css:

    COPY CODE
    
    /*removes bottom portion of map on homepage*/
    .map-bg { background-image:none; }
    
    in reply to: Remove heart in pictures overlay in BP-Album #7035
     adam
    Participant

    it should just put this in your functions.php (child theme file):

    COPY CODE
    
    add_action('after_setup_theme','kleo_my_hearts_actions');
    
    function kleo_my_hearts_actions() 
    {
      
        /* Replace the heart over images */
        add_filter('kleo_img_rounded_icon', 'my_custom_icon');
    }
     
    /* Replace the heart with a camera icon function */
    function my_custom_icon () {
        return 'camera';
    }
    
    in reply to: Display tabs without content #6938
     adam
    Participant

    this code breaks my site. is the syntax correct?
    do i put it below:

    COPY CODE
    
    if (!class_exists('BpMembersTab_bp_album')):
    

    and above:

    COPY CODE
    
    endif;
    

    ?

    I REALLY appreciate this. Thanks!

    in reply to: PMPro Redirect / Messages #6882
     adam
    Participant

    thanks – i have a custom registration page though (mysite.com/registration). so would this be the correct code?:

    COPY CODE
    
    /*PMPro redirect*/
    add_filter('kleo_pmpro_url_redirect', 'my_custom_redirect');
     
    function my_custom_redirect() {
        if (is_user_logged_in()) {
            return pmpro_url("levels");
        } else {
            return ('/registration');
        }
    }
    

    it seems to load slowly.

    in reply to: Remove/Change Settings->Notifications #6548
     adam
    Participant

    thanks – i realized i can just hide the activity settings through css:

    COPY CODE
    
    #activity-notification-settings {
    display: none;
    }
    
    in reply to: Remove About Me Fields from Profile View #6296
     adam
    Participant

    this or something like it is in your functions.php, right?

    COPY CODE
    
    function kleo_my_custom_tab()
    {  
        global $bp_tabs;
        
        $bp_tabs['base'] = array(
            'type' => 'regular',
            'name' => apply_filters('kleo_extra_tab2',__('About Me', 'kleo_framework')),
            'group' => 'About Me',
            'class' => 'regulartab'
        );
    
      /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia')) 
        {
            $bp_tabs['rtmedia'] = array(
                'type' => 'rt_media',
                'name' => __('Our photos', 'kleo_framework'),
                'class' => 'mySlider'
            );
        }
      /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init') AND sq_option('bp_album', 1) == 1)
        {
            $bp_tabs['bp-album'] = array(
                'type' => 'bp_album',
                'name' => __('Our Photos', 'kleo_framework'),
                'class' => 'mySlider'
            );
        }
    

    just delete this part:

    COPY CODE
    
     $bp_tabs['base'] = array(
            'type' => 'regular',
            'name' => apply_filters('kleo_extra_tab2',__('About Me', 'kleo_framework')),
            'group' => 'About Me',
            'class' => 'regulartab'
        );
    
    in reply to: Remove activity from profile. #6203
     adam
    Participant

    try this:

    COPY CODE
    
    function my_remove_activity() {
    global $bp;
    
    $bp->bp_nav['activity'] = false;
    }
    
    add_action( ‘bp_setup_nav’, ‘my_remove_activity’ );
    
    in reply to: Home Search Box Boarder #6194
     adam
    Participant

    Add this also:

    COPY CODE
    
    .form-header {
    border:none;
    }
    
    in reply to: Home Search Box Boarder #6173
     adam
    Participant

    Give this a try in quick css:

    COPY CODE
    
    .form-search {
    border: none;
    }
    
    in reply to: login/signup in top-links section #5869
     adam
    Participant
    COPY CODE
    
    #logo img {
    display: block;
    float: left;
    margin-top: -22px;
    }
    

    play around with margin-top. float the drop down text left, just find the css class.

    in reply to: login/signup in top-links section #5864
     adam
    Participant

    yea i was just going to tell you i looked at your site and i think you changed that css class name. I tried

    COPY CODE
     
    ul#menu-sweetdate.left {
    margin-left: -60px;
    }
    

    and it fit nicely

    in reply to: login/signup in top-links section #5851
     adam
    Participant
    COPY CODE
    
    .top-bar ul.left {
    float: left;
    width: 600px;
    margin-bottom: 0;
    margin-left: 50px;
    }
    

    increase margin-left as much as you need. at least that’s what i did. the problem is it looks better in chrome than on other browsers 🙂

    in reply to: Hide Profile tab #5061
     adam
    Participant

    Hi @seiglufer – This is how I removed the entire bottom navigation in functions.php:

    COPY CODE
    
    function my_remove_profile_nav() {
        global $bp;
        if (!bp_is_my_profile()) {
            bp_core_remove_nav_item( 'profile' );
            bp_core_remove_nav_item( 'groups' );
            bp_core_remove_nav_item( 'friends' );
            bp_core_remove_nav_item( 'forums' );
            bp_core_remove_nav_item( 'events' );
            bp_core_remove_nav_item( 'location' );
            bp_core_remove_nav_item( 'settings' );
        }
    
    }
    add_action( 'bp_setup_nav', 'my_remove_profile_nav' );
    
    function my_setup_nav() {
          global $bp;
    
          $bp->bp_nav['activity'] = false;    
    }
    
    add_action( 'bp_setup_nav', 'my_setup_nav' );
    
    function my_remove_album_nav() {
        if (!bp_is_my_profile()) {
            remove_action( 'bp_setup_nav', 'bp_album_setup_nav' );
        }
     
    }
    add_action( 'bp_setup_nav', 'my_remove_album_nav', 9 );
    

    Just remove ‘forum’ using the function above and erase everything else if that’s the only one you want removed.

Viewing 27 posts - 1 through 27 (of 27 total)

Log in with your credentials

Forgot your details?