This topic has 23 replies, 3 voices, and was last updated 9 years by nusolutions.
-
Author
-
December 31, 2014 at 04:03 #40757nusolutionsParticipant
I’m just not getting these instructions! So here’s yet another post on adding tabs next to member profiles.
I have the child theme selected, I’ve gone into my profile and answered some of the fields, and can see these in the profile.
I notice that if I add some photos via RTMedia the images appear in the profile area.
I want to add three tabs:
About me
Favorites
PhotosI have the following Field Groups created. These are their EXACT names:
About (Primary) There’s Field Group labeled Base as I’ve opted to call it About.
Favorites
RTMedia – Not sure the relevance of this since I see the photos in the profile area.
Photos – Also not sure on whether this Field Group is even needed.The Favorites group contains a set of multi-line text areas: favorite foods, music, etc. So in reading I see that I’m to use cite & citetab for a lot of text.
In viewing all posts on this subject including the one from Dec 10, 2014 I add the following code to the functions.php file located in the child theme:
COPY CODE<?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 */ //Profile tabs add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['About'] = array( 'type' => 'regular', 'name' => __('About Me', 'kleo_framework'), 'group' => 'About', 'class' => 'regulartab' ); $bp_tabs['Favorites'] = array( 'type' => 'cite', 'name' => __('My Favorites', 'kleo_framework'), 'group' => 'Favorites', 'class' => 'citetab' ); /* 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' ); } } ?>
Nothing appears. Not sure what I’m missing!!
uuuggghhh!
Any responses appreciated.
January 1, 2015 at 12:12 #40837LauraModeratorHello, please tell me what are your field groups name that you want to show 🙂
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 🙂
January 1, 2015 at 18:49 #40845nusolutionsParticipantI want to show
About Me
My Favorites
My PhotosJanuary 2, 2015 at 08:30 #40873LauraModeratorHello, you need to add a – for each space of the name in :
COPY CODE<strong>$bp_tabs['About'] = array(</strong> 'type' => 'regular', 'name' => __('About Me', 'kleo_framework'), 'group' => 'About', 'class' => 'regulartab' );
If your field group names About Me (in admin area) then you should have it like:
COPY CODE$bp_tabs['About-Me'] = array( 'type' => 'regular', 'name' => __('About Me', 'kleo_framework'), 'group' => 'About Me', 'class' => 'regulartab' );
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 🙂
January 2, 2015 at 09:48 #40877nusolutionsParticipantNope! Keeping it simple and only using About, Favorites, Photos. I’ve attached a screenshot of my profile fields and pasted code from child functions page below. Please tell me what specifically needs to be changed as I still can’t get this to work.
COPY CODE<?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 */ //Profile tabs add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['About'] = array( 'type' => 'regular', 'name' => __('About', 'kleo_framework'), 'group' => 'About', 'class' => 'regulartab' ); $bp_tabs['Favorites'] = array( 'type' => 'cite', 'name' => __('Favorites', 'kleo_framework'), 'group' => 'Favorites', 'class' => 'citetab' ); /* 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' ); } } ?>
tia
January 2, 2015 at 09:50 #40878nusolutionsParticipantScreenshot of profile fields.
Attachments:
You must be logged in to view attached files.January 2, 2015 at 17:25 #40883LauraModeratorHello, can you share with me your login details so i can check it out? Also ftp
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 🙂
January 2, 2015 at 19:08 #40889LauraModeratorHello, what is your ftp server?
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 🙂
January 2, 2015 at 19:09 #40890LauraModeratorAnd btw you have set kleo theme, not sweetdate child, this is sweetdate forum.
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 🙂
January 2, 2015 at 20:10 #40892LauraModeratorHello, i’m sorry but in order to login to your ftp i need the ftp server, i tried http://ftp.yoursite.com and also yoursite.com, but none work
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 🙂
January 2, 2015 at 20:52 #40899LauraModeratorHello, the user you gave me have only access to .ftpquota
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 🙂
January 2, 2015 at 21:05 #40901LauraModeratorHello, it seems that your site is not getting the functions form child theme, because i tried to create an error but nothing happened, please check that the site child theme is the same as the one you have the functions in.
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 🙂
January 6, 2015 at 12:40 #41090nusolutionsParticipantAny more thoughts as to why I can’t get this to work on this site?
tia
January 7, 2015 at 15:45 #41165AbeKeymaster@nusolutions I can’t connect over FTP. Can you please provide the right credentials and server?
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.January 9, 2015 at 02:27 #41425AbeKeymasterpfiu 🙂 finally fixed. It will be included in next update and it was related to multisite.
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.