Chip Bennett
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Images Not Inserting into WYSIWYG editorI have disabled all plugins – No change
I have cleared all caches – No change
If you have disabled all Plugins, what cache remained to be cleared? Or, did you clear your cache before disabling your cache Plugin?
Definitely try the hard-reset of the Plugins folder, as @esmi recommended.
For things that are JavaScript/jQuery-intensive (such as the media uploader), one of the most common problems is the browser script cache. So, after you have reset the Plugins folder and changed the active Theme to Twenty Twelve, try doing a hard-reset of your browser cache as well.
Forum: Themes and Templates
In reply to: PHP help for displaying featured images on pagesSo, there’s nothing really Genesis Theme specific here. The key is this part of the callback:
if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) ) return; if ( is_page() && has_post_thumbnail() ) { printf( $image ); } else { return; }Your second conditional is really unnecessary. Try adding the
has_post_thumbnail()to the first conditional. For example, the following conditional will *not* print the image if the following are true:
– The current post does NOT have a post thumbail, OR
– The current page is an archive index AND the specified option is NOT enabledif ( ! has_post_thumbail() || ( is_archive() && ! genesis_get_option( 'content_archive_thumbnail' ) ) ) { return; }If there are other conditionals you want to account for, you’ll have to let us know what they are.
P.S. if you’re not especially familiar with PHP, I strongly recommend using opening/closing braces for all conditional clauses. It will make things much easier for you to follow.
Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] No notifications being sentI have added to version 2.2 the option to send comment moderation emails to multiple addresses. I’ve just pushed version 2.2 to SVN, so you should get an update notification shortly.
Thanks, both of you, for using the Plugin!
Hi delvasse!
I have added to version 2.2 the option to send comment moderation emails to multiple addresses. I’ve just pushed version 2.2 to SVN, so you should get an update notification shortly.
Thanks for using the Plugin!
Forum: Themes and Templates
In reply to: [Oenology] Child or toolboxI do release fairly frequent updates (every few months or so).
The best way to customize a Theme like Oenology is either via Child Theme, or via custom Plugin. (If all you’re doing is writing filter/hook callbacks, a Plugin is an easier/better route than using a Child Theme, IMHO.)
Do you have any specific examples of things you would envision changing/customizing?
Forum: Themes and Templates
In reply to: [Oenology] Child or toolboxJust catching up with support threads…
Oenology is actually a bit of a balance between an unstyled Theme like Toolbox, and a turnkey Theme like Twenty Twelve. Oenology has plenty of template hooks and custom filters to enable you to modify almost everything, but does make some basic layout assumptions.
It comes with several color schemes (called “varietals”), one of which, Cuvee, would be suitable for completely re-skinning the Theme, as it defines a minimum amount of CSS. (Though, the “varietals” are also extensible via custom filters, as well.)
Basically, let me know how you’d like to extend/modify Oenology, and I’ll try to show you how to do it.
Forum: Themes and Templates
In reply to: [Oenology] after update Template is missing errorHi Breezy,
I’m a bit behind in following up on support. Sorry for the delay.
Looks like you got this one figured out as well. Let me know if you have any other issues using a Child Theme.
Thanks (again) for using Oenology!
Forum: Themes and Templates
In reply to: [Oenology] after update header images problem againHi Breezy,
I’m a bit behind on following up on support. Sorry for the delay.
I’m glad you got things figured out.
Any idea why you had duplicate image file paths in the media gallery?
Thanks again for using Oneology!
Forum: Themes and Templates
In reply to: Time to crowd source some theme recommendation.You probably want to visit http://jobs.wordpress.net, and post a listing, if you need this level of customization more quickly than you would be able to learn how to modify a Theme yourself.
That said, if you’re willing to take the time to learn, you can easily implement your requirements yourself. 🙂
Forum: Themes and Templates
In reply to: Upload in theme option pageCan you tell me how I have to change this:
echo $_FILES['file']['name'] ;to make it work?
Not without seeing all of the relevant code. Can you post your Theme options code in its entirety in a Pastebin, and link to it here?
Forum: Themes and Templates
In reply to: Upload in theme option pageFile upload fields require changing the form enctype to “multipart/form-data”.
You’ll want to use
wp_handle_upload()to handle the file upload in your settings validation callback.Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] No notifications being sentBy the way, I’ve added this feature to the development version. As soon as I finish quality-testing it, I’ll push out a new version.
Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] No notifications being sentSorry, I probably didn’t explain that well enough.
WordPress has two comment-email related functions.
The first one,
wp_notify_postauthor(), emails a post author whenever a new comment is posted to one of the author’s posts.The second one,
wp_notify_moderator(), emails the site admin and all users with theedit_commentcapability whenever a new comment has been submitted, but has been held in moderation and thus requires approval.If WordPress sends a
wp_notify_moderator()email for a given comment, it will not send awp_notify_postauthor()email for that same comment.Both of these functions are pluggable, which means that core has defined them as being able to be completely overwritten by Plugins.
The way my Plugin works is by overwriting the core-defined
wp_notify_postauthor()function. The only change I make to the core function is that instead of sending the email only to the post author, I define an array of email addresses (based on user configuration of the Plugin options) to which to send the email.The problem with pluggable functions is that any Plugin can override the core function, and the first one to do so “wins”, so to speak. So if you have two Plugins that both try to override a pluggable core function, only one Plugin will actually be able to do so.
So, the more pluggable functions a Plugin defines, the more likely it is that another Plugin will be trying to override that same pluggable function.
The way the Plugin worked previously – and the reason that it worked in your case – was that it completely circumvented the core email functionality, and implemented its own. That wasn’t a very good implementation, and certainly not best practice. The current implementation is much better practice, because it plays more nicely with core and with other Plugins.
Long-term, it would be better not to have to override the entire function just to send the email to multiple email addresses. To that end, I’ve submitted a core patch to change the core
wp_notify_postauthor()function, to add a filter that would allow Plugins to add mail-to addresses without overwriting the entire function.I’m waiting for core-dev input on the ticket. If it gets blessed, then I’ll submit a similar patch for
wp_notify_moderator(). And if that one gets approved, then I plan to add a setting to the Plugin, to send emails both forwp_notify_postauthor()and forwp_notify_moderator().Let me think about implementing it anyway. If you need that particular functionality, others may need it as well.
Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] No notifications being sentThe test comments went into moderation.
This is the issue, and it is by design.
WordPress has two different functions for sending notification emails: one for moderated comments requiring approval, and one for new comments. Because of a (logical, IMHO) WordPress core change a few versions ago, WordPress no longer sends new comment emails to post authors who first received a moderated-comment approval email for a given comment.
To test to ensure that the Plugin is working properly, post a comment from an already-approved commenter, and verify that you receive the comment-notification (as opposed to moderation) email for the post author and for any other users configured via the Plugin.
I’ve considered adding comment-moderation emails as a user-configurable option for the Plugin, but doing so would require defining a second pluggable function, and would increase the likelihood that the Plugin would get overridden by other Plugins.
Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] No notifications being sentWhat other Plugins do you have active?
Did the test comments go into moderation, or were they approved?
The sidebar indicates that you are using WordPress version 2.8.5. Is that correct?