Title: doginthehat's Replies | WordPress.org

---

# doginthehat

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

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

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] [Plugin: Advanced Custom Fields] No Repeater option](https://wordpress.org/support/topic/plugin-advanced-custom-fields-no-repeater-option/)
 *  Thread Starter [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-no-repeater-option/#post-2933784)
 * Oooh, I get it. I need to _buy it_.
 * Sneaky
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post In Post] [Plugin: Post In Post] Doesnt work](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/)
 *  Plugin Author [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [14 years ago](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/#post-2799884)
 * Can’t reproduce.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post In Post] [Plugin: Post In Post] Doesnt work](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/)
 *  Plugin Author [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [14 years ago](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/#post-2799878)
 * Hi mstg2000,
 * Do you have any more feedback to give to this?
 * I might close this off otherwise..
 * Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post In Post] [Plugin: Post In Post] Doesnt work](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/)
 *  Plugin Author [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [14 years ago](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/#post-2799848)
 * Hi mstg2000,
 * Do you have any additional info that could help me troubleshoot your problem?
 * I’d like to get that resolved for you.
 * Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post In Post] [Plugin: Post In Post] Doesnt work](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/)
 *  Plugin Author [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/#post-2799827)
 * Tried on PHP 5.2.17, 5.3.6 & 5.3.8 on Apache 2 and I still can’t break it.
 * mmmm, not sure why it’s not working for you..
 * The popup should do a background XHR request to load the content when it opens.
   Are you able to inspect it with Chrome dev tools? That might give some clue as
   to why it’s failing..
 * Sorry I can’t be much more help, i’m unable to reproduce the problem..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post In Post] [Plugin: Post In Post] Doesnt work](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/)
 *  Plugin Author [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/#post-2799822)
 * Hi,
 * Thanks again for trying to help out.
 * Works ok for me on a fresh install.. maybe something on the server. Which server
   are you running with? which PHP version?
 * Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post In Post] [Plugin: Post In Post] Doesnt work](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/)
 *  Plugin Author [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/#post-2799639)
 * Mmmm, works for me in Chrome, FF, IE7+ on two different sites..
 * Which WordPress version are you using?
 * Maybe it’s a conflicting plugin? The plugin uses WP_Query, maybe something is
   affecting its behaviour?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post In Post] [Plugin: Post In Post] Doesnt work](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/)
 *  Plugin Author [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-in-post-doesnt-work/#post-2799635)
 * Hi mstg2000.
 * Thanks for the feedback. I’ll look into it.
 * Can you provide any additional helpful details? Which browser are you using?
 * Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Fields] [Plugin: Simple Fields] Undefined index error on description](https://wordpress.org/support/topic/plugin-simple-fields-undefined-index-error-on-description/)
 *  Thread Starter [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-simple-fields-undefined-index-error-on-description/#post-2740799)
 * Also getting “Notice: Undefined index: type_checkbox_options in /Users/benl/Sites/
   centigrade/wp-content/plugins/simple-fields/functions_post.php on line 524” when
   I try to use Simple Fields with a checkbox..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Bug fix: wpdb insert & update with null values](https://wordpress.org/support/topic/bug-fix-wpdb-insert-amp-update-with-null-values/)
 *  Thread Starter [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/bug-fix-wpdb-insert-amp-update-with-null-values/#post-1411683)
 * Super old.. I forgot about this post (shame WP forums cant send update emails)..
 * I’ve fixed the source file in my dropbox
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Bug fix: wpdb insert & update with null values](https://wordpress.org/support/topic/bug-fix-wpdb-insert-amp-update-with-null-values/)
 *  Thread Starter [doginthehat](https://wordpress.org/support/users/bendog/)
 * (@bendog)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/bug-fix-wpdb-insert-amp-update-with-null-values/#post-1411386)
 * mmm.. can’t seem to be able to update my own post.
 * Just fixed a but in the fix (*roll eyes*).
 * Updated the version in the dropbox link
 *     ```
       <?php
   
       // setup a dummy wpdb to prevent the default one from being instanciated
       $wpdb = new stdclass();
   
       // include the base wpdb class to inherit from
       include ABSPATH . WPINC . "/wp-db.php";
   
       class wpdbfixed extends wpdb
       {
       	function insert($table, $data, $format = null) {
       		$formats = $format = (array) $format;
       		$fields = array_keys($data);
       		$formatted_fields = array();
       		$real_data = array();
       		foreach ( $fields as $field ) {
       			if ($data[$field]===null)
       			{
       				$formatted_fields[] = 'NULL';
       				continue;
       			}
       			if ( !empty($format) )
       				$form = ( $form = array_shift($formats) ) ? $form : $format[0];
       			elseif ( isset($this->field_types[$field]) )
       				$form = $this->field_types[$field];
       			else
       				$form = '%s';
       			$formatted_fields[] = "'".$form."'";
       			$real_data[] = $data[$field];
       		}
       		$sql = "INSERT INTO <code>$table</code> (<code>&quot; . implode( '</code>,<code>', $fields ) . &quot;</code>) VALUES (" . implode( ",", $formatted_fields ) . ")";
       		return $this->query( $this->prepare( $sql, $real_data) );
       	}
   
       	function update($table, $data, $where, $format = null, $where_format = null)
       	{
       		if ( !is_array( $where ) )
       			return false;
   
       		$formats = $format = (array) $format;
       		$bits = $wheres = array();
       		$fields = (array) array_keys($data);
       		$real_data = array();
       		foreach ( $fields as $field ) {
       			if ($data[$field]===null)
       			{
       				$bits[] = "<code>$field</code> = NULL";
       				continue;
       			}
       			if ( !empty($format) )
       				$form = ( $form = array_shift($formats) ) ? $form : $format[0];
       			elseif ( isset($this->field_types[$field]) )
       				$form = $this->field_types[$field];
       			else
       				$form = '%s';
       			$bits[] = "<code>$field</code> = {$form}";
   
       			$real_data[] = $data[$field];
       		}
   
       		$where_formats = $where_format = (array) $where_format;
       		$fields = (array) array_keys($where);
       		foreach ( $fields as $field ) {
       			if ( !empty($where_format) )
       				$form = ( $form = array_shift($where_formats) ) ? $form : $where_format[0];
       			elseif ( isset($this->field_types[$field]) )
       				$form = $this->field_types[$field];
       			else
       				$form = '%s';
       			$wheres[] = "<code>$field</code> = {$form}";
       		}
   
       		$sql = "UPDATE <code>$table</code> SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres );
   
       		return $this->query( $this->prepare( $sql, array_merge($real_data, array_values($where))) );
       	}
   
       }
   
       $wpdb = new wpdbfixed(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
       ```
   

Viewing 11 replies - 1 through 11 (of 11 total)