-
Author
-
January 16, 2014 at 11:00 #9791hugblueParticipant
Here is a profile that is finished 100%.
But there is no info shown.I needed to change the profile fields inside of buddypress.
Because WPML cannot translate what is in the database.I did try to understand the : functions.php
And i am not sure if this could be the reason.
So why is the info not being shown ?
Here is 1 pictures :
http://www.flickr.com/photos/113910914@N05/11977523445/January 18, 2014 at 17:50 #9884AbeKeymasterHello,
Please see this topic https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-imageYou need to change the group name with your new one
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 18, 2014 at 20:01 #9893hugblueParticipantThz ..
I have seen this link you showed here.
But i am not sure what should be altered.January 18, 2014 at 20:10 #9895hugblueParticipantI just changed some of the text in functions.php
But it gave no result and it is still the same.I cannot see the logic in how it should be done.
January 20, 2014 at 17:33 #9979AbeKeymasterWell give me your group names as in Users – Profile fields that you want to show there and I will adapt the code to show you
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 20, 2014 at 20:00 #9988hugblueParticipantThanks alot Abe ..
These are the group names.
Лични данни (About me)
Обобщение за мен (Myself Summary)
Търся (Looking for)
Стил на живот (Lifestyle)
Физически данни (Physical)I renamed the groups to these because it couldnt not work with WPML.
So i needed both language in the same string.January 21, 2014 at 13:51 #10007hugblueParticipantHave you looked at it Abe ?
I really need this help to fix it.Thz.
January 23, 2014 at 11:07 #10089hugblueParticipantCan someone guide me in how this works :
These are the new names :
Лични данни (About me)
Обобщение за мен (Myself Summary)
Търся (Looking for)
Стил на живот (Lifestyle)
Физически данни (Physical)This is my code right now :
<?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
*/
//customize profile tabsadd_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' => __('Looking for', 'kleo_framework'),
'group' => 'Търся (Looking for)',
'class' => 'citetab');
$bp_tabs['base'] = array(
'type' => 'regular',
'name' => __('About me', 'kleo_framework'),
'group' => 'Base',
'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');
}
}
Thz
January 23, 2014 at 11:11 #10090hugblueParticipantI did try change some of the names.
But nothing did happen.January 23, 2014 at 12:12 #10092hugblueParticipantSo after every message i post ..
I would have to wait 48 hour +++ to get a answer ?Just asking.
After all i did pay for this theme.
It would be easier if you just told me if you had no time.. OR …
January 23, 2014 at 12:15 #10093hugblueParticipantBut i will look at the guide again and see if i can figure it out :
https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
With a little luck. Maybe i could.
January 23, 2014 at 14:07 #10100AbeKeymasterHey, Sorry for the delay. I will get back right away with the code for you
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 23, 2014 at 16:44 #10119AbeKeymasterHere is the code:
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' => "Лични данни (About me)", //this is the showed tab name 'group' => 'Лични данни (About me)', // this must be the same as the profile fields group name 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => "Обобщение за мен (Myself Summary)", 'group' => "Обобщение за мен (Myself Summary)", 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => "Търся (Looking for)", 'group' => "Търся (Looking for)", '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' ); } }
For it to work the names added above in the “group” attribute must exactly match the profile fields Group as in Users – Profile fields(even a white space after the name)
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 23, 2014 at 18:38 #10128hugblueParticipantHi abe ..
I inserted the code and double checked for group names, that they were correct.
But it gives no result.
It is still the same. Sorry.
January 23, 2014 at 18:49 #10131hugblueParticipantHmm
I tried to remove the cyrillic characters. Then it worked perfectly.
So Abe. Is there any way to make it accept toher types of characters ???
And im so happy for the code from you.
Just need this last thing to be ok..
And super many thanks.
January 23, 2014 at 19:13 #10132hugblueParticipantI changed all to english characters except for :
Физически данни (Physical)
So you can see all is functioning except for this one.When the page is switched to Bulgarian.
All text in cyrillic can be showed.So is there a way for it to accept cyrillic in the group names ?
Is a little strange. That in some places it works perfect.
And in some other areas it soesnt work.January 23, 2014 at 19:17 #10133hugblueParticipantAnd another thing ..
All the translations with WPML, when translated :
Name, Birthday, Looking for a, I am a, Marital status, City. CountryEverything can be taken from WPML when swithcing language.
Just not the group names.
January 24, 2014 at 11:49 #10160AbeKeymasterHi, Try leaving your name of the groups in English. Then modify the below code to match your group names and add it to the main theme functions.php at the end just before the ending ?> line
After that this strings should appear in WPML string translation
You’ll notice I have wrapped the name attribute in a translation tag __() and leaved the group attribute in the english name just like it is added in buddypress users profile fieldsCOPY 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' => __("About me","kleo_framework"), //this is the showed tab name 'group' => 'About me', // this must be the same as the profile fields group name 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __("Myself Summary", "kleo_framework"), 'group' => "Myself Summary", 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __("Looking for","kleo_framework"), 'group' => "Looking for", 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __("Lifestyle","kleo_framework"), 'group' => "Lifestyle", 'class' => 'regulartab' ); $bp_tabs[] = 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' => __('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.January 24, 2014 at 12:36 #10168hugblueParticipantWow .. I am amazed .. Works so beautifully.
– – – – –
Now .. just a little last thing in this area.
For the members the text swith perfect with WPML.
– – – – –
But in buddypress under :
profile / editHere the text is still in english.
And i cannot find these under WPML.So what is the solution here ?
I have added a picture :
http://www.flickr.com/photos/113910914@N05/12115458315/January 24, 2014 at 12:46 #10171hugblueParticipantOr i mean.
I couldnt dind extra strings for these.
And in WPML they are translated.
But do not show up translated to Bulgarian.
As you can see in the picture.January 24, 2014 at 13:01 #10178AbeKeymasterWOW great 🙂
Unfortunately those are generated by Buddypress. please refer to WPML forum and maybe they have a solution
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 topic ‘No info is shown’ is closed to new replies.