Forum Replies Created
-
Author
-
adamParticipant
try this:
COPY CODEfunction my_remove_activity() { global $bp; $bp->bp_nav['activity'] = false; } add_action( ‘bp_setup_nav’, ‘my_remove_activity’ );
adamParticipanthey @JohnDoe – i’d like to do the same thing you are. were you able to figure it out? i’m having trouble with it…I can’t remove “Profile Details” and am unsure how to add fields that aren’t in the Base group.
adamParticipanthey – make sure you don’t already have a function called my_setup_nav in your functions.php file.
also, check out this topic if you haven’t already:
https://archived.seventhqueen.com/forums/topic/hide-profile
i share my code on there that removes the activity.adamParticipantI agree that the register pop-up modal could really use a username availability checker 🙂 I bypass the modal though and have it set so that when someone clicks the “Sign Up” button it takes them right to the registration page instead. that way I don’t have to deal with this issue. if the username is taken, it keeps all of the user inputted information and just forces you to change the username.
adamParticipant@Douweboschma check this out:
http://wordpress.org/support/topic/show-birthdate-in-registration-page-and-age-in-profile-pagei assume you’re using that plugin. you can use the code they provide in functions.php. just make sure your field name is Date of Birth on the registration, it will automatically convert it to Age on the profile.
adamParticipantadamParticipanthm not sure. it works for me with inspect element. see if you have something overriding it in your quick css.
adamParticipantCOPY 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.
adamParticipantyea i was just going to tell you i looked at your site and i think you changed that css class name. I tried
COPY CODEul#menu-sweetdate.left { margin-left: -60px; }
and it fit nicely
adamParticipantmake sure you’re using this plugin for your date of birth field:
http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/in wp/admin->t;users->profile fields make sure this is checked in the date of birth field:
“Check this if you want to show age instead of birthdate”adamParticipantadamParticipantCOPY 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 🙂
adamParticipanthey this topic should help you:
https://archived.seventhqueen.com/forums/topic/editing-header-phpadamParticipantgeomywp is the only one i’ve seen. please let me know if you get it working nicely with this theme. i’m going to spend some time on it this week and i’ll let you know if i get anywhere 🙂
adamParticipanti would LOVE this. it’s one of the most critical components for a dating or similar site and i’m sure it would get you more sales 🙂 i’m trying to use geomywp, but i haven’t figured out a proper integration just yet.
adamParticipantnot a bad point. i’ve been struggling with a way to bring the nav bar (profile, messages, friends, settings, etc.) up higher on the page so it doesn’t get lost and your idea might help accomplish this. the other idea i had was bringing the nav bar up and having the menu ajaxed somehow so that each area opens and closes nicely without shifting everything around too much. something needs to be improved from a UX standpoint. @sqadmin what do you think?
adamParticipanti solved a similar problem to this by creating a separate header.php file, which I named header2.php. I load header2.php on the homepage and every other page uses the original header.php. you can probably just remove the menu from header2.php so it doesn’t show on your homepage. i think that should work at least 🙂
adamParticipanthi @sieglufer are you talking about the social media icons (e.g. “Find us on”)? i did this really nicely by modifying footer.php and some custom css styling. shoot me an email at emailadamrose@gmail.com if you’d like me to send you my code.
adamParticipant.top-bar ul.left {
display: none;
}if you want to just hide it on the homepage and not the other pages, i suppose you can give it it’s own div class and use display: none for that one.
adamParticipantSorry – reopening. I think this fix might only work for individual profiles on the directory page. can you tell me the correct CSS for a universal fix?
adamParticipantFixed it.
I took a look at the demo CSS and realized I had to add this to my CSS:
#friendship-button-3 {
display: inline-block;
margin-right: 5px;
}#friendship-button-2 {
display: inline-block;
margin-right: 5px;
}adamParticipantThe problem I’m having is that my add friend (+) button on the member directory doesn’t look like the demo (and never did). It appears underneath the view profile button and the length spans across the whole box. How do I get it to appear to the right of the view profile button just like the demo and a small button?
adamParticipanti believe it only works for the regular register page, i’m not using the modal. it checks username availability right after they type it in. otherwise, the regular process is they have to fill in all of their information and then click the sign-up button to see if that username is available. just a matter of preferences i suppose.
adamParticipantFYI this free username availability plugin works nicely with the theme:
http://buddydev.com/plugins/bpdev-username-availability-checker/adamParticipantwill this update include search by proximity (e.g. 5 miles from member, 10 miles from member, 20 miles from member, etc)? thanks!
adamParticipantp.s. how do you get your code to show up nicely on this forum? not sure how to get that code box to appear.
adamParticipantok, i got this working. i had to delete the rel=”nofollow” and just use
< a href=”<?php bp_member_permalink(); ?>”>hope that piece of code isn’t important? 🙂
thanks @andrew!
adamParticipantfunction my_remove_profile_nav() {
global $bp;
if (!bp_is_my_profile()) {
bp_core_remove_nav_item( ‘profile’ );
}}
add_action( ‘bp_setup_nav’, ‘my_remove_profile_nav’ );adamParticipant@agentsrr – this is just a shot in the dark, but make sure the issue is that you’re not using the same function name twice in functions.php. it doesn’t allow for that.
adamParticipantHi @seiglufer – This is how I removed the entire bottom navigation in functions.php:
COPY CODEfunction 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.
adamParticipantAdd this to quick CSS and change background to any color you like:
#search-bar {
background: #FFFFFF;
}adamParticipantHi Sqadmin – I am trying to remove all tabs from member’s profiles. The only one I have not been able to remove is Album from BP-Album. My code looks like this:
function my_remove_profile_nav() {
global $bp;
if (!bp_is_my_profile()) {
bp_core_remove_nav_item( ‘album’ );
}}
add_action( ‘bp_setup_nav’, ‘my_remove_profile_nav’ );But, I don’t think ‘album’ is correct. I tried search through the BP-Admin files and I see ‘Album’, ‘bp-album’ but that doesn’t seem to work together or individually. What should the name be?
Thanks!
-
AuthorPosts