This topic has 15 replies, 3 voices, and was last updated 8 years by Vinzent.

  • Author
  • #94233
     Vinzent
    Participant

    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.
    #94347
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #94774
     Vinzent
    Participant

    Hi Laura
    When possible answer to my question?

    #94931
     Radu
    Moderator

    Hi idaeback

    Add this function to your wp-content/themes/kleo-child/functions.php

    COPY CODE
    
    
    add_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 solution
    #94997
     Vinzent
    Participant

    Hi.

    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.
    #95087
     Vinzent
    Participant

    Hi.
    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.

    #95121
     Radu
    Moderator

    Hi,

    You should replace the function with the new code function

    COPY CODE
    
    add_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 solution
    #95174
     Vinzent
    Participant

    Hi,
    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.
    #95232
     Radu
    Moderator

    Hi,

    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 solution
    #95239
     Vinzent
    Participant
    This reply has been set as private.
    #95404
     Radu
    Moderator

    Hi,

    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 solution
    #95412
     Vinzent
    Participant
    This reply has been set as private.
    #95434
     Radu
    Moderator

    Hi,

    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 solution
    #95436
     Vinzent
    Participant

    Hi. 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.
    #95550
     Radu
    Moderator

    Hi,

    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
    #95555
     Vinzent
    Participant

    Awesome! Radu!

    Please forgive me.

    I did not get to speak English well was to confuse you.

    Thank you very much!

    Regards.

Viewing 16 posts - 1 through 16 (of 16 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?