Rokbox for WP and SSL
-
I’m using Rokbox for WP:
which has worked great compared to some other lightbox plugins I’ve used. But there’s one issue with it: the plugin uses WP_PLUGIN_URL, which gives an absolute URL with HTTP, and some of our pages (not all) need to be forced into SSL to use HTTPS.
There’s only once instance of WP_PLUGIN_URL in rokbox.php:
$rokbox_plugin_url = WP_PLUGIN_URL.'/'.basename($rokbox_plugin_path);
I changed that line to this:
$rokbox_plugin_url = plugins_url().'/'.basename($rokbox_plugin_path);
And under the surface it works beautifully – (most of) the paths to the plugin files are now relative instead of absolute, so they’re not throwing errors about mixed secure content. (The one exception is the link to https://www.example.com/plugins/wp_rokbox/mootools.js?ver=3.5.1, which I can’t find to change.)
But even though all that changed was those paths, and they’re still correct, the plugin is broken. Clicking on an image or a video links directly to that image, rather than popping it up in the window.
I have no idea why changing how the URL is accessed would break the plugin, I’m hoping that someone might have experience with this and already has a fix.
Or at least, you might be able to direct me to a different, comparable plugin that doesn’t have this issue.
(I would have posted this over on RocketTheme’s forum and asked the developers for help, but they require a paid account just to get support for this free plugin, so that’s out.)
- The topic ‘Rokbox for WP and SSL’ is closed to new replies.