-
Author
-
September 4, 2013 at 23:52 #2278habeshaluvParticipant
I don’t have profile tabs to the right of member profile pictures for some reason. I have already edited them in sweetdate/buddypress and user/profile fields…is there anything that is recommended?
September 5, 2013 at 18:30 #2316SQadminKeymasterHi,
If you have renamed the default profile field groups from WP Admin -> Users -> Profile fields then please follow this topic to enable whatever field group you want to show there
https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-imageHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 5, 2013 at 18:33 #2317habeshaluvParticipantHey I sent you my admin and ftp login info through email because i tried following that already, but I still had issues. email was from habeshaluv@gmail.com
Thanks!
I tried looking through the forum before posting here, but still not working!September 7, 2013 at 13:39 #2441habeshaluvParticipantThanks for the support!! You guys got my 5 stars!!
September 8, 2013 at 11:21 #2460SQadminKeymasterThank you very much.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 3, 2013 at 00:17 #3757JosiahParticipantI am having a similar issue. “About Me” and “My Photos” are the only tabs showing. I am viewing a profile that does have all of the profile fields filled out.
October 3, 2013 at 03:24 #3766SQadminKeymasterHi, Please follow this topic and should work fine: https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 6, 2013 at 23:51 #3929JosiahParticipantThat does not help me. I am trying to add “Profile Fields” tabs. I have four tabs total:
1. Base
2. Summary
3. Physical
4. LocationIn my functions.php file I do not see anything about tabs. I do have the child theme active. Here is the functions.php
<?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
*/add_action('after_setup_theme','kleo_my_actions');
function kleo_my_actions()
{
/* disable matching on member profile */
remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');/* Replace the heart over images */
add_filter('kleo_img_rounded_icon', 'my_custom_icon');/* Replace the heart from register modal */
add_filter('kleo_register_button_icon', 'my_custom_icon_register');
}/* Replace the heart with a camera icon function */
function my_custom_icon () {
return 'camera';
}/* Replace the heart from register modal with a user icon function */
function my_custom_icon_register () {
return 'user';
}/* 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*/
}
add_action('bp_init','bpdev_remove_bp_pre_user_login_action');
function bpdev_remove_bp_pre_user_login_action(){
remove_action( 'pre_user_login', 'bp_core_strip_username_spaces' );
}//add a filter to invalidate a username with spaces
add_filter('validate_username','bpdev_restrict_space_in_username',10,2);
function bpdev_restrict_space_in_username($valid,$user_name){
//check if there is an space
if ( preg_match('/\s/',$user_name) )
return false;//if myes, then we say it is an error
return $valid;//otherwise return the actual validity
}?>
October 8, 2013 at 00:15 #3959SQadminKeymasterFollowing the topic you should end you adding this to sweetdate-child/functions.php
COPY CODEadd_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => __('Base', 'kleo_framework'), 'group' => 'Base', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __('Summary', 'kleo_framework'), 'group' => 'Summary', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __('Physical', 'kleo_framework'), 'group' => 'Physical', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __('Location', 'kleo_framework'), 'group' => 'Location', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('My 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' ); } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.