RobotHero
Forum Replies Created
-
Forum: Hacks
In reply to: Making custom admin page for use in Thickbox?If I’m following you I’d create a dummy page using this custom template and then use the path for that page?
I can pass any path I want to tb_show() so yeah, calling window.location.assign seemed to be addressing the least difficult part of my problem. ??
I would have done just an inline Thickbox with an AJAX form but I have to deal with media attachments which is simpler through a non-AJAX form.
Forum: Hacks
In reply to: Making custom admin page for use in Thickbox?That’s not quite what I meant. The only javascript I’m calling is for the Thickbox, and that works fine.
I’m trying out approaching from the other direction like they’re talking about here:
https://wordpress.stackexchange.com/questions/97742/bare-minimum-to-include-in-php-file-to-use-wp-functionsForum: Hacks
In reply to: Media Library list?Okay, it turns out the three entries were being created by another plugin.
Forum: Hacks
In reply to: Media Library list?The obvious thing would be to search for post_type=’attachment’ but every media file has three entries in wp_posts plus the wp_postmeta data _wp_attached_file, wpml_media_processed, _wp_attachment_metadata so I would assume there’s some proper channels I should go through that makes sense of all that.
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] Disable styleWell, in the meantime, I’ve removed it and set the plugin to version 100.9 so it doesn’t get updated. I’ll keep an eye out if it’s removed in later versions I can change the plugin.
Forum: Plugins
In reply to: List category shortcode w/ custom formattingI’ve rolled my own using instructions from this page:
https://www.wprecipes.com/wordpress-shortcode-display-the-loopThat seems to do the trick.
I am using a custom theme, but I briefly tested it in Twenty Ten, Twenty Eleven, girl from ThemesPackm, and Strawberry Blend By Maruf Rahman, and it still gives me the error message. I’m sure you’d have tested at least one of those.
And I also mentioned I temporarily disabled the other plugins.
So, since I’ve ruled out plugins and themes, what’s left? What else is there that could possibly be conflicting with this plugin?
Forum: Installing WordPress
In reply to: drupal Error establishing a database connection = what?And I found a thing in my hosts stuff what says I had to use:
localhost:/tmp/mysql5.sockI don’t know why Drupal never needed that but WordPress did. But it works, now.
Forum: Installing WordPress
In reply to: drupal Error establishing a database connection = what?Okay, I got it to work on the second site by changing ‘localhost’ to the actual domain name. But that didn’t work on the original site I had a problem with.
On the first one, I’ve tried thedomain.com, https://www.thedomain.com, the IP address, local, none has worked. And I would have expected ‘localhost’ to work fine, because that’s what Drupal was using without any problem.
Forum: Installing WordPress
In reply to: drupal Error establishing a database connection = what?I’ve now tried it on another site where I wasn’t concerned about losing the drupal install, and I cleared all that out, emptied the database, and got the same error.
It’s a different host, same problem.
I get the full error on
wp-activate.php
and
wp-admin/install.phpJust the one line on index.php
Forum: Installing WordPress
In reply to: drupal Error establishing a database connection = what?It says “Create, Alter SP, Execute SP, Update, Delete, Show View, Lock, Create View, Drop, Create SP, Select, Alter, Insert”
I think that’s all of them, plus I went to phpMyadmin and created and dropped a table.
Forum: Everything else WordPress
In reply to: editnew.php isn’t same as edit.phpwp-blog-header.php seemed a likely source for the difference, because that’s where $posts gets filled.
But the only mention of ‘edit.php’ it contains is about gzipcompression, which doesn’t seem relevant.
I also tried admin-functions.php, functions-post.php, and a few others, and didn’t see anything that looked like it would account for the difference.
Forum: Plugins
In reply to: date functions?function rrh_add_days ($date, $days){
$days_adj = strtotime($date) + $days * 3600 * 24;
$date = date(‘Y-m-d H:i:s’, $days_adj);
return $date;
}Forum: Everything else WordPress
In reply to: date conversionI found my own answers.
strtotime($date);
and
date(‘Y-m-d H:i:s’, $days_adj);
Forum: Everything else WordPress
In reply to: .htaccess and arithmeticI suppose I could. Like, if I have 9 comics in there already, I’ll put the number 0 comic in post number 9. I’ll handle comics 1 through 8 as I already do, and have an extra rule for comic 0. Somehow that hadn’t occurred to me. I think I have a prejudice against exceptions.
But I still would like to know how to do arithmetic. I’m sure it will come in handy some day.