Forum Replies Created

Viewing 33 posts - 1 through 33 (of 33 total)
  • Author
  • in reply to: Home Register – Form validation redirect #109639
     Parkproductions
    Participant

    Thanks for looking into this Sharmstr, understandable that the new template isn’t a replacement and mainly a landing page however it looks so good and would likely improve my sign up rate!

    in reply to: Geodirectory listing page fullwidth map #76519
     Parkproductions
    Participant

    Hey Sharmstr, is there a way to use the code provided to also full width the map div on a search result page

    http://www.globalsportcoach.com/?geodir_search=1&stype=gd_place&s=gymnastics&snear=&sgeo_lat=&sgeo_lon=

    That link is currently using the GD Search Top Section > GMAP Homepage widget

    in reply to: Geodirectory listing page fullwidth map #74017
     Parkproductions
    Participant

    Resolved the issue, there was a difference in my kleo/page-parts/general-before-wrap.php file

    in reply to: Geodirectory listing page fullwidth map #74013
     Parkproductions
    Participant

    CSS Image

    Attachments:
    You must be logged in to view attached files.
    in reply to: Geodirectory listing page fullwidth map #74012
     Parkproductions
    Participant

    Hi Sharmstr, I’ve got the code snippet to work on a clean install of kleo and wordpress however my live site still isn’t displaying correctly. Screenshots of css elements attached hoping I’ve just missed something basic

    in reply to: Geodirectory listing page fullwidth map #73516
     Parkproductions
    Participant

    Hey Sharmstr, I’ve updated to geodirectory 1.5.1 as they made a fix to the permalinks issue however I can’t get the function code snippet you provided to trigger the map properly. It currently is still trying to display inside a non-full-width page template.

    issue on this page http://www.globalsportcoach.com/places/

    in reply to: Geodirectory listing page fullwidth map #72942
     Parkproductions
    Participant

    Thanks Sharmstr your a legend! I’m having some unrelated permalink issues though, it shows no results on the listing pages but all the layout and styling is perfect, cheers.

    in reply to: Import user cover images via csv #65967
     Parkproductions
    Participant

    Hey Sharmstr it worked changing the field names. Thanks for the solution as importing was causing a few issues in other areas.

    in reply to: Hiding xprofile edit tabs from different user types #51784
     Parkproductions
    Participant

    Thanks Sharmstr, always really helpful!

    in reply to: Using Portfolio As Homepage #43576
     Parkproductions
    Participant

    Hey Sorry to be a pest, my host has advised that I move away from the self-hosted video option and use the oembed youtube option your theme provides, however the drop down option box is not on the page patch that you gave me. Are you able to add the youtube ombed option soon for the homepage template?

    in reply to: Using Portfolio As Homepage #42701
     Parkproductions
    Participant

    Great! Thank-you. Once again awesome support.

    in reply to: Using Portfolio As Homepage #42121
     Parkproductions
    Participant
    This reply has been set as private.
    in reply to: Using Portfolio As Homepage #42120
     Parkproductions
    Participant
    This reply has been set as private.
    in reply to: Using Portfolio As Homepage #41992
     Parkproductions
    Participant

    Any news on when this update will be available, or a way to do it manually? It’s pretty urgent for us, your page is 404 on that other example, although I have played around with the slider video and wasn’t happy with the way it resized on larger screens and the muted sound default play mode.

    in reply to: Using Portfolio As Homepage #41445
     Parkproductions
    Participant

    Hey Sharmstr, I did try that however there are some menu’s that are only on the portfolio template that effect the way the video appears, will have a look and make sure I had them turned on in the screen options.

    My issue with just copying and pasting into a page is that I can’t find a full-width page template option on the page itself, do I need to import some demo content and adjust that? Sorry if you mentioned this already, just have a million tasks on the go.

    in reply to: Using Portfolio As Homepage #41274
     Parkproductions
    Participant

    Hey guys, anyway to use make the portfolio-hosted-video-fullwidth template as my homepage, I really need the fullwidth video section with the controls etc.

    I want to know how to make this portfolio template in a page or make it my homepage as a portfolio post.

    http://www.globalsportcoach.com/portfolio/home-video/

    in reply to: Hide specific roles from member list page #41224
     Parkproductions
    Participant

    Yeah moderator was not the right role to use for the accounts I wanted hidden, I just changed them to administrators (The accounts were setup to post content in each sport group) and used the following code to hide them from the members list added to functions.php

    function get_user_ids_by_role($role){
    $users=array();
    $founded_users = get_users( array( ‘role’ => $role ) );
    if(!empty($founded_users)){
    foreach((array)$founded_users as $user)
    $users[]=$user->ID;
    }

    return $users;
    }

    function exclude_by_role( $exclude_roles, $implode = true ) {
    $memberArray = array();
    foreach ( $exclude_roles as $exclude_role ) {
    $memberArray = array_merge($memberArray, get_user_ids_by_role($exclude_role) );
    }

    if( !$implode )
    return $memberArray;

    $theExcludeString = implode( “,”, $memberArray );
    return $theExcludeString;
    }

    add_action(‘bp_ajax_querystring’,’bp_exclude_byroles’,20, 2);
    function bp_exclude_byroles($qs=false,$object=false){

    if($object!=’members’) //hide for members only
    return $qs;

    $args = wp_parse_args($qs);
    //check if we are searching for friends list etc?, do not exclude in this case
    if(!empty($args[‘user_id’]))
    return $qs;

    $excluded_roles = array( ‘administrator’ ); // you can add roles here
    $exclude = exclude_by_role( $excluded_roles );

    if(!empty($args[‘exclude’]))
    $args[‘exclude’]=$args[‘exclude’].’,’.$exclude;
    else
    $args[‘exclude’] = $exclude;

    $qs = build_query($args);
    return $qs;
    }

    in reply to: Membership Levels add extra fields #35284
     Parkproductions
    Participant

    what a way to ask for a feature…

    in reply to: Remove activity from profile. #35153
     Parkproductions
    Participant

    Is there a thread for removing items from group pages? I need to get rid of members and send invites from invite-anyone plugin

    in reply to: Ajax Registration Plugin compaitibility #33402
     Parkproductions
    Participant

    I’m so close to getting to work how I’d like, but I am coming across this error still. I have tried disabling all plugins and using twenty fourteen theme but no luck.

    The attached screenshot error comes from the current dev setup and post found here http://www.dev.globalsportcoach.com/kicking-with-alex-davies-london-welsh-fly-half-coach/

    ‘Please Register for free to view full article’ triggers the ajax registration form at the bottom of the post but fails to close on submission. The registration goes through fine though.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Ajax Registration Plugin compaitibility #33306
     Parkproductions
    Participant

    Thank you for the link, worked perfectly. Now I just need to solve the issue I’m getting with paid membership pro content restriction shortcoades to hide content from non-logged in members. I’ve got it to work with 2014 theme but not Kleo.

    I’ll make another post but thanks again for the help. Great support from both seventh queen and ajax-registration author.

    in reply to: Ajax Registration Plugin compaitibility #32376
     Parkproductions
    Participant

    Also is there any way to set the default paid membership pro level on the registration page (does register helper do this?).

    I don’t want users to have to go to the pricing table page and select free to view the restricted post.

    I want them to quickly register from the post page and be set as level 1 membership by default and view content.

    in reply to: Ajax Registration Plugin compaitibility #32374
     Parkproductions
    Participant

    Yeah I have taken cometchat out, the registration form opens but doesn’t close on submission. I’ve tried it on the 2014 theme and still has the same issues, but the plugin developer seems to think its theme related.

    ‘The fault is not with the plugin but your theme, Have you got in touch with the theme developer and asked them about the issue?’

    Guessing its a conflict with some other plugins on my site.

    in reply to: Pricing table description html issue #29953
     Parkproductions
    Participant
    COPY CODE
    <?php 
    global $wpdb, $pmpro_msg, $pmpro_msgt, $pmpro_levels, $current_user, $pmpro_currency_symbol;
    if($pmpro_msg)
    {
    ?>
    <div class="message <?php echo $pmpro_msgt?>"><?php echo $pmpro_msg?></div>
    <?php
    }
    ?>
    <div class="row membership pricing-table">
        
    	<?php	
      $restrict_options = kleo_memberships();
      
    	$pmpro_levels = array_filter($pmpro_levels);
    	
      $levelsno = count($pmpro_levels);
      $levelsno = ($levelsno == 0)? 1:$levelsno;
      $level_cols = 12/$levelsno;
    	
    	$newoptions = sq_option('membership');
    
    	$popular = $newoptions['kleo_membership_popular'];
    	$kleo_pmpro_levels_order = isset($newoptions['kleo_pmpro_levels_order']) ? $newoptions['kleo_pmpro_levels_order'] : NULL;
    
      
      switch ($level_cols)
      {
          case "1":
            $level_cols = "1";
            break;
          case "2":
            $level_cols = "2";
            break;
          case "3":
            $level_cols = "3";
            break;
          case "4":
            $level_cols = "4";
            break;
          case "6":
            $level_cols = "6";
            break;
          case "12":
            $level_cols = "12";
            break;
          default: 
            $level_cols = "3";
            break;
      }
      $level_cols = apply_filters('kleo_pmpro_level_columns', $level_cols);
      
      $pmpro_levels_sorted = array();
      
      if (is_array($kleo_pmpro_levels_order)) 
      {
        asort($kleo_pmpro_levels_order);
    
        foreach($kleo_pmpro_levels_order as $k => $v)
        {
          if(!empty($pmpro_levels[$k])) {
            $pmpro_levels_sorted[$k] = $pmpro_levels[$k];
            unset($pmpro_levels[$k]);
          }
        }
        $pmpro_levels_sorted = $pmpro_levels_sorted + $pmpro_levels;
      }
     else  
     {
       $pmpro_levels_sorted = $pmpro_levels;
     }
      
    	foreach($pmpro_levels_sorted as $level)
    	{
        if(isset($current_user->membership_level->ID)) {
    		  $current_level = ($current_user->membership_level->ID == $level->id);
    		}
    	  else {
    		  $current_level = false;
    		}
    	?>
    
      <div class="col-md-<?php echo $level_cols;?>">
        <div class="panel text-center panel-info kleo-level-<?php echo $level->id; ?><?php if ($popular == $level->id) echo ' popular';?>">
          <div class="panel-heading"><h3><?php echo $level->name; ?></h3></div>
          <div id="level-image">
          </div>
          <div class="panel-body">
            <?php
            //recurring part
            if(pmpro_isLevelFree($level))
            {
              echo "<strong>" . __('Free', 'pmpro') . "</strong>";
            }
            elseif($level->billing_amount != '0.00')
            {
              if($level->billing_limit > 1)
              {			
                if($level->cycle_number == '1')
                {
                  printf(_x('%s per %s for %d more %s.', 'Recurring payment in cost text generation. E.g. $5 every month for 2 more payments.', 'kleo_framework'), $pmpro_currency_symbol . $level->billing_amount, pmpro_translate_billing_period($level->cycle_period), $level->billing_limit, pmpro_translate_billing_period($level->cycle_period, $level->billing_limit));					
                }				
                else
                { 
                  printf(_x('%s every %d %s for %d more %s.', 'Recurring payment in cost text generation. E.g., $5 every 2 months for 2 more payments.', 'kleo_framework'), $pmpro_currency_symbol . $level->billing_amount, $level->cycle_number, pmpro_translate_billing_period($level->cycle_period, $level->cycle_number), $level->billing_limit, pmpro_translate_billing_period($level->cycle_period, $level->billing_limit));					
                }
              }
              elseif($level->billing_limit == 1)
              {
                printf(_x('%s after %d %s.', 'Recurring payment in cost text generation. E.g. $5 after 2 months.', 'kleo_framework'), $pmpro_currency_symbol . $level->billing_amount, $level->cycle_number, pmpro_translate_billing_period($level->cycle_period, $level->cycle_number));									
              }
              else
              {
                if($level->cycle_number == '1')
                {
                  printf(_x('%s per %s.', 'Recurring payment in cost text generation. E.g. $5 every month.', 'kleo_framework'), $pmpro_currency_symbol . $level->billing_amount, pmpro_translate_billing_period($level->cycle_period));					
                }				
                else
                { 
                  printf(_x('%s every %d %s.', 'Recurring payment in cost text generation. E.g., $5 every 2 months.', 'kleo_framework'), $pmpro_currency_symbol . $level->billing_amount, $level->cycle_number, pmpro_translate_billing_period($level->cycle_period, $level->cycle_number));					
                }			
              }
            }			
    
            //trial
            if(pmpro_isLevelTrial($level))
            {
              if($level->trial_amount == '0.00')
              {
                if($level->trial_limit == '1')
                {
                  echo ' ' . _x('After your initial payment, your first payment is Free.', 'Trial payment in cost text generation.', 'pmpro');
                }
                else
                {
                  printf(' ' . _x('After your initial payment, your first %d payments are Free.', 'Trial payment in cost text generation.', 'pmpro'), $level->trial_limit);
                }
              }
              else
              {
                if($level->trial_limit == '1')
                {
                  printf(' ' . _x('After your initial payment, your first payment will cost %s.', 'Trial payment in cost text generation.', 'pmpro'), $pmpro_currency_symbol . $level->trial_amount);
                }
                else
                {
                  printf(' ' . _x('After your initial payment, your first %d payments will cost %s.', 'Trial payment in cost text generation. E.g. ... first 2 payments will cost $5', 'pmpro'), $level->trial_limit, $pmpro_currency_symbol . $level->trial_amount);
                }
              }
            }
    
            $expiration_text = pmpro_getLevelExpiration($level);
            if($expiration_text)
            {
            ?>
              <br /><span class="pmpro_level-expiration"><?php echo $expiration_text?></span>
            <?php
            }
            ?>
    					
    				<div class="pmpro-price">
    					<p class="lead">
    					<?php if(pmpro_isLevelFree($level) || $level->initial_payment === "0.00") { ?>
    							<?php echo $pmpro_currency_symbol?><?php _e('0', 'pmpro');?>
    					<?php } else {
    						$l_price = explode(".", $level->initial_payment);
    						
    						echo $pmpro_currency_symbol; echo $l_price[0];
    						if (isset($l_price[1])) {
    							echo '<sup>.' . $l_price[1] . '</sup>';
    						}
    					} ?>
    					</p>
    				</div>
    					
          </div>
    
    			
    
    			
          <?php if ($level->description) { ?>
          <div class="extra-description"><?php echo $level->description;?></div>
          <?php } ?>
    			
          <ul class="list-group list-group-flush">
          <?php 
          global $kleo_pay_settings;
          foreach ($kleo_pay_settings as $set) {      
            if ($restrict_options[$set['name']]['showfield'] != 2) { ?>
            <li class="list-group-item <?php if($restrict_options[$set['name']]['type'] == 1 || ($restrict_options[$set['name']]['type'] == 2 && isset($restrict_options[$set['name']]['levels']) && is_array($restrict_options[$set['name']]['levels']) && in_array($level->id,$restrict_options[$set['name']]['levels'])) ) { _e("unavailable",'pmpro');}?>"><?php echo $set['front'];?></li>
            <?php 
            }
          } 
          do_action('kleo_pmpro_after_membership_table_items', $level);
          ?>
          </ul>
    			
          <div class="panel-footer">
            <?php if(empty($current_user->membership_level->ID)) { ?>
              <a class="<?php if ($popular == $level->id) echo 'btn btn-highlight'; else echo 'btn btn-default';?>" href="<?php echo pmpro_url("checkout", "?level=" . $level->id, "https")?>"><?php _e('Select', 'kleo_framework');?></a>               
            <?php } elseif ( !$current_level ) { ?>                	
              <a class="<?php if ($popular == $level->id) echo 'btn btn-default'; else echo 'btn btn-default';?>" href="<?php echo pmpro_url("checkout", "?level=" . $level->id, "https")?>"><?php _e('Select', 'kleo_framework');?></a>       			
            <?php } elseif($current_level) { ?>      
              <a class="btn btn-default disabled" href="<?php echo pmpro_url("account")?>"><?php _e('Your&nbsp;Level', 'pmpro');?></a>
            <?php } ?>
                    
          </div>
        </div>
      </div>
    	<?php  
      }
      ?>
    		
    </div>
    
    <nav id="nav-below" class="navigation" role="navigation" style="display: inline-block;">
    	<div class="nav-previous alignleft">
    		<?php if(!empty($current_user->membership_level->ID)) { ?>
    			<a href="<?php echo pmpro_url("account")?>" class="btn btn-link"><?php _e('&larr; Return to Your Account', 'pmpro');?></a>
    		<?php } else { ?>
    			<a href="<?php echo home_url()?>" class="btn btn-link"><?php _e('&larr; Return to Home', 'pmpro');?></a>
    		<?php } ?>
    	</div><br>&nbsp;<br><br>
    </nav>
    in reply to: Pricing table description html issue #29952
     Parkproductions
    Participant

    Content is being taken from paid membership pro plugin level area, so the template is essentially the same as the original theme just display:none added to kleo list items.

    levels.php was edited to include an image div as I couldn’t just add it in paid membership pro description field.

    in reply to: Pricing table description html issue #29805
     Parkproductions
    Participant
    in reply to: Pricing table description html issue #29804
     Parkproductions
    Participant

    I took the code out as it was on a live site. Will link to a dev site to replicate issue again.

    in reply to: Membership Levels add extra fields #28313
     Parkproductions
    Participant

    Thanks for the response, I hope this feature can be added to new updates of the theme.

    in reply to: Membership Levels add extra fields #27884
     Parkproductions
    Participant

    How does the example code work if I have 3 membership options and want to add unique features to one box? At the moment it will add a feature to all price tables not just a specific one.

    in reply to: Profile Cover Plugin #27508
     Parkproductions
    Participant

    Looks good sharmstr, I will likely implement it once you get the cropping function, as I finally got my site stable enough to start advertising.

    in reply to: Un-shorten profile labels #26727
     Parkproductions
    Participant

    If you find a way that incorporates the image cropping feature that would be of great interest to me.

    in reply to: Un-shorten profile labels #26726
     Parkproductions
    Participant

    Thanks for the tips. I did notice the gap that occurs when the image is cropped, larger images tend to fill the space, I will need to play around with the css to make it cover properly.

    in reply to: Un-shorten profile labels #26724
     Parkproductions
    Participant

    Hey @sharmstr,

    Thanks for the help and checking the site out.

    For the header images I had to use 2 plugins. 1 for profiles and 1 for groups, with a little css modification to fit the kleo theme.

    Profiles
    http://buddydev.com/plugins/bp-custom-background-for-user-profile/

    Groups
    http://buddydev.com/buddypress/introducing-buddypress-group-customizer-lite-allow-group-admins-to-change-buddypress-group-background/

    CSS modification
    http://buddypress.org/support/topic/cover-photos-for-profiles/

    I took out the show more/less function as it was getting messy moving things around, id still prefer to float all of the profile heading parts as it needs to expand to fit peoples bio’s in the future.

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

Log in with your credentials

Forgot your details?