Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • in reply to: "Popular Stick image" on pricing table #50196
     ofcentral
    Participant

    may I push that again…
    this code doesnt work for me:

    COPY CODE
    .membership .pricing-table.popular:after {
        background: url("images/pop.png") no-repeat scroll center center rgba(181, 41, 41, 0);
    }

    the image is in the folder /public_html/wp-content/themes/sweetdate-child/images

    in reply to: How to change matching system #38216
     ofcentral
    Participant

    Thank you @Abe!

    URL: http://testsystem.oliver-flueckiger.ch/login
    Blog Password: F*4P8aGNp*wTbdwZ@T^^
    Username: abe-temporary
    Password: W8*5&$ty8shbf6Hs2qEX

    My functions.php:

    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
    */ 
    //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['base'] = array(
    			'type' => 'regular',
    			'name' => __('About me', 'kleo_framework'),
    			'group' => 'Base',
    			'class' => 'regulartab'
    	);
    
    	$bp_tabs['Ich suche'] = array(
    			'type' => 'regular',
    			'name' =>  __('Ich suche', 'kleo_framework'),
    			'group' => 'Ich suche',
    			'class' => 'regulartab'
    	);
    	
    	$bp_tabs['Aussehen'] = array(
    			'type' => 'regular',
    			'name' => __('Aussehen', 'kleo_framework'),
    			'group' => 'Aussehen',
    			'class' => 'regulartab'
    	);
    			
    	$bp_tabs['Meine Vorlieben'] = array(
    			'type' => 'regular',
    			'name' => __('Meine Vorlieben', 'kleo_framework'),
    			'group' => 'Meine Vorlieben',
    			'class' => 'regulartab'
    	);
    	
    	/* 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'
    		);
    	}	
    	
    }	
    /* Disable WordPress Admin Bar for all users but admins. */
      show_admin_bar(false);
     
    //change matching system
    add_action('after_setup_theme','kleo_my_match');
    
    function kleo_my_match() {
    	global $kleo_config;
    	
    	$kleo_config['matching_fields']['starting_score'] = 1;
    	
    	//If we want to match by members sex. values: 0|1
    	$kleo_config['matching_fields']['sex_match'] = 1;
    	
    	//required for initial match. If the sex preference matches it will continue to the specified fields below
    	$kleo_config['matching_fields']['sex'] = 'Ich bin';
    	$kleo_config['matching_fields']['looking_for'] = 'Ich suche';
    	
    	//sex percentage
    	$kleo_config['matching_fields']['sex_percentage'] = 49;
    	
    	//single value fields like select, textbox,radio
    	$kleo_config['matching_fields']['single_value'] = array (
    		'Status' => 10,
    		'Country' => 5,
    		'City' => 5,
    		'Drinking Habits' => 5,
    		'Dietary Preferences' => 5,
    		'Smoking Habits' => 5
    	);
    	
    	//multiple values fields like multiple select or checkbox
    	$kleo_config['matching_fields']['multiple_values'] = array (
    		'For' => 5,
    		'Interests' => 5,
    	);
    }
    
    ?>
    
    in reply to: How to change matching system #38013
     ofcentral
    Participant

    Hi,
    I’m referring to Post .
    I translated the fields “I am a” and “Looking for” both in the .po-File as well as in the WordPress-Profile Fields-Section. As soon as I translate the fields in the Profile Fields-Section (only in the .po-File doesn’t work), the matching algorithm doesn’t work, altough I also translated it in your custom code:

    COPY CODE
    
    //change matching system
    add_action('after_setup_theme','kleo_my_match');
    
    function kleo_my_match() {
    	global $kleo_config;
    	
    	$kleo_config['matching_fields']['starting_score'] = 1;
    	
    	//If we want to match by members sex. values: 0|1
    	$kleo_config['matching_fields']['sex_match'] = 1;
    	
    	//required for initial match. If the sex preference matches it will continue to the specified fields below
    	$kleo_config['matching_fields']['sex'] = 'Translation 1';
    	$kleo_config['matching_fields']['looking_for'] = 'Translation 2';
    
    	//sex percentage
    	$kleo_config['matching_fields']['sex_percentage'] = 49;
    	);
    }
    

    Can you help me? Thanks a lot!

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

Log in with your credentials

Forgot your details?