Title: dompl's Replies | WordPress.org

---

# dompl

  [  ](https://wordpress.org/support/users/dompl/)

 *   [Profile](https://wordpress.org/support/users/dompl/)
 *   [Topics Started](https://wordpress.org/support/users/dompl/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dompl/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dompl/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dompl/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dompl/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dompl/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/users/dompl/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dompl/replies/page/3/?output_format=md) 
[→](https://wordpress.org/support/users/dompl/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookie Information | Free GDPR Consent Solution] Gravity forms not listed for user](https://wordpress.org/support/topic/gravity-forms-not-listed-for-user/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/gravity-forms-not-listed-for-user/#post-10284929)
 * 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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] Possible Plugin Conflict](https://wordpress.org/support/topic/possible-plugin-conflict-5/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/possible-plugin-conflict-5/#post-7268182)
 * Same problem here. But I dont think its in any way related to the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions] Check article assigned Membership Level ID](https://wordpress.org/support/topic/check-article-assigned-membership-level-id/)
 *  Thread Starter [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/check-article-assigned-membership-level-id/#post-6766021)
 * 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;
               }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme My Login] Register extra/additional fields for Theme My Login including admin](https://wordpress.org/support/topic/register-extraadditional-fields-for-theme-my-login-including-admin/)
 *  Thread Starter [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/register-extraadditional-fields-for-theme-my-login-including-admin/#post-5275350)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Fetch Tweets] Cannot redeclare class FetchTweets_Template_Settings_Plain](https://wordpress.org/support/topic/cannot-redeclare-class-fetchtweets_template_settings_plain/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cannot-redeclare-class-fetchtweets_template_settings_plain/page/2/#post-5248167)
 * I have this resolved.
 * Here is what I’ve done
    1. rename plugin i your plugin directory,
    2. activate the plugin,
    3. clear all cache and settings,
    4. Authorize the APP,
    5. rename the plug in back to original.
 * Hope it helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Fetch Tweets] Cannot redeclare class FetchTweets_Template_Settings_Plain](https://wordpress.org/support/topic/cannot-redeclare-class-fetchtweets_template_settings_plain/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cannot-redeclare-class-fetchtweets_template_settings_plain/page/2/#post-5248166)
 * Hi 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] People who bought shows duplicate items.](https://wordpress.org/support/topic/people-who-bought-shows-duplicate-items/)
 *  Thread Starter [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/people-who-bought-shows-duplicate-items/#post-5129939)
 * Works like a charm, thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] People who bought shows duplicate items.](https://wordpress.org/support/topic/people-who-bought-shows-duplicate-items/)
 *  Thread Starter [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/people-who-bought-shows-duplicate-items/#post-5129888)
 * 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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions] PMPro Addons Plugin](https://wordpress.org/support/topic/pmpro-addons-plugin/)
 *  Thread Starter [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [12 years ago](https://wordpress.org/support/topic/pmpro-addons-plugin/#post-5078248)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Images will NOT post in 3.8 WRITING size as 1px by 1px](https://wordpress.org/support/topic/images-will-not-post-in-38-writing-size-as-1px-by-1px/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/images-will-not-post-in-38-writing-size-as-1px-by-1px/page/3/#post-4431033)
 * Hi 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analytics360] unable to authenticate with google](https://wordpress.org/support/topic/unable-to-authenticate-with-google-2/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/unable-to-authenticate-with-google-2/#post-4657081)
 * Same here, Any ideas?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YARPP - Yet Another Related Posts Plugin] [Plugin: Yet Another Related Posts Plugin] 3.5.1- No Related Posts](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-no-related-posts/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [14 years ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-no-related-posts/page/2/#post-2608579)
 * 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
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YARPP - Yet Another Related Posts Plugin] [Plugin: Yet Another Related Posts Plugin] 3.5.1- No Related Posts](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-no-related-posts/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [14 years ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-no-related-posts/page/2/#post-2608577)
 * 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>';
       				}
       }
       ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YARPP - Yet Another Related Posts Plugin] [Plugin: Yet Another Related Posts Plugin] 3.5.1- No Related Posts](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-no-related-posts/)
 *  [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [14 years ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-no-related-posts/#post-2608571)
 * 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?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JetBackup - Backup, Restore & Migrate] [Plugin: Backup] Large file upload to Google Drive problems](https://wordpress.org/support/topic/plugin-backup-large-file-upload-to-google-drive-problems/)
 *  Thread Starter [dompl](https://wordpress.org/support/users/dompl/)
 * (@dompl)
 * [14 years ago](https://wordpress.org/support/topic/plugin-backup-large-file-upload-to-google-drive-problems/#post-2818836)
 * Yes, I’ve set it up to 10 min.
 * Lest then just wait a while. Ill update later on today.
 * thanks

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/users/dompl/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dompl/replies/page/3/?output_format=md) 
[→](https://wordpress.org/support/users/dompl/replies/page/2/?output_format=md)