-
Author
-
January 7, 2014 at 18:56 #9335eple0030Participant
Dear Abe,
I wish you a happy new year and congrat for this brilliant theme! I do not regret my purchase!
However, I have a fews open points. Would you mind helping me with them. Thanks a lot in advance!1. I like a lot your BP extended profile menu. Unfortunatelly, i couldn’t customize the 2 profiles menu « base » and « looking for » Also, when i use the theme in multiple language (through WPLM plugin), it is the same : it does not appear. —> Could you tell how to fix this?
I have read related posts on the forum and tried to change the function file in the child theme but it seems the code i tried didn’t work
Basically, i would like to show 4 tabs:
“Base” , that i renamed A propos
« Bio » group
« Concept » group
And the images2. My wordpress site will mainly propose events. My main plugin is « Events manager » which integrates perfectly with your theme and Buddypress (a new tab « events » is created in BP menu) —> Is there a way to customize the « profile» button (next to log out), so that this « events » link can be added under « Settings » in the drop down list? How?
Once again, I know this is a customization linked to a 3rd party plugin, but i guess you can very easily provide me the instructions3. I love the red/pink notification button on the “profile » button that show new messages. —> Is there a way to add a similar button to display BP other notifications ? How?
4. This is more a nice to have: On a post, when clicking on the post author, it redirects to the author post archives. it is possible to make it redirect to the BP profile menu of the post author? In my opinion, this enhance BP features
In terms of future release, if i may suggest some features that could make the theme even more awesome:
a. Let users choose themselves a background image in their buddy press header (similar to Facebook cover images)
b. offer possibilities to write ratings / review on the BP user profiles (i know a plugin offer this feature) and display the ratings summary on the member directory.
c. Provide geolocalisation, which could look like « sabai directory » pluginThank you so much in advance!
Etienne
January 9, 2014 at 00:29 #9405AbeKeymasterHi and thank you very much.
1. Please add this code to sweetdate-child/functions.php to customize those tabs so they appear fine in multilingual
COPY CODE//customize profile tabs 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' => __('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' ); } }
2. Also add this code to the same location and customize it with proper link if its the case
COPY CODE//My custom header submenu item add_filter('header_profile_dropdown','remove_activity_submenu'); function remove_activity_submenu($menu) { $menu['event'] = '<li><a href="' . bp_loggedin_user_domain().'events/">'. __("Events", "buddypress").'</a></li>';; return $menu; }
3. You’ll see them how they were added in header.php around line 163. try to replicate them
4. In function php is the function that generates the meta section. Find get_author_posts_url and replace with bp_core_get_user_domain
Those would be nice but for b,c I think there are some plugins that can be adapted
Cheers
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 12, 2014 at 21:35 #9615AbeKeymasterHi, The best thing to do is to install directly wordpress in your language that has the wordpress translations in place and the setting in wp_config
Then to translate the theme use Codestyling localization since it is an easy plugin to use
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 13, 2014 at 17:07 #9660eple0030ParticipantHi Abe,
Thanks again for your previous answer! Please do not take into account my previous post sent 2 days ago. I ve just found today ‘wcm user language switcher’ plugin and it translate correctly the theme in the language for which i installed the language files. Weird but it works, so….
I ve still some issues, if you could help me on them
on 1. I can’t find the way to add a new tab. Here is the code i added in function.php, that display me Bio and Info tabs. But i can’t add a 3rd one called Concept. I tried to duplicate Bio paragraph and renamed it but it does not work.COPY CODE//customize profile tabs 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' => __(Bio, 'kleo_framework'), 'group' => 'Looking for', 'class' => 'citetab' ); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => __(Info, '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' ); } }
3. 3. I love the red/pink notification button on the “profile » button that show new messages. —>
I think i identified as you suggested me the code in header.php around line 163COPY CODEif( bp_is_active('messages')) { $profile_menu['messages'] = '<li><a href="' . bp_loggedin_user_domain().'messages/">'. __("Messages", "buddypress").' <small class="label">'. messages_get_unread_count().'</small></a></li>'; }
I tried to replicated it for the notifications, but i have some errors that block the theme. Do you see any errors in the following code?
COPY CODEif( bp_is_active(‘notifications’)) { $profile_menu['notifications’] = '<li><a href="' . bp_loggedin_user_domain().’notifications/">’. __("Notifications", "buddypress").' <small class="label">'. notifications_get_unread_count().'</small></a></li>'; }
b. (ratings)
There are some plugins for that, but i think some enhancements could be (in my opinion) to make them integrate like this:
Here is a webpage that looks nice to me, It is in french but you can see the idea. https://labelleassiette.fr/chef-a-domicilec. (geolocalisation)
There are some plugins for that, but integration lacks for search options. It would be great to leverage on the search option from your theme and have the results displayed on a nice map (eg. the way it is done through sabai directory)5. I added a few plugins, and every time there are some drop down box to be displayed (e.g. taxomany search fields), their length is full screen size. Instead of being few centimeter length, each box is full page length. So the display is not fine at all if i choose more than one.
One example is http://wordpress.org/plugins/wp-fullcalendar/
It integrates well on WP default theme, but not with yours. So i guess the issue is with the theme.
I guess it is minor to fix. Is there some code to modify somewhere?6. Is there a way to remove some buddy press menu depending on user profile role. Eg. a subscriber has “Activity” tab disabled?
Thanks a lot
January 15, 2014 at 13:44 #9742AbeKeymasterHi,
1. after the Bio code you should add this
COPY CODE$bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => __("Concept", 'kleo_framework'), 'group' => 'Concept', 'class' => 'citetab' );
Your profile field group name should be Concept
3. Try retyping all of the ‘ -> single quotes
If you need to extend default functionality of Sweetdate please hire a developer with PHP skills from a site like Microlancer
That is default functionality for an input to extend to the whole area it is wrapped in. You can inspect those elements in your browser and style them by CSS (again HTML/CSS knowledge required)
6. There is no such option
Cheers
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
You must be logged in to reply to this topic.