This topic has 23 replies, 3 voices, and was last updated 9 years by nusolutions.

  • Author
  • #40757
     nusolutions
    Participant

    I’m just not getting these instructions! So here’s yet another post on adding tabs next to member profiles.

    I have the child theme selected, I’ve gone into my profile and answered some of the fields, and can see these in the profile.

    I notice that if I add some photos via RTMedia the images appear in the profile area.

    I want to add three tabs:
    About me
    Favorites
    Photos

    I have the following Field Groups created. These are their EXACT names:

    About (Primary) There’s Field Group labeled Base as I’ve opted to call it About.
    Favorites
    RTMedia – Not sure the relevance of this since I see the photos in the profile area.
    Photos – Also not sure on whether this Field Group is even needed.

    The Favorites group contains a set of multi-line text areas: favorite foods, music, etc. So in reading I see that I’m to use cite & citetab for a lot of text.

    In viewing all posts on this subject including the one from Dec 10, 2014 I add the following code to the functions.php file located in the child theme:

    COPY CODE
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    //Profile tabs
     
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
        global $bp_tabs;
        $bp_tabs = array();
    
        $bp_tabs['About'] = array(
                'type' => 'regular',
                'name' => __('About Me', 'kleo_framework'),
                'group' => 'About',
                'class' => 'regulartab'
        );
    
        $bp_tabs['Favorites'] = array(
                'type' => 'cite',
                'name' => __('My Favorites', 'kleo_framework'),
                'group' => 'Favorites',
                'class' => 'citetab'
        );
    
                
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia')) 
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('Photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }    
        
    }
    
    ?>

    Nothing appears. Not sure what I’m missing!!

    uuuggghhh!

    Any responses appreciated.

    #40837
     Laura
    Moderator

    Hello, please tell me what are your field groups name that you want to show 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #40845
     nusolutions
    Participant

    I want to show
    About Me
    My Favorites
    My Photos

    #40873
     Laura
    Moderator

    Hello, you need to add a – for each space of the name in :

    COPY CODE
    
    <strong>$bp_tabs['About'] = array(</strong>
                'type' => 'regular',
                'name' => __('About Me', 'kleo_framework'),
                'group' => 'About',
                'class' => 'regulartab'
        );
    

    If your field group names About Me (in admin area) then you should have it like:

    COPY CODE
    
    $bp_tabs['About-Me'] = array(
                'type' => 'regular',
                'name' => __('About Me', 'kleo_framework'),
                'group' => 'About Me',
                'class' => 'regulartab'
        );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #40877
     nusolutions
    Participant

    Nope! Keeping it simple and only using About, Favorites, Photos. I’ve attached a screenshot of my profile fields and pasted code from child functions page below. Please tell me what specifically needs to be changed as I still can’t get this to work.

    COPY CODE
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    //Profile tabs
     
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
        global $bp_tabs;
        $bp_tabs = array();
    
        $bp_tabs['About'] = array(
                'type' => 'regular',
                'name' => __('About', 'kleo_framework'),
                'group' => 'About',
                'class' => 'regulartab'
        );
    
        $bp_tabs['Favorites'] = array(
                'type' => 'cite',
                'name' => __('Favorites', 'kleo_framework'),
                'group' => 'Favorites',
                'class' => 'citetab'
        );
    
                
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia')) 
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('Photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }    
        
    }
    
    ?>

    tia

    #40878
     nusolutions
    Participant

    Screenshot of profile fields.

    Attachments:
    You must be logged in to view attached files.
    #40883
     Laura
    Moderator

    Hello, can you share with me your login details so i can check it out? Also ftp

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #40886
     nusolutions
    Participant
    This reply has been set as private.
    #40889
     Laura
    Moderator

    Hello, what is your ftp server?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #40890
     Laura
    Moderator

    And btw you have set kleo theme, not sweetdate child, this is sweetdate forum.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #40891
     nusolutions
    Participant
    This reply has been set as private.
    #40892
     Laura
    Moderator

    Hello, i’m sorry but in order to login to your ftp i need the ftp server, i tried http://ftp.yoursite.com and also yoursite.com, but none work

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #40894
     nusolutions
    Participant
    This reply has been set as private.
    #40896
     Laura
    Moderator
    This reply has been set as private.
    #40897
     nusolutions
    Participant
    This reply has been set as private.
    #40899
     Laura
    Moderator

    Hello, the user you gave me have only access to .ftpquota

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #40900
     nusolutions
    Participant
    This reply has been set as private.
    #40901
     Laura
    Moderator

    Hello, it seems that your site is not getting the functions form child theme, because i tried to create an error but nothing happened, please check that the site child theme is the same as the one you have the functions in.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #40902
     nusolutions
    Participant
    This reply has been set as private.
    #41090
     nusolutions
    Participant

    Any more thoughts as to why I can’t get this to work on this site?

    tia

    #41165
     Abe
    Keymaster

    @nusolutions I can’t connect over FTP. Can you please provide the right credentials and server?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #41173
     nusolutions
    Participant
    This reply has been set as private.
    #41425
     Abe
    Keymaster

    pfiu 🙂 finally fixed. It will be included in next update and it was related to multisite.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #41442
     nusolutions
    Participant

    AWESOME!!!!!
    Great support as usual!

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?