peckjon
Forum Replies Created
-
Forum: Plugins
In reply to: [Hierarchical Pages Widget] Feature request: responsive layoutA plugin can insert CSS, or better yet, provide two different views (one as a LIST, one as a SELECT) and hide the right one at the right time via CSS.
Could a developer/user of this plugin write the CSS? Yes. But many users aren’t familiar with writing CSS, and even for those who are, the whole point of using Plugins is that the user doesn’t have to write any code.
Here is Joe’s hotfix for anyone who wants it right away:
Replace the ‘function_exists’ check for wp_is_mobile that exists on line 1388 of my-calendar-core.php with this:
if ( ! function_exists( 'is_plugin_active_for_network' ) ) require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); if ( !function_exists( 'wp_is_mobile' ) ) { if ( !is_plugin_active_for_network( 'my-calendar/my-calendar.php' ) ) { function wp_is_mobile() { return false; } } }Forum: Plugins
In reply to: [YouTube White Label Shortcode] remove The Frosty Network Feedsmoved to http://wordpress.org/support/topic/how-to-remove-the-frosty-network-feeds?replies=1 to add rating
Forum: Fixing WordPress
In reply to: RSS Feeds from same parent domain not loadingThat said, a more stable approach would be to simply copy the RSS file to a local cache, then use the local version. For example, I would add the following cron job:
* * * * * wget http://somehost.com/news.xml -O /home/www/news.xml…then simply access http://localhost/news.xml as my RSS feed
Forum: Fixing WordPress
In reply to: RSS Feeds from same parent domain not loadingThis is still not properly fixed in 3.6 — this latest release solves the problem for multisite blogs accessing another sub-site, but not separate WP installations, or RSS feeds from other hosts on the LAN whose external IP differs from the internal IP.
MODERATOR: do not edit until there is a viable fix. We who modify core WP files know that this is a potentially unsafe and unstable solution, but until there is a viable workaround, this is the only means by which we may include certain feeds.
There is an UGLY and POTENTIALLY UNSAFE change you can make to allow your server to access remote RSS feeds
In WP 3.5:
(1) edit wp-includes / functions.php
(2) find'reject_unsafe_urls' => true,
(3) change it to'reject_unsafe_urls' => false,In WP 3.6:
(1) edit wp-includes / http.php
(2) find function wp_safe_remote_request
(3) remove (or comment out) the line$args['reject_unsafe_urls'] = true;BE AWARE that this will make your site VULNERABLE: if any of the sites you draw dynamic data from get spoofed, you could end up including rogue content in your site. Be EXTREMELY careful which URLs you use to include dynamic content.
Forum: Plugins
In reply to: [White Label CMS] Adding FORM tag to custom Welcome Panel breaks pluginThank you!
Forum: Fixing WordPress
In reply to: RSS Feeds from same parent domain not loadingThis may get fixed in WP 3.6
Until then, there is an UGLY and POTENTIALLY UNSAFE change you can make to allow your server to access remote RSS feeds:
edit [moderated – do not edit core WordPress files]
on line 72, find the following:
'reject_unsafe_urls' => true,change it to:
'reject_unsafe_urls' => false,Forum: Fixing WordPress
In reply to: WP HTTP errorSee this thread regarding the RSS error: http://wordpress.org/support/topic/rss-feeds-from-local-sites-not-loading?replies=2#post-4362781
Forum: Fixing WordPress
In reply to: RSS Feeds from same parent domain not loadingI’ve been unable to find a graceful fix. For now, I’m using the workaround of copying the RSS feed into a local directory every minute (via cron), and pointing my Widgets at that local feed file.
Specifically, this is my cron file:
* * * * * wget http://someOtherServer.com/rss/news.xml -O /home/www/html/news.xml