Forum Replies Created

Viewing 40 posts - 2,241 through 2,280 (of 2,655 total)
  • Author
  • in reply to: Blog overview? #1228
     SQadmin
    Keymaster

    Hi,
    To accomplish that you need to:
    1. create a page name Blog.
    2. Go to Settings -> Reading and select
    Front page displays: A static page
    and
    the “Blog” page in “Posts page:”

    You can add banners using Simple Ads Manager plugin. After you install the plugin go to Appearance -> Widgets and customize the Main sidebar with widgets.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Email Domain Extension Required #1227
     SQadmin
    Keymaster

    Hi,
    Yes it is.
    Just add this snippet to your sweetdate-child/functions.php file under wp-content/themes:

    COPY CODE
    
    function bp_restrict_email_domains_validate_user_signup( $result ) {
    
    	if ( bp_restrict_email_domains_is_email_address_safe( $result['user_email'] ) )
    		$result['errors']->add('user_email',  __('You cannot use that email address to signup.', 'kleo_framework' ) );
    
    	return $result;
    
    }
    add_filter( 'bp_core_validate_user_signup', 'bp_restrict_email_domains_validate_user_signup' );
    
    function bp_restrict_email_domains_is_email_address_safe( $user_email ) {
    
    	$allowed_names = array(
            '.co.uk',
            'gmail.com'
        );
    	
    	if ( is_array( $allowed_names )) {
    	
    		$email_domain = strtolower( substr( $user_email, 1 + strpos( $user_email, '@' ) ) );
    		
    		foreach ( (array) $allowed_names as $allowed_domain ) {
    		
    			if ( strstr( $email_domain, $allowed_domain ) ||
    				(
    					strstr( $allowed_domain, '/' ) AND
    					preg_match( $allowed_domain, $email_domain )
    				)
    			)
    			return false;
    		}
    		
    	}
    	return true;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Redirect after Login #1225
     SQadmin
    Keymaster

    Hi if you are using the login modal it has a filter applied for the redirection.
    The modal is found in sweetdate/page-parts/general-login-modal.php
    You can manually edit the parameter for wp_login_url() function:

    COPY CODE
    
    form action="<?php echo wp_login_url(apply_filters('kleo_modal_login_redirect', '')  ); ?>"
    

    or use the filter in your functions.php:

    COPY CODE
    
    add_filter('kleo_modal_login_redirect', 'my_redirect');
    function my_redirect()
    {
    return 'http://mysite/?param=val';
    }
    

    If you are not using the modal then u can do like this:

    COPY CODE
    
    add_filter("login_redirect","kleo_redirect_to",100,3);
     
    function kleo_redirect_to($redirect_to_calculated,$redirect_url_specified,$user){
            return 'http://my_url';
    }
    

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Main menu and Love Heart #1224
     SQadmin
    Keymaster

    HI,
    1. To add those codes you have to connect to your server by FTP and go tp wp-content/themes
    There you should have you main theme: sweetdate and child theme: sweetdate-child folders.
    If you don’t have the child theme you should install and activate it instead of the main theme.
    If you have a Cpanel powered hosting you can login and use the File browser instead of FTP
    2. To increase the size do exactly as I wrote above. There is no file to edit. It is from the WordPress Admin. Just follow the menu instruction
    3. To have one particular tab selected on page load add this to sweetdate-child/functions.php:

    COPY CODE
    
    add_filter('kleo_bp_profile_default_top_tab','my_default_tab');
    function my_default_tab() {
        return 'my-photos';
    }
    

    4. Take a look at this post: https://archived.seventhqueen.com/forums/topic/how-to-disable-comment-form-on-select-pages

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: IE9 problem. the header background is disappeared. #1221
     SQadmin
    Keymaster

    Hi Pulla,
    I’ve already tested our demos on different IE versions and seems to be ok. You can send us some screenshots at themesupport@seventhqueen.com or use a free online service like https://droplr.com/hello

    Best regards,
    Robert

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
     SQadmin
    Keymaster

    Thanks. We appreciate it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Hide Admin from site members #1211
     SQadmin
    Keymaster

    Hi,
    I have modified the above file. The editor transformed some characters.
    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Upload first page problem #1207
     SQadmin
    Keymaster

    Hi,
    If I remember right, the problem was that something made the page not to fully load. Change in wp-config.php WP_DEBUG to true and view if you have any errors.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Two Issues (Demo Images & Nested Comments) #1205
     SQadmin
    Keymaster

    Hi again,
    I’m back with a small fix for the nested comments until next update will be available.

    You nedd to edit two lines in wp-content/themes/sweetdate/assets/styles/app.css:
    On line 735 comment or remove “width: calc(100% – 20px);”
    On line 736 comment or remove “width: 100%;”

    COPY CODE
    
    .comment .children { margin: 0; padding: 10px 0 0 20px; position: relative;float:left; /*width: calc(100% - 20px);*/ }
    .comment .children .comment { position: relative; /*width: 100%;*/ }
    

    Best regards,
    Robert

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Home page content ? #1204
     SQadmin
    Keymaster

    Hello,
    You can copy the Home page content as in our demo from the documentation:
    https://archived.seventhqueen.com/documentation/sweetdatewp/#!/pages_and_menu

    If the above link loads slowly the you can open the theme included documentation

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Main menu and Love Heart #1203
     SQadmin
    Keymaster

    Hi and thanks.
    1. To increase the menu font you can add the bellow rule to Sweetdate-> Styling options -> Quick css:

    COPY CODE
    
    .top-bar ul > li a:not(.button) {font-size:14px;}
    

    2. To change the heart icon over the images:
    Add this to sweetdate-child/functions.php into the remove actions function:

    COPY CODE
    
    add_filter(‘kleo_img_rounded_icon’, ‘my_custom_icon’);
    

    And then at the end of the file the function:

    COPY CODE
    
    function my_custom_icon () {
    return ‘camera’;
    }
    

    To change the heart in the register modal you need to edit ../page-parts/general-register-modal.php and replace “icon-heart” with your desired icon from fontawesome:http://fortawesome.github.io/Font-Awesome/icons/

    3. Add this to your sweetdate-child/functions.php

    COPY CODE
    
    /* Filter the redirect url for login*/
    add_filter("login_redirect","kleo_redirect_to_profile",100,3);
    
    function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
    /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
    	if(!is_super_admin($user->ID))
    		return bp_core_get_user_domain($user->ID );
    	else
    		return $redirect_to_calculated; /*if site admin*/
    }
    

    4. Make sure to update to 1.4.1 theme version

    5. If you have modified the name of your groups then uncomment or add this on your sweetdate-child/functions.php

    COPY CODE
    
    add_filter('kleo_extra_tab1', 'custom_tab');
    function custom_tab()
    {
        return 'Base';
    }
    

    This can be modified to show other Group than “Looking for” as in our demo. The above code replaces it with the Base group

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Sign up required #1198
     SQadmin
    Keymaster

    Hi,
    The fields that appear on registration are in the Base group in Users -> Profile fields
    Move them to another Group or delete them if you don’t need them

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Two frontpages? #1197
     SQadmin
    Keymaster

    Hello,
    You can do this using only one Home page but to put conditions on the content to show.
    I have created for you 2 new shortcodes that we will also include in our next update.
    Add the following lines to your functions.php:

    COPY CODE
    
    /*-----------------------------------------------------------------------------------*/
    /*	Restrict content
    /*-----------------------------------------------------------------------------------*/
    
    if (!function_exists('kleo_only_members')) {
        function kleo_only_members( $atts, $content = null ) {
            if (is_user_logged_in()) {
                return do_shortcode($content);
            } else {
                return '';
            }
        }
        add_shortcode('kleo_only_members', 'kleo_only_members');
    }
    
    if (!function_exists('kleo_only_guests')) {
        function kleo_only_guests( $atts, $content = null ) {
            if (!is_user_logged_in()) {
                return do_shortcode($content);
            } else {
                return '';
            }
        }
        add_shortcode('kleo_only_guests', 'kleo_only_guests');
    }
    

    Use them like this in your page:

    COPY CODE
    
    [kleo_only_members]Content only for members[/kleo_only_members]
    
    [kleo_only_guests]Content only for guests[/kleo_only_guests]
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Hide Admin from site members #1195
     SQadmin
    Keymaster

    Hi,
    This shows a 404 error on the admin page:

    COPY CODE
    
    // Hide admin profile pages
    add_action( 'wp', 'hide_profile_template', 1 );
    function hide_profile_template() {
    global $bp; 
        if(bp_is_profile AND $bp->displayed_user->id == 1 AND $bp->loggedin_user->id != 1) :
            global $wp_query;
            $wp_query->set_404();
            status_header(404);
            include(locate_template('404.php'));
            exit;
        endif;
    }
    

    For groups just create the groups with another user.
    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Login Panel pops up #1192
     SQadmin
    Keymaster

    Hi,
    This topic looks similar:
    https://archived.seventhqueen.com/forums/topic/search-log-in

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Just noticed this, privacy issue #1191
     SQadmin
    Keymaster

    This is resolved in 1.4.1 version. Regards

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: City Field #1190
     SQadmin
    Keymaster

    Hello,
    We have something but it is not ready yet 🙂
    We will keep you posted.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Double home page #1189
     SQadmin
    Keymaster

    Hi,
    Probably you edited the header template but the best option to have a custom menu you have to:
    – go to Appearance -> Menus
    – Click on Add Menu if you haven’t already added one and then select it to show in the Primary menu location
    – Just add the pages you want to show in the menu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Adding success story posts to home page #1188
     SQadmin
    Keymaster

    Hi,
    Gallery is supposed to have images added in the General Setings box -> Slider

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Changing text on car´s template (homepage) #1187
     SQadmin
    Keymaster

    Hi caijinsol,
    To change the default text “Find others going your way so you can Car-Share together.
    Save money, cut your carbon and have fun! Great for both drivers and passengers.” or simply remove it all you need to go to Sweetdate/Buddypress/Search form customization and you have “MAIN FORM” box. Make all your changes there.

    Best regards,
    Robert

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Two Issues (Demo Images & Nested Comments) #1184
     SQadmin
    Keymaster

    Hi,
    Yes you’re right, all photos used in preview are not included in the template. We already specifield this in our description page on Themeforest.
    For Safari issue we will fix this in feature update, thank you for reporting us.

    Regards,
    Robert

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Upload first page problem #1180
     SQadmin
    Keymaster

    Great.
    Good day!

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Upload first page problem #1174
     SQadmin
    Keymaster

    Hello again
    I guess some problem with a pugin you have installed.
    I noticed you have a plugin for google fonts but you don;t need one since you can choose the fonts to use from Sweetdate -> Styling options.

    Try deactivating you extra plugins and see if the problem occurs.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Hide Admin from site members #1173
     SQadmin
    Keymaster

    Hi,
    To hide Admin profile you could add this snippet to your sweetdate-child/functions.php:

    COPY CODE
    
    /* Hide admin */
    add_action('bp_init', 'kleo_private_admin');
    function kleo_private_admin(){
        global $bp;
        if(is_super_admin())
        {
            remove_action("wp_head","bp_core_record_activity"); //id SM is on, remove the record activity hook
            //then remove the last activity, if present
            delete_user_meta($bp->loggedin_user->id, 'last_activity');
        }
    }
    
    add_action('bp_ajax_querystring','kleo_exclude_users',20,2);
    function kleo_exclude_users($qs=false,$object=false)
    {
        //list of users to exclude
    
        $excluded_user='1';//comma separated ids of users whom you want to exclude
    
        if($object!='members')//hide for members only
        return $qs;
    
        $args=wp_parse_args($qs);
    
        //check if we are listing friends?, do not exclude in this case
        if(!empty($args['user_id']))
        return $qs;
    
        if(!empty($args['exclude']))
        $args['exclude']=$args['exclude'].','.$excluded_user;
        else
        $args['exclude']=$excluded_user;
    
        $qs=build_query($args);
    
        return $qs;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Login Redirection & " About Me " #1172
     SQadmin
    Keymaster

    Hi,
    You should update to 1.4.1 because I see you are using 1.4
    The new version has a small code changed in sweetdate/page-parts/general-login-modal.php at the form tag, action attribute:

    COPY CODE
    
    form action="<?php echo wp_login_url(apply_filters('kleo_modal_login_redirect', '')  ); ?>"
    

    Try updating or modifying with the above code.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Adding success story posts to home page #1171
     SQadmin
    Keymaster

    Hi,
    By default it will show only posts that have the post format Video, Image, Gallery
    If you want to show all post formats add an attribute to the shortcode like this:
    [kleo_posts_carousel post_formats="all"]

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Sweetdate WP Feature Requests #1170
     SQadmin
    Keymaster

    Hi,
    You cannot do that
    http://developers.facebook.com/docs/reference/api/permissions/
    email field only available for the users that connected to your application and have given email extended permission

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Sweetdate WP Feature Requests #1161
     SQadmin
    Keymaster

    Hello,
    Integration with Instagram is not possible.
    I found this code snippet that allows you to filter email addresses sent trough private messages:

    COPY CODE
    
    /*remove email addresses from private messages
    http://webdeveloperswall.com/snippets/buddypress-remove-email-id-from-private-messages
    */
    function wdw_remove_email_from_private_msg($message){
    	$replacement = "[removed]";
    	/*if you dont want any replacement text, replace the above line with 
    		$replacement = ""; 
    	*/
    	return preg_replace("/[^@\s]*@[^@\s]*\.[^@\s]*/", $replacement, $message);
    	/*the code is short and works in most cases but not full proof. Check http://www.linuxjournal.com/article/9585*/
    }
    add_filter('messages_message_content_before_save', 'wdw_remove_email_from_private_msg');
    add_filter('messages_message_subject_before_save', 'wdw_remove_email_from_private_msg');
    

    I think you could use it also for profile fields but haven’t tested it:
    add_filter( ‘bp_get_the_profile_field_value’, ‘wdw_remove_email_from_private_msg’, 999, 1 );

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: 2 problems. (menu css and album files) #1159
     SQadmin
    Keymaster

    Hello,
    Have you figured out why you couldn’t upload images using Bp-Album?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Breadcrumb & Translation #1158
     SQadmin
    Keymaster

    Right now that is not possible. It would require some additional coding to accomplish that.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Right Column Narrower on Profile Pages #1157
     SQadmin
    Keymaster

    Also make sure to use the child theme and do not alter main theme files. Copy the original main theme files to your child theme and modify them there.
    This makes the update process smoother.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Membsership plans suggestions #1155
     SQadmin
    Keymaster

    Hi,
    You have to acquire a SSL certificate from Godaddy.com or similar.
    You can have all the site SSL or just authentication parts, it is up to you

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    in reply to: Membsership plans suggestions #1154
     SQadmin
    Keymaster

    Hi,
    Memberships will be included in 2.0 version that we have planned to release at the end of this month. We will keep you posted.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Add Buddypress Media To Member Header #1153
     SQadmin
    Keymaster

    Hi,
    We are working on including this. It will be available this month in an update.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Bugs in Homepage if edit #1152
     SQadmin
    Keymaster

    Hi,
    You will have to edit the shortcode to match your needs. You need to add the modified version to your sweetdate-child/functions.php:

    COPY CODE
    
    function kleo_status_icon( $atts, $content = null ) {
    
    		extract(shortcode_atts(array(
    			'type' => 'total',
                'image' => '',
    			'subtitle' => '',
                'link_url' => '',
                'link_title' => ''
    	    ), $atts));
    
                switch ($type) {
                case 'total':
                        $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_01.png' : $image;
                        $number = bp_get_total_member_count();
                    break;
                case 'members_online':
                        $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_02.png' : $image;
                        $number = bp_get_online_users();
                    break;
                case 'women_online':
                        $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_03.png' : $image;
                        $number = bp_get_online_users("Woman");
                    break;
                case 'men_online':
                        $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_04.png' : $image;
                        $number = bp_get_online_users("Man");
                    break;
    
                default:
                        if ($type == 'Man') {
                            $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_04.png' : $image;
                        } elseif($type == 'Woman') {
                            $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_03.png' : $image;
                        } else {
                            $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_01.png' : $image;
                        }
                        $number = bp_get_online_users($type);
                    break;
                }
    
                $output ='<div class="status three columns mobile-one">';
                $output .= '<div data-animation="pulse" class="icon">';
                $output .= '<img width="213" height="149" alt="" src="'.$image.'">';
                $output .= '</div>';
                if ($link_url && $link_title)
                {
                    $output .= '<a href="'.$link_url.'">'.$link_title.'</a>';
                }
                $output .= '<ul class="block-grid">';
                $output .= '<li class="title">'.$number.'</li>';
                $output .= '<li class="subtitle">'.$subtitle.'</li>';
                $output .= '</ul>';
                $output .= '</div>';
              
               return $output;
            }
    	add_shortcode('kleo_status_icon', 'kleo_status_icon');
    

    and use it in your home page like this:

    COPY CODE
    
    [kleo_status_icon type="total" link_title="LINK" link_url="#" subtitle="Members in total"]
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Change profile picture – Hard to find #1146
     SQadmin
    Keymaster

    Hi,
    Seems to be a good idea, will take it into consideration.

    Regards,
    Robert

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Right Column Narrower on Profile Pages #1145
     SQadmin
    Keymaster

    Hi twoshoes,
    The entire layout is built on Foundation framework and the sidebar has four columns. If you want the sidebar to be narrower you can’t change just a few pixels less, instead of this you can change it from four to three columns. You also need to change the main content from eight columns to nine.

    Be careful with these files and always make a backup first 🙂

    a). Change “four” to “three” in sidebar.php – around line 15 and
    ../sweetdate/footer.php – around line 37

    b). Change “eight” to “nine” in fallowing:

    ../sweetdate/page-templates/left-sidebar.php – around line 34
    ../sweetdate/page-templates/right-sidebar.php – around line 30
    ../sweetdate/footer.php – around line 44
    ../sweetdate/sidebar.php – around line 15

    ../sweetdate/page-parts/general-before-wrap.php – around line 31
    ../sweetdate/sidebar-woocommerce.php – around line 15
    ../sweetdate/page-parts/buddypress-before-wrap.php – around line 27

    Regards,
    Robert

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: sign up form not working #1144
     SQadmin
    Keymaster

    Hi,
    It should have nothing to do with the car-sharing theme.
    Give us some access details on our email to take a look: themesupport@seventhqueen.com

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Changing text on car´s template (homepage) #1143
     SQadmin
    Keymaster

    Thanks Mimi,
    This line should not be there:

    COPY CODE
    
    <body style=”font-family:new century schoolbook;” >
    

    if you want to change the font for you body go to Sweetdate -> Styling options

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    in reply to: Double home page #1142
     SQadmin
    Keymaster

    Hello,
    If the problem is in the menu then you should edit your Top menu from Appearance -> Menus and remove extra pages.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 40 posts - 2,241 through 2,280 (of 2,655 total)

Log in with your credentials

Forgot your details?