David Dashifen Kees
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Help: Admin Unable to Embed YouTube but Network Admin CanThis is now happening on two sites within the same network. Any ideas?
Forum: Fixing WordPress
In reply to: 3.1 update breaks featured images/imageryI’m having a similar problem re: the display of featured images.
Forum: Fixing WordPress
In reply to: Stylesheets and Javascript with SSLMy solution of the moment: use SSL throughout the site. By setting the site URL and blog URL in my settings to be https://my.site.com (for example) everything loads via SSL assuming the plugin designers used constants like WP_PLUGIN_URL and WP_CONTENT_URL to include their stuff. Not the best solution since it does mean that we waste some server time handling the encryption for SSL, but this site isn’t high-traffic so I don’t expect problems in the short term.
If there’s a better way, I’d love to know more.
Thanks,
DashForum: Fixing WordPress
In reply to: admin-head-{plugin_page} actionsI’ve somewhat solved this myself, though I’m not a fan of the solution. It’ll work well for now but I’d love to know if there’s a better way.
Here’s my solution: load the scripts using admin_print_scripts-{plugin_page} and then enqueue the styles using admin_init. The code went something like this:
add_action("admin_init", "add_styles"); add_action("admin_menu", "add_options"); function add_styles() { wp_enqueue_style( ... ); } function add_options() { $page = add_options_page( ... ); add_action("admin_print_scripts-" . $page, "add_scripts"); } function add_scripts() { wp_enqueue_script("prototype"); wp_enqueue_script("my-js", WP_PLUGIN_URL . "/path/to/my.js", array("prototype")); }
Forum: Fixing WordPress
In reply to: No Page TemplatesNo, I haven’t done that. I’ll have to check with the site owners before I start messing with the appearance of the site. Oddly, if I use the Quick Edit capabilities, the template shows up and is completely usable, but not if I do use the full Edit window.
Forum: Plugins
In reply to: Determine Page ExistenceAwesome. Thanks!!