This topic has 40 replies, 3 voices, and was last updated 9 years by Abe.

  • Author
  • #38426
     webpixel
    Participant

    Hello

    After editing the “Looking for” field, to my own language(Beskriv dig selv)
    It is now, not showing up in the Profile page.
    See picture:

    Also is it possible to remove Privacy fields, and custimze them to other names?:
    “Logged in Users”
    “Friends”
    “Private”
    “Public”

    View post on imgur.com

    Thanks for helping me out again 🙂

    #38452
     Laura
    Moderator

    Hello, for the first question, you need to create custom tabs in functions.php ,because when changing that name, the code doesnt find Looking for, so it doesnt shows it. You need the custom code to create it with your own names.

    For that just add this code to your functions.php in your child theme:
    Please read the comments inside of the code for more explanations.

    COPY CODE
    
    //Profile tabs
     
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
        global $bp_tabs;
        $bp_tabs = array();
    /* This is the code you need to use as a base for each profile tab, the display changes if you use 
    Regular type or Cite tab, cite is a quote, bigger style for a lot of text, while regular is small
    When wanting to change the style, change it at type and class , citetab , regulartab 
    You can start to copy the custom code from here */
        $bp_tabs['CUSTOMGROUP'] = array(
                'type' => 'regular',
                'name' => __('CUSTOMGROUP', 'kleo_framework'),
                'group' => 'CUSTOMGROUP',
                'class' => 'regulartab'
        );
    /* To here, the above code is what you need to copy and paste to make new tabs.
    The order of the tabs changes as it is in the code. */
                
        $bp_tabs['Beskriv dig selv'] = array(
                'type' => 'regular',
                'name' => __('Beskriv dig selv', 'kleo_framework'),
                'group' => 'Beskriv dig selv',
                'class' => 'regulartab'
        );
        
        /* 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'
            );
        }    
        
    } 
    

    I have added the missing tab you needed, but for the rest you need to use the custom tab i added for each of them, remember both the name should be the exact name as the group in user fields.

    A quick list of what i explained in the code:

    1. Custom field base code (Add before } and after );

    COPY CODE
    
    $bp_tabs['CUSTOMGROUP'] = array(
                'type' => 'regular',
                'name' => __('CUSTOMGROUP', 'kleo_framework'),
                'group' => 'CUSTOMGROUP',
                'class' => 'regulartab'
        );
    

    2. The names should be the same as the are in Users > Profile Fields ( name=> doesnt really need to be the same, but better put it.)

    3. Styles, (in Attachment 1) You can easy change how the tabs will look by changing “type” and “class”:
    Tab Style 1 :

    COPY CODE
    
     $bp_tabs['CUSTOMGROUP'] = array(
                'type' => 'regular',
                'name' => __('CUSTOMGROUP', 'kleo_framework'),
                'group' => 'CUSTOMGROUP',
                'class' => 'regulartab'
        );
    

    Tab Style 2 :

    COPY CODE
    
    $bp_tabs['CUSTOMGROUP'] = array(
                'type' => 'cite',
                'name' => __('CUSTOMGROUP', 'kleo_framework'),
                'group' => 'CUSTOMGROUP',
                'class' => 'citetab'
        );
    

    4. Order of the tabs, it can be changed as it is in the code, if tab “Base” is up and “Style” is down, in the code, it will look like that in the website, but “Base” first, then next “Style”

    ___________________

    As for your second question, you can translate ALL by using Codestyling Localization Plugin with Buddypress and Sweetdate

    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 🙂

    Attachments:
    You must be logged in to view attached files.
    #38462
     webpixel
    Participant

    Thank you 🙂

    1. How do i LOCK a profile field that the user have made on signup?(so they cant edit it)
    2. How do i make “Women” free users with all privileges.
    3. If you sign up as a Man you need to buy, and is in a specific membership level.
    4. Right now you can see how many friends a user have, how do you disable this, so you can ONLY see your own friends on the profile admin tabs.

    #38463
     webpixel
    Participant

    Sorry forgot to say that i added some more questions.

    #38472
     Laura
    Moderator

    Hello, for your questions:

    1. Try this solution https://buddypress.org/support/topic/how-to-make-certain-profile-fields-editable-by-admin-only/
    2. You can use this code https://archived.seventhqueen.com/forums/topic/membership-auto-in-registration#post-5411
    3. Same as above, create a membership plan for women and men, then use that code. https://archived.seventhqueen.com/forums/topic/membership-auto-in-registration#post-5411
    4. Use this code inside bp-custom.php of your plugins folder

    COPY CODE
    
    /**
     * Hide User Friends from Other Users
     * Only Admin or the user himself can see friends
     */
    add_action('bp_friends_setup_nav','bpdev_custom_hide_friends_if_not_self');
    function bpdev_custom_hide_friends_if_not_self(){
        if( bp_is_my_profile() || is_super_admin() )
            return ;
        bp_core_remove_nav_item( 'friends' );
    }
    
    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 🙂

    #38481
     webpixel
    Participant

    Hello.

    1. Did try, but when i move them to their own “group” they are hidden from the profiles.

    2/3. Sucessfully added the Member ship auto in registration code, and working.

    But now they show up in: Membership levels. I want these two to be hidden from that page. But still use the page for other levels.

    How do i hide the “Upgrade account” on Women profiles?
    But show on Men profiles?

    4. Working 🙂

    #38483
     Laura
    Moderator

    Hello,
    1. You can hide it by going to the level, edit it and look for “Check to hide…”
    2. I’m looking for it…

    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 🙂

    #38487
     Laura
    Moderator

    Hello, the thing is very simple, i think you didnt test the functions with a new user, you need to set all your current women to free level because function wont affect them, if you try to register a woman, she will be set to free role right? So it will be shown as Free in their profile, not upgrade, so actually the new female users that registers will be set to free, upgrade button will be never shown to them, you see them because you didnt test it with a new user.

    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 🙂

    #38492
     webpixel
    Participant

    Hey Laura.
    Bombing you with another question.
    After some time, my Lightbox with rtMedia suddenly does not work. When i click on a picture from the “tabs” it just redirects me to the profile page, and shows image below as if i would edit it.

    Inside rtMedia settings, i got, “Use lightbox to display media off” but when i click on, it shows images as a facebook page. But i want the light box as usual

    #38496
     Laura
    Moderator

    Hello, try deactivating the lightbox in rtmedia and use this https://wordpress.org/plugins/simple-lightbox/

    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 🙂

    #38497
     webpixel
    Participant

    1. Dont understand what you mean with: You can hide it by going to the level, edit it and look for “Check to hide…”

    2. Yes it does remove the “Upgrade account”. But then a Man can just choose “Woman level” Because it is shown inside the “Member levels page”.
    Like i said further up, i would like the two levels to be hidden(becuase they are automatic assigned), so one can select them on the “Member level” page.

    #38498
     Laura
    Moderator

    Hello, go to the membership level and edit it, you will find there the option to hide it from membership page, it also says that is disabled registration on it, so it works.

    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 🙂

    #38500
     webpixel
    Participant

    Hello.
    If i choose that field, inside the settings so it disapereas from the “Membership page” as a selection.
    Then when i create a new user, that should have assigned the Membership ID auto, just gets nothing.

    Your suggestion does not work :S

    #38501
     Laura
    Moderator

    Hello, can you link me to your membership levels page?

    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 🙂

    #38502
     webpixel
    Participant
    This reply has been set as private.
    #38503
     webpixel
    Participant

    Right now they are both enabled.

    #38504
     Laura
    Moderator

    Hello, try to add this to your style.css in child theme

    COPY CODE
    
    .pricing-table kleo-level-6 {
    display:none !important;
    }
    .pricing-table kleo-level-5 {
    display:none !important;
    }
    
    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 🙂

    #38506
     webpixel
    Participant

    added here:

    nothing happen to the fields, still there

    #38511
     Laura
    Moderator

    Hello, please give me the info of your ftp so i can check it out 🙂

    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 🙂

    #38513
     webpixel
    Participant
    This reply has been set as private.
    #38545
     Laura
    Moderator

    Hello, i’m working on that, just a question, do you have a cdn or cache on your page? because changes i do in css doesnt save.

    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 🙂

    #38548
     Laura
    Moderator

    Hello, for the users fields only editable by admin just follow the steps as it says, create new group with the fields you want only editable by admin, but i would suggest to leave it as it it because is too much hack in your system.

    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 🙂

    #38570
     webpixel
    Participant

    I have no cache enabled in my system.
    Just installed this theme fresh on my system.
    Havent downloaded any cache.

    #38588
     webpixel
    Participant

    Added a few hacks, to the funktion.php – But that got nothing to do with the style.css.

    #38632
     webpixel
    Participant

    Help :S
    My lightbox(not working) and style.css on Child theme aint picking up styles.

    #38650
     Laura
    Moderator

    Hello, please give me time to check it out as i dont know why is not working the styles

    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 🙂

    #38654
     webpixel
    Participant

    Okay Laura.
    Il have patience. Sorry. Just fustrated, becuase its only two things i need besides the “only edit my admin”. To make my theme complete and ready.

    #38657
     Laura
    Moderator

    Hello, i understand, sorry for making you wait.

    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 🙂

    #39239
     Abe
    Keymaster

    so this works now @webpixel ?

    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.

    #39264
     webpixel
    Participant

    Hey @abe.
    Not really, still havent figured out. How i hide a table.
    Right now i found a solution to hide table if it got the popular sign.
    Seems like “display:none;” only wanna hide it, if it got that class.

    http://sugardeals.dk/medlems-konto/medlemsskab-niveaur/

    With the Lightbox, i still havent figured out, how i can make the pictures pop out like a ordinary lightbox.

    Right now im trying to figure out, if i can make “header tabs” with Specific albums to show. Since all users have the same albums.(got some custom code from rtMedia, that creates 2 custom albums, in diffrent privacy levels(pro version))

    #39265
     webpixel
    Participant

    http://sugardeals.dk/medlems-konto/medlemsskab-niveaur/
    The one in the midldle is with “display:none; but taking up space.

    #39272
     webpixel
    Participant

    Here is the css i use to hide the middle table:

    .membership .pricing-table.popular {
    display:none;
    }

    #39524
     Abe
    Keymaster

    That page doesn’t work anymore http://sugardeals.dk/medlems-konto/medlemsskab-niveaur/

    about the lightbox we replace it with the default lightbox from rtmedia

    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.

    #39526
     Abe
    Keymaster

    so the levels can easily be hidden with this sample CSS where the level ID to hide is 3

    COPY CODE
    
    .pricing-table.kleo-level-3 {
        display: none !important;
    }
    
    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.

    #39590
     webpixel
    Participant

    Your code does not work when i add it to my child CSS.

    Like i said it only hides the table that is marked as popular, if it does not have that class it just ignores the css

    #39591
     webpixel
    Participant

    This code can hide it. Without useing the “popular” class.
    But still takes up space.

    COPY CODE
    #main-content > div.row.text-center > div:nth-child(2) > div > div > div:nth-child(1) > ul{
    display:none; !important;
    }
    #39632
     Abe
    Keymaster

    your code has an error,
    is not display:none; !important;
    correct: display:none !important;

    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.

    #39633
     webpixel
    Participant

    I just wrote it wrong here on the web.

    #main-content > div.row.text-center > div:nth-child(2) > div > div > div:nth-child(2) > ul{
    display:none !important;
    }

    is what i use. Still takes space

    #39636
     Abe
    Keymaster

    I don’t know anymore what you want to hide and what page 🙂 I gave you an example but you are using something else…

    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.

    #39637
     webpixel
    Participant

    This is the page:
    http://sugardeals.dk/konto/medlemskab-niveauer/

    Right now im hiding it in the middle becuase it looks best this way, if i cant hide it completly(so it takes no space)

    Your code does not work after i put it in my Child css file

Viewing 40 posts - 1 through 40 (of 41 total)

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

Log in with your credentials

Forgot your details?