Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • in reply to: More privacy less address detail #35662
     wisinyyandel7
    Participant

    This is my child/function.php file…can you please tell me what I did wrong? Thanks

    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
    */ 
    
    add_action('after_setup_theme','kleo_remove_actions');
    /**
     * Override existing actions
     * Use these functions to replace/remove existing actions
     * @since Sweetdate 1.3
    */ 
    function kleo_remove_actions() 
    {
       /* For example uncomment the line bellow to disable matching on member profile */
        //remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');      
    }
    
    
    /**
     * Uncomment to change Looking for group with your own
     */
    /*
    add_filter('kleo_extra_tab1', 'custom_tab');
    function custom_tab()
    {
        return 'Base';
    }
    */
    
    /**
     * Uncomment to change default tab on member profile
     */
    /*
    add_filter('kleo_bp_profile_default_top_tab','my_default_tab');
    function my_default_tab() {
        return 'my-photos';
    }
    */
    
    add_filter('kleo_pmpro_level_restrictions', 'my_restriction_option');
    function my_restriction_option($settings) {
        $settings[] =     array(
            'title' => __('Restrict users from chatting with their friends','kleo_framework'),
            'front' => __('Chat with your friends','kleo_framework'),
            'name' => 'my_setting_alias'
        );
        
        return $settings;
    }
    
    
    
    function gmw_location_tab_address( $content ) {
    	
    	return '[gmw_member_location map_height="400px" map_width="400px" no_location="1" address_fields="city,zipcode,country" display_name="0"]';
    }
    add_filter( 'gmw_fl_user_location_tab_content', 'gmw_location_tab_address' );
    
    
    ?>
    
    in reply to: New Users Registration Don\'t show in the Members page #35648
     wisinyyandel7
    Participant
    COPY CODE
    
    <?php if ( is_user_logged_in() ); ?>
    /**
     * The Header for our theme.
     *
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
     ?>
    
    
    <?php if ( bp_has_profile() ) : ?>
    	<ul class="accordion">
    	<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    
    		<?php if ( bp_profile_group_has_fields() ) : ?>
    
    			<?php do_action( 'bp_before_profile_field_content' ); ?>
    
    				<li>
    				  <h5 class="accordion-title <?php bp_the_profile_group_slug(); ?>"><?php bp_the_profile_group_name(); ?><span class="accordion-icon"></span></h5>
    				  <div class="accordion-content">
    						<dl class="dl-horizontal">
    
    							<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    
    								<?php if ( bp_field_has_data() ) : ?>
    
    									<dt><?php bp_the_profile_field_name(); ?></dt>
    									<dd><?php bp_the_profile_field_value(); ?></dd>
    
    								<?php endif; ?>
    
    								<?php do_action( 'bp_profile_field_item' ); ?>
    
    							<?php endwhile; ?>
    						</dl>
    
    				  </div>
    				</li>
    			<?php do_action( 'bp_after_profile_field_content' ); ?>
    
    		<?php endif; ?>
    
    	<?php endwhile; ?>
    	</ul>
    	<?php do_action( 'bp_profile_field_buttons' ); ?>
    
    <?php endif; ?>
    
    <?php else : ?>
    <?php echo "<div style='width: 600px;height:25px; padding: 4px; border: 3px solid #ff0000; text-align: center; font-style:bold; font-size: 1.3em;'> You must be logged in to view a member profile</div>"; ?>
    <?php endif; ?>
    
    <?php do_action( 'bp_after_profile_loop_content' ); ?>
    
    in reply to: Revolution Slider #7566
     wisinyyandel7
    Participant

    My friend,
    This is my header.php
    Well, I am trying to see where is the error but it looks good to me …what do you think?
    Thanks for your help.

    Regards,
    Julio

    COPY CODE
    
    <?php
    /**
     * The Header for our theme.
     *
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    ?><!DOCTYPE html>
    
    <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 8]>    <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
    <!--[if gt IE 8]><!-->
    
    <html class="no-js" <?php language_attributes(); ?>>
    <!--<![endif]-->
    
    <head>
    <?php if ( pmpro_hasMembershipLevel(array(3,4))) { ?>
    <link type="text/css" href="/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">
    <script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>
    <?php } ?>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <!--[if IE 7]>
    <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/assets/styles/font-awesome-ie7.min.css">
    <script src="<?php echo get_template_directory_uri();?>/assets/scripts/ie6/warning.js"></script>
    <script>window.onload=function(){e("<?php echo get_template_directory_uri();?>/assets/scripts/ie6/")}</script>
    <![endif]-->
    
    <!--Favicons-->
    <?php if (sq_option('favicon')) { ?>
    <link rel="shortcut icon" href="<?php echo sq_option('favicon'); ?>">
    <?php } ?>
    <?php if (sq_option('apple57')) { ?>
    <link rel="apple-touch-icon" href="<?php echo sq_option('apple57'); ?>">
    <?php } ?>   
    <?php if (sq_option('apple57')) { ?>
    <link rel="apple-touch-icon" sizes="57x57" href="<?php echo sq_option('apple57'); ?>">
    <?php } ?>   
    <?php if (sq_option('apple72')) { ?>
    <link rel="apple-touch-icon" sizes="72x72" href="<?php echo sq_option('apple72'); ?>">
    <?php } ?>   
    <?php if (sq_option('apple114')) { ?>
    <link rel="apple-touch-icon" sizes="114x114" href="<?php echo sq_option('apple114'); ?>">
    <?php } ?>   
    <?php if (sq_option('apple144')) { ?>
    <link rel="apple-touch-icon" sizes="144x144" href="<?php echo sq_option('apple144'); ?>">
    <?php } ?>  
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
        
    <?php do_action('kleo_after_body');?>
    
    <!-- Page
    ================================================ -->
    <!--Attributes-->
    <!--class = kleo-page wide-style / boxed-style-->
    <div class="kleo-page <?php echo sq_option('site_style','wide-style'); ?>">
    
    <!-- HEADER SECTION
    ================================================ -->
    <header>
    <div class="header-bg">
        
     <?php if(sq_option('social_top') == 1) :?>
    <!--Top links-->
    <div class="top-links">
        <div class="row">
            <ul class="no-bullet">
                <li class="nine columns">
                    <?php do_action('kleo_before_top_links');?>
                    
                    <?php if(sq_option('owner_email')): ?>
                    <a>"><i class="icon-envelope"></i>   <?php echo sq_option('owner_email'); ?></a>
                    <?php endif; ?>
                </li>
    
                <li class="three columns hide-for-small">
                    <?php _e("Find us on", 'kleo_framework'); ?>:  
                    <?php if (sq_option('twitter')): ?>
                    <a>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Follow us on", 'kleo_framework');?> Twitter"><i class="icon-twitter icon-large"></i></a>
                    <?php endif;?>
                    <?php if (sq_option('facebook')): ?>
                    <a>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Find us on", 'kleo_framework');?> Facebook"><i class="icon-facebook icon-large"></i></a>
                    <?php endif;?>
                    <?php if (sq_option('googleplus')): ?>
                    <a>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Find us on", 'kleo_framework');?> Google+"><i class="icon-google-plus icon-large"></i></a>
                    <?php endif; ?>
                    <?php if (sq_option('pinterest')): ?>
                    <a>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Pin us on", 'kleo_framework');?> Pinterest"><i class="icon-pinterest icon-large"></i></a>
                    <?php endif; ?>
                    <?php if (sq_option('linkedin')): ?>
                    <a>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Find us on", 'kleo_framework');?> LinkedIn"><i class="icon-linkedin icon-large"></i></a>
                    <?php endif; ?>
                </li>
            </ul>
      </div>
    </div>
    <!--end top-links-->
    <?php endif; ?>
    
    <div id="header">
        <div class="row">
            
        <!-- Logo -->
        <div class="four columns">
          <h1 id="logo"><?php bloginfo('name'); ?>
              <a>"><img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
          </h1>
        </div>
        <!--end logo-->
        
        <!-- Login/Register/Forgot username/password Modal forms
        	-  Hidden by default to be opened through modal
          -  For faster loading we put all forms at the bottom of page -->
          
        <!--Login buttons-->  
        <div class="eight columns login-buttons">
          <ul class="button-group radius right">
            <?php if (is_user_logged_in()): ?>
              <?php /* Only show if Buddypress is installed */ ?>
                <?php if (function_exists('bp_is_active')): ?>
                <li class="relative"><a>" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("PROFILE", 'kleo_framework'); ?></a><div class="kleo-notifications"><?php if( bp_is_active('messages') && messages_get_unread_count() > 0 ) { ?><a>" data-width="210" title="<?php _e("New messages", 'kleo_framework');?>" class="kleo-message-count has-tip tip-left"><?php echo messages_get_unread_count(); ?></a><?php } ?><?php if (bp_is_active('friends') && bp_friend_get_total_requests_count() > 0): ?> <a>" data-width="210" title="<?php _e("Friend requests", 'kleo_framework');?>" class="kleo-friends-req has-tip tip-right"><?php echo bp_friend_get_total_requests_count(); ?></a><?php endif; ?> </div></li>
                <?php endif; ?>
            <li><a> " class="tiny button radius"><i class="icon-off hide-for-medium-down"></i> <?php _e("LOG OUT", 'kleo_framework'); ?></a></li>
            <?php else: ?>
            <li><a href="#"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li>
            <?php if(get_option('users_can_register')) { ?>
                <li><a href="#"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a></li>
            <?php } ?>
            <?php endif; ?>
          </ul>
        </div>
        <!--end login buttons-->
            
            
        <!-- Main Navigation -->
        <div class="eight columns">
        	<div class="contain-to-grid<?php if (sq_option('sticky_menu', 1) == 1) echo ' sticky'; ?>">
            <nav class="top-bar">
                <a>" class="small-logo"><img />" height="43" alt="<?php bloginfo('name'); ?>"></a>
              <ul>
                <!-- Toggle Button Mobile -->
                <li class="name">
                  <h1><a href="#"><?php _e("Please select your page", 'kleo_framework'); ?></a></h1>
                </li>
                <li class="toggle-topbar"><a href="#"><i class="icon-reorder"></i></a></li>
                <!-- End Toggle Button Mobile -->
              </ul>
            
              <section><!-- Nav Section -->
                  <?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'left', 'theme_location' => 'primary', 'fallback_cb' => 'sweetdate_main_nav', 'walker' => new sweetdate_walker_nav_menu) ); ?>
              </section><!-- End Nav Section -->
                
            </nav>
          </div><!--end contain-to-grid sticky-->
        </div>
        <!-- end Main Navigation -->
        
        
        <?php
        /**
         * after_header_content
         * 
         * @hooked render_user_search - only if is Front-page Template
         */
        do_action('after_header_content');
        ?>
        
      </div><!--end row-->
    </div><!--end #header-->
    </div><!--end header-bg-->
    </header>
    <!--END HEADER SECTION-->
    
    <?php
    /**
     * kleo_before_page
     * 
     * @hooked kleo_show_breadcrumb - 9
     */
    do_action( 'kleo_before_page' ); 
    ?>
    
Viewing 3 posts - 1 through 3 (of 3 total)

Log in with your credentials

Forgot your details?