This topic has 4 replies, 3 voices, and was last updated 10 years by Abe.

  • Author
  • #9866
     edbrems
    Participant

    How to get the wordpress profile page to look like the HTML one you offer? Basically a clone of the HTML profile page on wordpress. I do have both licenses. I bought the HTML first but I have no programing skill. My mistake sorry but I liked the look so much and got your wordpress since they are easy to work with. But realized it’s not the same as the HTML Site. I tried your advice on the code you gave me to make the profile big and round but the pic became blurry sand the same thing on the members page and by itself it don’t look right look below at what I mean with your two different software and you can see what I mean.

    Look at your HTML page here: http://seventhqueen.com/demo/SweetDate/DefaultHeader/Wide/profile.html#looking-for

    And your word press page here:
    http://themeforest.net/item/sweet-date-more-than-a-wordpress-dating-theme/full_screen_preview/4994573

    I would like to know what to enter on Quick CSS or whatever I have to do to get my site to look like that. And I don’t mean Just the big round pic but also the 2 little ones below it The name in a diffrent font and bigger the info below the name for example ( 29 | F | Bi | Single | Bremen, Germany ) and the photos on the right how to get them round also?

    And also how can I change the font and Size for the tabs in the profile
    Profile
    Notifications
    Messages
    Friends
    Groups
    Forums
    Album
    Settings

    I apologize if this is too much to ask. But I just want to make a page to keep my members on the page with a visually striking look. Please feel free to message me to get my phone # to discuss this more if you like.

    #9962
     Abe
    Keymaster

    Hello, I see what you mean but there are different structures involved and can’t be done with a simple CSS unfortunately.
    Some steps to get it closer to that:
    For more customizations please hire a developer to help you with that

    You can use this CSS to make the profile rounded and shouldn’t modify the size to get blury

    COPY CODE
    
    #item-header-avatar .avatar {
        border-radius: 100%;
    }
    

    To make the title that font set the H2 to font Yesteryear from Sweetdate – Styling options

    To add the member details after the name, add this code to sweetdate-child/functions.php

    COPY CODE
    
    
    function kleo_show_member_details() {
    	
    	global $kleo_config;
    	$output = array();
    
    	if (get_member_age(bp_displayed_user_id())) {
    			$output['age'] = apply_filters('kleo_bp_meta_after_age', get_member_age(bp_displayed_user_id()));
    	}
    	//fields to show
    	$fields_arr = $kleo_config['bp_members_loop_meta'];
    
    
    	//user private fields
    	$private_fields = array();
    	if (function_exists('bp_xprofile_get_hidden_fields_for_user')) {
    		$private_fields = bp_xprofile_get_hidden_fields_for_user(bp_displayed_user_id());
    	}
    	if (!empty($private_fields))
    	{
    			//get the fields ids that will be displayed on members list
    			if ( false === ( $fields_id_arr = get_transient( 'kleo_bp_meta_fields' ) ) ) {
    
    					$fields_id_arr = array();
    
    					foreach ($fields_arr as $val)
    					{
    							if (get_profile_id_by_name($val))
    							{
    									$fields_id_arr[$val] = get_profile_id_by_name($val);
    							}
    					}
    
    					set_transient( 'kleo_bp_meta_fields', $fields_id_arr, 60*60*12 );
    			}
    			if (!empty($fields_id_arr))
    			{
    					//fields that will actually display
    					$show_fields = array_diff($fields_id_arr, $private_fields);
    					if (!empty($show_fields))
    					{
    							$fields_arr_inv = array_flip($fields_id_arr);
    
    							foreach ($show_fields as $key => $val):
    								 if(bp_get_member_profile_data( 'field='.$fields_arr_inv[$val] )):
    										 $output[] =  bp_get_member_profile_data( 'field='.$fields_arr_inv[$val] );
    								 endif;
    							endforeach;
    					}
    			}
    	}
    	else
    	{
    			foreach ($fields_arr as $key => $val):
    					if(bp_get_member_profile_data( 'field='.$val )):
    							$output[] =  bp_get_member_profile_data( 'field='.$val );
    					endif;
    			endforeach;
    	}
    
    		echo implode(' | ', $output);
    	
    }
    add_action('bp_before_member_header_meta', 'kleo_show_member_details');
    

    And you can remove existing details under the profile by going to wp-content\themes\sweetdate\members\single\member-header.php and removing
    the two lines with span class=”user-nicename and span class=”activity”

    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.

    #14774
     nusolutions
    Participant

    I just gave this a try by adding the code above to the functions.php file located under the child theme and got the following information displayed at the top of the screen:

    function kleo_show_member_details() { global $kleo_config; $output = array(); if (get_member_age(bp_displayed_user_id())) { $output[‘age’] = apply_filters(‘kleo_bp_meta_after_age’, get_member_age(bp_displayed_user_id())); } //fields to show $fields_arr = $kleo_config[‘bp_members_loop_meta’]; //user private fields $private_fields = array(); if (function_exists(‘bp_xprofile_get_hidden_fields_for_user’)) { $private_fields = bp_xprofile_get_hidden_fields_for_user(bp_displayed_user_id()); } if (!empty($private_fields)) { //get the fields ids that will be displayed on members list if ( false === ( $fields_id_arr = get_transient( ‘kleo_bp_meta_fields’ ) ) ) { $fields_id_arr = array(); foreach ($fields_arr as $val) { if (get_profile_id_by_name($val)) { $fields_id_arr[$val] = get_profile_id_by_name($val); } } set_transient( ‘kleo_bp_meta_fields’, $fields_id_arr, 60*60*12 ); } if (!empty($fields_id_arr)) { //fields that will actually display $show_fields = array_diff($fields_id_arr, $private_fields); if (!empty($show_fields)) { $fields_arr_inv = array_flip($fields_id_arr); foreach ($show_fields as $key => $val): if(bp_get_member_profile_data( ‘field=’.$fields_arr_inv[$val] )): $output[] = bp_get_member_profile_data( ‘field=’.$fields_arr_inv[$val] ); endif; endforeach; } } } else { foreach ($fields_arr as $key => $val): if(bp_get_member_profile_data( ‘field=’.$val )): $output[] = bp_get_member_profile_data( ‘field=’.$val ); endif; endforeach; } echo implode(‘ | ‘, $output); } add_action(‘bp_before_member_header_meta’, ‘kleo_show_member_details’);

    I am using the child theme. Am I missing something?

    #14775
     nusolutions
    Participant

    I tried it this way and the message went away but there was no change to the profile area:

    <?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
    */

    function kleo_show_member_details() {

    global $kleo_config;
    $output = array();

    if (get_member_age(bp_displayed_user_id())) {
    $output[‘age’] = apply_filters(‘kleo_bp_meta_after_age’, get_member_age(bp_displayed_user_id()));
    }
    //fields to show
    $fields_arr = $kleo_config[‘bp_members_loop_meta’];

    //user private fields
    $private_fields = array();
    if (function_exists(‘bp_xprofile_get_hidden_fields_for_user’)) {
    $private_fields = bp_xprofile_get_hidden_fields_for_user(bp_displayed_user_id());
    }
    if (!empty($private_fields))
    {
    //get the fields ids that will be displayed on members list
    if ( false === ( $fields_id_arr = get_transient( ‘kleo_bp_meta_fields’ ) ) ) {

    $fields_id_arr = array();

    foreach ($fields_arr as $val)
    {
    if (get_profile_id_by_name($val))
    {
    $fields_id_arr[$val] = get_profile_id_by_name($val);
    }
    }

    set_transient( ‘kleo_bp_meta_fields’, $fields_id_arr, 60*60*12 );
    }
    if (!empty($fields_id_arr))
    {
    //fields that will actually display
    $show_fields = array_diff($fields_id_arr, $private_fields);
    if (!empty($show_fields))
    {
    $fields_arr_inv = array_flip($fields_id_arr);

    foreach ($show_fields as $key => $val):
    if(bp_get_member_profile_data( ‘field=’.$fields_arr_inv[$val] )):
    $output[] = bp_get_member_profile_data( ‘field=’.$fields_arr_inv[$val] );
    endif;
    endforeach;
    }
    }
    }
    else
    {
    foreach ($fields_arr as $key => $val):
    if(bp_get_member_profile_data( ‘field=’.$val )):
    $output[] = bp_get_member_profile_data( ‘field=’.$val );
    endif;
    endforeach;
    }

    echo implode(‘ | ‘, $output);

    }
    add_action(‘bp_before_member_header_meta’, ‘kleo_show_member_details’);

    ?>

    #14947
     Abe
    Keymaster

    You should read the instructions since that code does not make anything to the profile section. Only this CSS is to alter the profile look and make it rounded:
    #item-header-avatar .avatar {
    border-radius: 100%;
    }

    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.

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?