doginthehat
Forum Replies Created
-
Oooh, I get it. I need to buy it.
Sneaky
Forum: Plugins
In reply to: [Post In Post] [Plugin: Post In Post] Doesnt workCan’t reproduce.
Forum: Plugins
In reply to: [Post In Post] [Plugin: Post In Post] Doesnt workHi mstg2000,
Do you have any more feedback to give to this?
I might close this off otherwise..
Ben
Forum: Plugins
In reply to: [Post In Post] [Plugin: Post In Post] Doesnt workHi 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
In reply to: [Post In Post] [Plugin: Post In Post] Doesnt workTried 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
In reply to: [Post In Post] [Plugin: Post In Post] Doesnt workHi,
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
In reply to: [Post In Post] [Plugin: Post In Post] Doesnt workMmmm, 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
In reply to: [Post In Post] [Plugin: Post In Post] Doesnt workHi 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
In reply to: [Simple Fields] [Plugin: Simple Fields] Undefined index error on descriptionAlso 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
In reply to: Bug fix: wpdb insert & update with null valuesSuper old.. I forgot about this post (shame WP forums cant send update emails)..
I’ve fixed the source file in my dropbox
Forum: Plugins
In reply to: Bug fix: wpdb insert & update with null valuesmmm.. 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>" . implode( '</code>,<code>', $fields ) . "</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);