dompl
Forum Replies Created
-
Hi,
First of all, thank you for great plugin!
I have the same problem. There is no gravity forms submissions showing.
I checked no your website and it says you are guys are currently working on it for 1.3.4
If so, would you know the release date.
Thanks in advance!
Same problem here. But I dont think its in any way related to the plugin.
If anyone is interested here is how I solved it :
$sqlQuery = "SELECT m.id, m.name FROM $wpdb->pmpro_memberships_pages mp LEFT JOIN $wpdb->pmpro_membership_levels m ON mp.membership_id = m.id WHERE mp.page_id = '" . $post->ID . "'"; $post_membership_levels = $wpdb->get_results($sqlQuery); foreach($post_membership_levels as $level) { $post_membership_levels_ids[] = $level->id; $post_membership_levels_names[] = $level->name; }
Sorry guys. Here is the one that will work. And yes @attenkind, It will work after upgrade.
<?php function tml_registration_errors( $errors ) { if ( empty( $_POST['first_name'] ) ) $errors->add( 'empty_first_name', '<strong>ERROR</strong>: Please enter your first name.' ); if ( empty( $_POST['last_name'] ) ) $errors->add( 'empty_last_name', '<strong>ERROR</strong>: Please enter your last name.' ); if ( empty( $_POST['job_title'] ) ) $errors->add( 'empty_job_title', '<strong>ERROR</strong>: Job title is required' ); return $errors; } add_filter( 'registration_errors', 'tml_registration_errors' ); function tml_user_register( $user_id ) { if ( !empty( $_POST['first_name'] ) ) update_user_meta( $user_id, 'first_name', $_POST['first_name'] ); if ( !empty( $_POST['last_name'] ) ) update_user_meta( $user_id, 'last_name', $_POST['last_name'] ); if ( !empty( $_POST['job_title'] ) ) update_user_meta( $user_id, 'job_title', $_POST['job_title'] ); if ( !empty( $_POST['company'] ) ) update_user_meta( $user_id, 'company', $_POST['company'] ); if ( !empty( $_POST['country'] ) ) update_user_meta( $user_id, 'country', $_POST['country'] ); } add_action('show_user_profile', 'tml_user_register'); add_action('edit_user_profile', 'tml_user_register'); function my_save_extra_profile_fields( $user_id ) { if ( !current_user_can( 'edit_user', $user_id ) ) return false; if(!empty( $_POST['company'])){ update_usermeta( $user_id, 'company', $_POST['company'] ); } if(!empty( $_POST['job_title'])){ update_usermeta( $user_id, 'job_title', $_POST['job_title'] ); } if(!empty( $_POST['country'])){ update_usermeta( $user_id, 'country', $_POST['country'] ); } } add_action( 'personal_options_update', 'my_save_extra_profile_fields' ); add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' ); ?>
WordPress Hook
function my_show_extra_profile_fields( $user ) { ?> <table class="form-table"> <tr> <th><label for="job_title">Job Title</label></th> <td> <input type="text" name="job_title" id="job_title" value="<?php echo esc_attr( get_the_author_meta( 'job_title', $user->ID ) ); ?>" class="regular-text" /><br /> </td> </tr> <tr> <th><label for="company">Company</label></th> <td> <input type="text" name="company" id="company" value="<?php echo esc_attr( get_the_author_meta( 'company', $user->ID ) ); ?>" class="regular-text" /><br /> </td> </tr> <tr> <th><label for="country"><?php _e( 'Country' ); ?></label></th> <td><?php $current = get_the_author_meta( 'country', $user->ID ); ?> <select name="country" id="country" class="regular-country"> <?php $current = get_the_author_meta( 'country', $user->ID ); $countries = array('United Kingdom','Afghanistan''Zimbabwe','Aland Islands'); foreach ($countries as $key => $value) { ?> <option <?php echo($value==$current) ? 'selected="selected"' : ''; ?> value="<?php echo $value; ?>"><?php echo $value; ?></option>'; <?php } ?> </select> </td> </tr> </table> <?php } ?>
Forum: Plugins
In reply to: [Fetch Tweets] Cannot redeclare class FetchTweets_Template_Settings_PlainI have this resolved.
Here is what I’ve done
- rename plugin i your plugin directory,
- activate the plugin,
- clear all cache and settings,
- Authorize the APP,
- rename the plug in back to original.
Hope it helps.
Forum: Plugins
In reply to: [Fetch Tweets] Cannot redeclare class FetchTweets_Template_Settings_PlainHi guys.
Did you manage to solve this problem? I have the same issue.
Tried all the suggestions in this post and the only one that worked was renaming the plugin folder.
For me the problem accrues when website gets deployed from local to remove
Thanks
Forum: Plugins
In reply to: [WP eCommerce] People who bought shows duplicate items.Works like a charm, thanks!
Forum: Plugins
In reply to: [WP eCommerce] People who bought shows duplicate items.Hi Mihai,
Thanks for your reply.
I can see that this functionality is in the wp e-commerce folder
wp-content\plugins\wp-e-commerce\wpsc-components\theme-engine-v1\helpers\product.php
Would that be an independent plugin?
Thanks!
Got the solution
function my_pmproap_all_access_levels($levels, $user_id, $post_id) { //I'm just adding the level, but I could do some calculation based on the user and post id to programatically give access to content $levels = array(1); return $levels; } add_filter("pmproap_all_access_levels", "my_pmproap_all_access_levels", 10, 3);
Forum: Fixing WordPress
In reply to: Images will NOT post in 3.8 WRITING size as 1px by 1pxHi guys.
I had the same problem and after hours spend on searching for solution decides to look into it myself.
Basically I had 9 different thumbnail sizes set in my function.php after limiting the amount to 8 by removing once image size everything started to work as it should.
I have no idea why, but it seem that reducing the amount of generating images helped.
Forum: Plugins
In reply to: [Analytics360] unable to authenticate with googleSame here, Any ideas?
It’s a great plugin, but it’s “heavy”. The code Ive pasted above will show you related post using tag. You can adjust it the way you want. I paste it straight from my site Under Construction.
If you’re planning on using the featured imaged dont forget to add the support in your functions.php
add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 150, true ); // Normal post thumbnails add_image_size( 'single-post-thumbnail', 250,400, TRUE); // Your thumbnail size
This might help you: (sorry, bit messy code)
<?php $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $args=array( 'tag__in' => $tag_ids, 'post__not_in' => array($post->ID), 'showposts'=>5, // Number of related posts that will be shown. 'caller_get_posts'=>1 ); $my_query = new wp_query($args); if( $my_query->have_posts() ) { echo '<h3>Products related to '. get_the_title() .'</h3>'; echo '<ul>'; while ($my_query->have_posts()) { $my_query->the_post(); ?> <li> <h4> <a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title_attribute(); ?>"> <?php the_title(); ?> </a> </h4> <a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title_attribute(); ?>"> <?php the_post_thumbnail('related-product-thumbnail');?> </a> </li> <?php } echo '</ul>'; } } ?>
Plugin is not working with WP 3.4. Any chances for fix?
No related posts.
Excellent tool, shame it’s not working.
Any chance for update please?
Yes, I’ve set it up to 10 min.
Lest then just wait a while. Ill update later on today.
thanks