-
Author
-
December 19, 2015 at 05:12 #94233VinzentParticipant
Hi.
I bbpress of keymaster, moderator of the blue label does not display.
Also, the blue border does not appear on the built-in posts.
If the theme options, please pronounce.
Thank you.
Attachments:
You must be logged in to view attached files.December 20, 2015 at 04:35 #94347LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! 🙂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 🙂
December 22, 2015 at 19:57 #94931RaduModeratorHi idaeback
Add this function to your wp-content/themes/kleo-child/functions.php
COPY CODEadd_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' ); function ntwb_bbpress_custom_role_names() { return array( // Keymaster bbp_get_keymaster_role() => array( 'name' => 'My Custom Keymaster Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) ), // Moderator bbp_get_moderator_role() => array( 'name' => 'My Custom Moderator Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) ), // Participant bbp_get_participant_role() => array( 'name' => 'My Custom Participant Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) ), // Spectator bbp_get_spectator_role() => array( 'name' => 'My Custom Spectator Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() ) ), // Blocked bbp_get_blocked_role() => array( 'name' => 'My Custom Blocked Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() ) ) ); }
Let me know
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 23, 2015 at 04:01 #94997VinzentParticipantHi.
Does the way you have given you only support English?
Look at the attached images.Anything that appears this way the name I use another language?
For example,
// Keymaster bbp_get_keymaster_role () => array (‘name’ => ‘키마스터 (= Korean to keymaster)’, ‘capabilities’ => bbp_get_caps_for_role (bbp_get_keymaster_role ())),And how blue border is a sticky topic on the forum?
Second attachments like images.Attachments:
You must be logged in to view attached files.December 23, 2015 at 16:36 #95087VinzentParticipantHi.
sticky topic was addressed.
Kleo is super sticky topic only display a blue border.
I also wanted a sticky topice blue border.
Anyway, the problem is solved twice.Anything on how to change once the Keymaster in another language?
Es as well as with the blue label in the right.
Let me find a way.December 23, 2015 at 19:16 #95121RaduModeratorHi,
You should replace the function with the new code function
COPY CODEadd_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' ); function ntwb_bbpress_custom_role_names() { return array( // Keymaster bbp_get_keymaster_role() => array( 'name' => __('My Custom Keymaster Role Name', 'kleo_framework'), 'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) ), // Moderator bbp_get_moderator_role() => array( 'name' => __('My Custom Moderator Role Name', 'kleo_framework'), 'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) ), // Participant bbp_get_participant_role() => array( 'name' => __('My Custom Participant Role Name', 'kleo_framework'), 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) ), // Spectator bbp_get_spectator_role() => array( 'name' => __('My Custom Spectator Role Name', 'kleo_framework'), 'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() ) ), // Blocked bbp_get_blocked_role() => array( 'name' => __('My Custom Blocked Role Name', 'kleo_framework'), 'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() ) ) ); }
Now the strings can be translated, if you use a translation plugin like loco translate you should rescan the kleo child for new strings, after that you will be able to translate string for any lang you want.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 24, 2015 at 03:57 #95174VinzentParticipantHi,
I tried but did not get satisfactory results.Look at the attached images.
It captured all the processes.01. wp-content / themes / kleo-child / functions.php additional code.
02. Translated from loco-translate.
03. kleo-child folders stored in the translation file
04. There is no change.Please check.
Attachments:
You must be logged in to view attached files.December 24, 2015 at 23:00 #95232RaduModeratorHi,
Can you please provide the admin credentials and i will check this on 26 December.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 28, 2015 at 12:57 #95404RaduModeratorHi,
Can you please provide me FTP details, i’ve made some changes to that function from kleo-child/functions.php and now it says 500 error.
Sorry for this.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 28, 2015 at 17:12 #95434RaduModeratorHi,
Now the translation works.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 28, 2015 at 17:29 #95436VinzentParticipantHi. Radu.
It is thanks to your hard work.
I differ with the desired results.
Confirm the image.
Cheers
Attachments:
You must be logged in to view attached files.December 29, 2015 at 13:45 #95550RaduModeratorHi,
First time when you showed me it was a simple forum not a forum assigned to a group.
Add this css to your wp-admin -> theme options -> general settings -> quick css
COPY CODE#bbpress-forums div.bbp-reply-author .bbp-author-role, #bbpress-forums div.bbp-reply-author .bbp-author-role { width: 120px; font-style: normal; font-size: 9px; font-weight: bold; position: absolute; z-index: 10; text-align: center; text-transform: uppercase; line-height: 26px; top: 12px; right: -34px; margin: 0; transform: rotate(45deg); -webkit-transform: rotate(45deg); background: #00B9F7; color: #fff; }
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.