-
Author
-
December 10, 2014 at 15:24 #38426webpixelParticipant
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”Thanks for helping me out again 🙂
December 10, 2014 at 18:35 #38452LauraModeratorHello, 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 solutionLaura 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.December 10, 2014 at 18:49 #38462webpixelParticipantThank 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.December 10, 2014 at 18:49 #38463webpixelParticipantSorry forgot to say that i added some more questions.
December 10, 2014 at 20:29 #38472LauraModeratorHello, 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 folderCOPY 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 solutionLaura 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 🙂
December 10, 2014 at 23:34 #38481webpixelParticipantHello.
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 🙂
December 11, 2014 at 00:18 #38483LauraModeratorHello,
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 solutionLaura 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 🙂
December 11, 2014 at 00:52 #38487LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 00:59 #38492webpixelParticipantHey 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
December 11, 2014 at 01:10 #38496LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 01:12 #38497webpixelParticipant1. 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.
December 11, 2014 at 01:18 #38498LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 01:34 #38500webpixelParticipantHello.
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
December 11, 2014 at 01:41 #38501LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 02:24 #38504LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 02:52 #38506webpixelParticipantadded here:
nothing happen to the fields, still there
December 11, 2014 at 03:06 #38511LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 14:00 #38545LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 14:08 #38548LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 14:42 #38570webpixelParticipantI have no cache enabled in my system.
Just installed this theme fresh on my system.
Havent downloaded any cache.December 11, 2014 at 14:58 #38588webpixelParticipantAdded a few hacks, to the funktion.php – But that got nothing to do with the style.css.
December 11, 2014 at 16:33 #38632webpixelParticipantHelp :S
My lightbox(not working) and style.css on Child theme aint picking up styles.December 11, 2014 at 18:31 #38650LauraModeratorHello, 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 solutionLaura 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 🙂
December 11, 2014 at 18:41 #38654webpixelParticipantOkay 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.December 11, 2014 at 19:11 #38657LauraModeratorHello, 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 solutionLaura 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 🙂
December 16, 2014 at 02:23 #39239AbeKeymasterso 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.December 16, 2014 at 10:37 #39264webpixelParticipantHey @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))
December 16, 2014 at 10:41 #39265webpixelParticipanthttp://sugardeals.dk/medlems-konto/medlemsskab-niveaur/
The one in the midldle is with “display:none; but taking up space.December 16, 2014 at 11:49 #39272webpixelParticipantHere is the css i use to hide the middle table:
.membership .pricing-table.popular {
display:none;
}December 18, 2014 at 00:45 #39524AbeKeymasterThat 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.December 18, 2014 at 00:47 #39526AbeKeymasterso 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.December 18, 2014 at 17:46 #39590webpixelParticipantYour 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
December 18, 2014 at 17:56 #39591webpixelParticipantThis 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; }
December 18, 2014 at 20:42 #39632AbeKeymasteryour 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.December 18, 2014 at 20:50 #39633webpixelParticipantI 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
December 18, 2014 at 20:53 #39636AbeKeymasterI 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.December 18, 2014 at 20:55 #39637webpixelParticipantThis 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
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.