Since upgrading to WordPress 4.7 I’ve noticed that the Sound.gif does not always display in the Biblegateway VOTD widget.
It appears fine on Windows browsers (Internet Explorer and Chrome). But on Mac and iOS browsers (Chrome and Safari) it doesn’t display.
Take a look on my blog Life, Programming, etc.
]]>This plugin explicitly calls JSON and other assets over http using jquery, which the browser blocks when viewing sites using it over SSL. Easy fix is just to change the explicit protocol references to relative:
bible-votd-jquery-js.php line 7:
replace: $.getJSON( ‘https://www.biblegateway.com/votd/get?callback=?’, { ‘format’ : ‘json’, ‘version’ : abbr }, function( json ) {
with: $.getJSON( ‘//www.biblegateway.com/votd/get?callback=?’, { ‘format’ : ‘json’, ‘version’ : abbr }, function( json ) {
bible-votd.php line 225:
Replace:
jQuery(document).ready(function(b){var a=<?php echo json_encode( self::$instances ); ?>;b.each(a,function(d,c){b.getJSON(“https://www.biblegateway.com/votd/get?callback=?”,{format:”json”,version:c},function(f){if(“undefined”!=typeof f.error){return true;}var e=f.votd;b(“div#biblegateway-votd-“+d).html(e.text+’ — ‘+e.reference+”.”+(“undefined”!=typeof e.audiolink &&””!=e.audiolink?’ <img width=”13″ height=”12″ src=”//www.biblegateway.com/resources/audio/images/sound.gif” alt=”Listen to chapter” />‘:””)+’ ‘+e.copyright.replace(/\.+$/,””)+’. Powered by BibleGateway.com.’);});});});
With:
jQuery(document).ready(function(b){var a=<?php echo json_encode( self::$instances ); ?>;b.each(a,function(d,c){b.getJSON(“//www.biblegateway.com/votd/get?callback=?”,{format:”json”,version:c},function(f){if(“undefined”!=typeof f.error){return true;}var e=f.votd;b(“div#biblegateway-votd-“+d).html(e.text+’ — ‘+e.reference+”.”+(“undefined”!=typeof e.audiolink &&””!=e.audiolink?’ <img width=”13″ height=”12″ src=”//www.biblegateway.com/resources/audio/images/sound.gif” alt=”Listen to chapter” />‘:””)+’ ‘+e.copyright.replace(/\.+$/,””)+’. Powered by BibleGateway.com.’);});});});
]]>Can an update be made so that the various components of the VOTD are separated into different divs with classes? I’d like to style differently the verse, the reference, the version, and the “powered by” string. Really for the last 3 items I’d like preferences that I can set as to whether I want to show them at all.
]]>Hi,
When I post the shortcode in my widgets on my page, nothing displays.
What could be the problem.
Please let me know.
Thanks.
]]>The short code [biblevotd] generates the verse of the Day correctly.
However, the verse for today shows as 1 Peter 1:3, and a link text back to BibleGateway shows “1 Peter 1:3” – however the actual URL it links to is “1eter3”
I copy the actual link here:
https://www.biblegateway.com/passage/?version=NIV&search=1eter3
which generates a “NO RESULTS FOUND” page at BibleGateway.
Thanks
]]>Great plugin – easy to set up and just what we needed – stpetersropley.org.uk
It would be even better if the three links opened, not over the existing page but in a new tab or page. I know I can edit the plugin source, but an option for this would be preferable. Any chance?
Thanks
PREAMBLE
I was forced to upgrade from WordPress version 3.8.1 to 4.2.2 due to eroneous introduction of wp_json_encode
… I was unable to access anything on the Dashboard. The now upgraded self-hosted WordPress displayed all pages correctly.
ISSUE
After upgrading the plugin to version 3.3, every page loaded gives the following error:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in <em>{...}</em>\wp-content\plugins\biblegateway-votd\bible-votd.php on line 225
Here is line 225 from my currently installed version on our self-hosted site:
jQuery(document).ready(function(b){var a=<?php echo json_encode( $this::$instances ); ?>;b.each(a,function(d,c){b.getJSON("https://www.biblegateway.com/votd/get?callback=?",{format:"json",version:c},function(f){if("undefined"!=typeof f.error){return true;}var e=f.votd;b("div#biblegateway-votd-"+d).html(e.text+' — <a href="'+e.permalink+'">'+e.reference+"</a>."+("undefined"!=typeof e.audiolink &&""!=e.audiolink?' <a href="'+e.audiolink+'" title="Listen to chapter"><img width="13" height="12" src="https://www.biblegateway.com/resources/audio/images/sound.gif" alt="Listen to chapter" /></a>':"")+' <a href="'+e.copyrightlink+'">'+e.copyright.replace(/\.+$/,"")+'</a>. Powered by <a href="https://www.biblegateway.com/">BibleGateway.com</a>.');});});});
A quick googling leads me to ask, what’s wrong with $this::$instances
in the call to json_encode()
?
Or is somthing else going on that needs to be addressed?
]]>VOTD works well ??
However, there is a speaker icon “Listen to chapter”. When clicked, this should cause the verse to be read aloud on the speakers.
When I test this (on multiple platforms), the page refreshes, but there is no sound.
Am I missing something on my site that needs to be installed to make this work?
]]>Will you please provide the following in your next version:
1. Support for SSL
2. Make all links open in a new window (target=”_blank”)
Thank you for a great plugin ??
]]>Can I add VOTD to the bottom of my page or can it ONLY be added to sidebar?
]]>