-
Author
-
November 8, 2013 at 12:34 #6267frien337Participant
Hello Everyone,
I need some help with the profile fields/tabs that display next to the profile picture. I have managed to add a custom tab to the profile page. My custom tab shows perfectly fine when viewing the default wall page of the profile, however, if I view the profile page, all of the About Me tabs are pulled in and displayed next to the profile image.
Can you tell me how I can stop this from happening? I only want my custom tab to show when viewing the profile page.
Thanks,
RyanNovember 8, 2013 at 21:31 #6294DouweboschmaParticipantHi, just an idea. I am not a pro but it is a suggestion. Did you try to set “Per-Member Visibility” of all the options in the base tab to “Nobody”? It might make the label disappear.
November 8, 2013 at 21:36 #6296adamParticipantthis or something like it is in your functions.php, right?
COPY CODEfunction kleo_my_custom_tab() { global $bp_tabs; $bp_tabs['base'] = array( 'type' => 'regular', 'name' => apply_filters('kleo_extra_tab2',__('About Me', 'kleo_framework')), 'group' => 'About Me', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('Our photos', 'kleo_framework'), 'class' => 'mySlider' ); } /* Bp-Album tab - only if plugin installed */ elseif (function_exists('bpa_init') AND sq_option('bp_album', 1) == 1) { $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('Our Photos', 'kleo_framework'), 'class' => 'mySlider' ); }
just delete this part:
COPY CODE$bp_tabs['base'] = array( 'type' => 'regular', 'name' => apply_filters('kleo_extra_tab2',__('About Me', 'kleo_framework')), 'group' => 'About Me', 'class' => 'regulartab' );
November 8, 2013 at 21:40 #6297adamParticipantWait, I think you’re talking about the Profile View under Profile on the nav. If so, not sure. Sorry 🙂
November 9, 2013 at 01:59 #6316SQadminKeymasterHi @frien337,
Since we all understood different thing, try to exemplify with some screen-shotsHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 11, 2013 at 13:19 #6402frien337ParticipantHello Everyone,
Thanks for all of your suggestions. Please have a look at what I am trying to do by refering to these screenshots.
@Douweboschma: I had a look at doing that but I can’t set the display option to “nobody” for some fields, like the username.
@adam: I gave that a try too but it also did not work for me.Everything works fine when I view the wall tab and only when I click on the profile tab do the additional profile fields show. If there is no way to turn off specific fields, would you be able to tell me how I can disable all of them from showing? If I can disable all of them, then I should be able to manually add in the required fields using “bp_member_profile_data( ‘field=About Me’ );”
I did look at the member-header.php file and all that I can see is the avatar, title and matchmaking code. unless I am missing something…Thanks and look forward to your responses.
RyanNovember 12, 2013 at 15:58 #6488adamParticipantit looks like your About Me fields are showing up like if it was the Looking For section. Have a look at this:
https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
my guess is that the About Me tab you created was set up with ‘type’ => ‘cite’, when it should be ‘type’ => ‘regular’, and ‘class’ => ‘citetab’ when it should be ‘class’ => ‘regulartab’.November 12, 2013 at 17:53 #6492frien337ParticipantThanks Adam! However, that has not worked for me. Let me maybe explain this a bet better. I have added the following code to my child theme’s functions.php file:
add_action('after_setup_theme','kleo_my_custom_tabs');
function kleo_my_custom_tabs()
{
global $bp_tabs;
$bp_tabs = array();
$bp_tabs['looking-for'] = array(
'type' => 'cite',
'name' => __('About Me', 'kleo_framework'),
'group' => 'About Me',
'class' => 'citetab'
);}
I left the cite and citetab in because I prefer the way in which it displays the field on the front end – regular seems to remove the styling and rather leaves it with a standard look. Anyway, the above code works perfectly when I view the profiles activity page (e.g.: http://www.website.com/members/user/activity/) and it pulls in the “About Me” field group just fine.
However, when I click on profile (http://www.website.com/members/user/profile/) it shows the “About Me” field group as well as EVERY field from other field groups (username, country, borthdate, etc, etc.). The screenshots</a from before highlight this issue.
So, how can I stop all of these fields being pulled into my profile page (http://www.website.com/members/user/profile/) and only display one field group?
Thanks,
RyanNovember 12, 2013 at 20:14 #6497SQadminKeymasterIt doesn’t matter on what page you are on a profile page, the tabs will show the same thing. You can control what profile group to show using this topic https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
Please provide a link to your site to better understand your issue.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 13, 2013 at 11:50 #6563frien337ParticipantHi Sqadmin,
Unfortunately that doesn’t work for me 🙁 I have sent you an emailw ith my FTP details.
Thanks,
RyanNovember 16, 2013 at 14:45 #6764frien337ParticipantHello, I thought I’d let everyone know that this issue was caused by a plugin conflict and works fine once the plugin was deactivated 🙂
November 16, 2013 at 17:29 #6767adamParticipantlet us know which plugin if you can because we might want to avoid it. thanks.
November 18, 2013 at 11:51 #6845frien337ParticipantSure 🙂 The plugin is “BP XProfile WordPress User Sync“. With that enable, it pulled through every field and added them to my profile header – it did not to the same for the activity wall, messages and friend pages.
-
AuthorPosts
The topic ‘Remove About Me Fields from Profile View’ is closed to new replies.