-
Author
-
April 7, 2014 at 17:47 #14522iulianolaruParticipant
Good day,
I have just seen that in a profile, the information about the user ( ex: smoker or not ) have dissapered and the photo block from rtmedia is misaligned.Also, i have just tried to setup the profile information for another account and likewise, it does not appear on the profile.
What is there to do?
April 9, 2014 at 09:17 #14631iulianolaruParticipantThis is a serious problem. I would very much appreciate help from anyone. Thank you in advance
April 9, 2014 at 21:05 #14747AbeKeymasterWhere should that info appear? Screenshot please. If they should appear on the right of the profile maybe you changed your profile field group name and you should check: 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 solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.April 9, 2014 at 21:08 #14748iulianolaruParticipantThe actual profile tabs do not appear and i haven’t made any modifications besides updating to the latest version. Is it possible for you to access the admin and further check ?
EDIT: Let me understand. If i change the user profile fields, tabs etc.. i should also further update a piece of code? Please instruct …
April 9, 2014 at 21:11 #14752AbeKeymasterIf you change a Group name then yes you need to change the Group name that shows to the right of the image. See my link above
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.April 14, 2014 at 18:41 #15060iulianolaruParticipantHey, i can’t seem to get this working. I will paste my full sweetdate-child/functions.php so you can see maybe there’s something wrong in it.
The name of the tabs are the names of the actual profile field groups.
Thank you in advance
COPY CODE/* my changes to profile tabs */ add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['Op zoek naar'] = array( 'type' => 'regular', 'name' => __('Op zoek naar', 'kleo_framework'), 'group' => 'Op zoek naar', 'class' => 'regulartab' ); $bp_tabs['Basis informatie'] = array( 'type' => 'regular', 'name' => __('Basis informatie', 'kleo_framework'), 'group' => 'Basis informatie', 'class' => 'regulartab' ); $bp_tabs['Physical'] = array( 'type' => 'regular', 'name' => __('Physical', 'kleo_framework'), 'group' => 'Physical', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('Fotos', 'kleo_framework'), 'class' => 'mySlider' ); } } function kleo_membership_info_guest() { global $membership_levels,$current_user; if (! $membership_levels) { return; } if (!bp_is_my_profile()) { $membership = pmpro_getMembershipLevelForUser(bp_displayed_user_id()); if ($membership) { echo '<span class="label radius pmpro_label">'.$membership->name.'</span>'; } else { echo '<span class="label radius pmpro_label">'.__("No membership",'kleo_framework').'</span>'; } } } add_action('kleo_bp_after_profile_name', 'kleo_membership_info_guest'); /* 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*/ } ?>
April 15, 2014 at 18:01 #15191AbeKeymasterYour function kleo_my_custom_tabs() is missing:
return $bp_tabs;from the end of the function.
Also the group => “Name” must match your defined groups name in Users – Profile fieldsHi 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.April 21, 2014 at 18:22 #15598iulianolaruParticipantIt seems i am doing something wrong. Abe, can you please update the code to your recommendations ? The defined group names are matching.
Thank you in advance
April 23, 2014 at 21:37 #15833AbeKeymastermake sure to have the child theme activated. Give me your Group names exactly how they are defined in Users – Profile fields
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.May 13, 2014 at 14:09 #17731iulianolaruParticipantI have tried in several ways and i can’t seem to make it work Abe.
My group names are:
1. Basis informatie (Primary)
2. Over mijzelf
3. Op zoek naar
4. Lifestyle
5. PhysicalThank you in advance Abe.
May 15, 2014 at 20:51 #18058AbeKeymasterThis should be the code. make sure the child theme is active. Also the names provided but be exactly the group names as in USers – Profile fields
COPY CODE//my changes to profile tabs add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs[] = array( 'type' => 'regular', 'name' => 'Basis informatie (Primary)', 'group' => 'Basis informatie (Primary)', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => 'Over mijzelf', 'group' => 'Over mijzelf', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => 'Op zoek naar', 'group' => 'Op zoek naar', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => 'Lifestyle', 'group' => 'Lifestyle', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => 'Physical', 'group' => 'Physical', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('My work', '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---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.May 16, 2014 at 20:00 #18176iulianolaruParticipantAbe, the code works while having the child theme active but when i activate the necessary theme, the code does not work.
What is there to do ?
May 20, 2014 at 14:49 #18372AbeKeymasterWell, you need to keep the child theme active since it works in conjunction with the parent theme.
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.May 20, 2014 at 15:43 #18387AbeKeymasterI will try and check but you said: “Abe, the code works while having the child theme active but when i activate the necessary theme, the code does not work.”
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.May 20, 2014 at 15:50 #18388AbeKeymasterPlease check your profile /leden/klaver2/profile/ since it displays the fields. Users must save their profile so the tabs to appear…
This forum is intended to provide technical support so please for any customizations beside the issues and bugs that can occur please hire a developer to help you with custom development.
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.May 20, 2014 at 16:04 #18392iulianolaruParticipantWhy is it that when i keep the child theme active, the design gets scrambled ?
May 20, 2014 at 18:53 #18400AbeKeymasterProbably a code you added the wrong way or some css added. Try to remove the theme and re-upload it maybe you did something wrong with the theme location.. can’t say
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. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.