tobias.kochs-online.net
Forum Replies Created
-
Forum: Plugins
In reply to: [Remote Media Libraries] Add media from external media serverNow that I think of it: What about Media RSS?
First of all it’s quite easy to implement (on both sides). Secondly, there should already be a wide variety of software offering Media RSS services that you could add to the list of supported software.
Forum: Plugins
In reply to: [Remote Media Libraries] How you can manipulate sizes from remotes?Using self-hosted galleries on another domain/webspace I’m confronted with a similar problem. So creating the thumbnails in the WordPress media library is not an option for me.
I came up with quite an elegant solution (me thinks): Adding the image (link) to the media library with a custom directory (e.g. uploads/images/[…]) allowed me to use some .htaccess voodoo that converts the WordPress request for a thumbnail into the proper request URI for my remote service.
I tried this with some media library entries that I manipulated by hand and it worked like a charm.
Forum: Plugins
In reply to: [Remote Media Libraries] Add media from external media serverWhat about expecting an existing (i.e. well-known) API for remote access to self-hosted services?
I’m trying to replace an outdated plugin that allows me to embed images from self-hosted Zenphoto galleries. Unfortunately there is no Zenphoto API for external access available as of today. So I was thinking about building an API plugin for Zenphoto resembling the Flickr API (well, a small subset of it) as it is one of the most commonly supported APIs.
All you had to do to use it in WordPress would be to have a plugin accept a different URI for API requests, e.g. instead of sending requests to http://api.flickr.com/services/rest/ it has to use something like http://myserver.example.com/plugins/flickr-api.(Don’t nail me down to that Flickr API example, it was just the first thing that came to my mind. Of course a lot of the Flickr API functions do not apply to different hosting services. Maybe there is an API that is more suitable or more generic that I don’t know of.)
Problem resolved. When navigating in the dashboard’s theme preview the child theme stylesheet was not included on single post pages for some reason. After activating the child theme these pages are displayed as expected.
After some more hours of debugging and searching I found this posting by Chip Bennett that explains and solves part of the problem:
The problem, most likely, is that the <link> tag for “style.css” in the document head is using get_template_directory_uri(), rather than get_stylesheet_directory_uri().
If this is the case, then the Child Theme will never have its own stylesheet loaded, because get_template_directory_uri() returns the URL for the *template*, i.e. the Parent Theme.
Thus, if this is the case, you’ll need to add “header.php” to your Child Theme, so that you can change this reference.
I had to modify the functions.php of Adventure Journal to fix this. The blog’s main page uses the right style.css now, but still I cannot get Adventure Journal to include my child theme’s stylesheet on single post pages.