-
Website
http://blog.slaven.net.au/ -
Original page
http://blog.slaven.net.au/archives/2005/03/02/verse-of-the-day-wordpress-plugin/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
adapar
3 comments · 3 points
-
Jacob Burke
8 comments · 3 points
-
drewolanoff
2 comments · 54 points
-
Phil Glockner
3 comments · 79 points
-
urbansheep
6 comments · 2 points
-
-
Popular Threads
Warning: main(/home/kissmegr/public_html/blog/wp-includes/rss-functions.php): failed to open stream: No such file or directory in /home/kissmegr/public_html/blog/wp-content/plugins/wp-votd-plugin.php on line 19
Fatal error: main(): Failed opening required '/home/kissmegr/public_html/blog/wp-includes/rss-functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kissmegr/public_html/blog/wp-content/plugins/wp-votd-plugin.php on line 19
Any suggestions?
Tony,
I don't know that the NLT is available in an RSS feed yet. Bible Gateway only offers these versions:
http://www.biblegateway.com/usage/linking/votdl...
I am teh loser.
Thanks for the info.
I switched to Glenn's plug-in. This is so much sleeker than the very hacked up version of Chait's FeedRead I was using!
I changed it up a little bit, Glenn -- let me know if that's a problem. And THANKS for your hard work!
I'm just glad it's of use to people.
$update = ($delta = (24*60*60));that is 24 hours (24 hrs x 60 min x 60 sec). Change the 24 to how ever many hours you want.
Alternatively if you want the file to be updated at a certain time of day. Delete the
votdcache.phpfile in your wp-content dir and reload your site at the time you want it to happen, it will then update at that time every day.Of course if you want it to happen at midnight you'll have to be up then. But as you've got a little daughter Andy, you should be as familiar with the ungodly hours of the day as I am :)
You mention adding wp_votd() to the code. Where should this line be added? What file? I tried adding it to my sidebar.php file so it would display similar to your site but that didn't work.
To add the code, place this where you want it on your blog (say, your side bar):
Should you want to manipulate it, say, change the feed, you would have:
Now, the first code is right. I'm acutally posting for 2 reasons (besides to respond to you!) ;)
My second reason is, it seems no matter how I enter any tags, the default (ESV) is always shown. Am I entering this code correctly (per above)?
Thank you.
First piece: "" (take the quotes out to place in your blog code.
Second piece (to change the feed):
""
Hope this shows up... :)
?php wp-votd('niv'); ?Verse of the day:
into my sidebar.php but I just get the horrible error:
Fatal error: Call to undefined function: votd() in /home/catalyst/public_html/wordpress/wp-content/themes/Benevolence/sidebar.php on line 19
I am running WordPress 1.5 but am a little stumped!
Thanks
?php wp_votd(); ?into the your sidebar, after installing enabling the plugin.?php wp-votd(); ?in my sidebar (and in the above post) but I forgot that the posting stripped out my HTML... oops.So, to recap, when I paste
Verse of the Day:
?php wp-votd(); ?into my sidebar, it gives me the error
Fatal error: Call to undefined function: votd() in /home/catalyst/public_html/wordpress/wp-content/themes/Benevolence/sidebar.php on line 19
Not sure what the problem is.
?php wp_votd(); ?not?php wp-votd(); ?There has been some confusion over this, not the leaset reason being that I typed it wrong a couple of times in the post :(
So, in clarity the code you need to have is
?php wp_votd(); ?or, if you want the niv:?php wp_votd('niv'); ?, or the kjv?php wp_votd('kjv'); ?I'm very sorry for the confusion, major mea culpa!
I use WP 1.2
I tried installing the files and I enabled the plugin, added the code to my page and got this error:
Warning: fopen(/home/mydirectory/public_html/blog/wp-content/votdcache.php): failed to open stream: Permission denied in /home/mydirectory/public_html/blog/wp-content/plugins/wp-votd-plugin.php on line 83
Warning: fwrite(): supplied argument is not a valid stream resource in /home/mydirectory/public_html/blog/wp-content/plugins/wp-votd-plugin.php on line 84
Warning: fclose(): supplied argument is not a valid stream resource in /home/mydirectory/public_html/blog/wp-content/plugins/wp-votd-plugin.php on line 85
I had the magpierss folder and the votd file in the plugins directory as specified. When it didn't work, I tried moving magpierss to the wp-content directory, but that took down my whole blog with an error. Any ideas why it won't work? Thanks!
/home/mydirectory/public_html/blog/wp-content/votdcache.phpIf you have access to a command-line you need to type
chmod 666 /home/mydirectory/public_html/blog/wp-content/votdcache.phpand that should fix the problem.If you don't have command-line access, your ftp program should allow you to do the same thing.
1. there is no votdcache.php file (is this normal?)
2. I got error like #24, and I tried #25 to fix it.
3. The error report were gone, but there's nothing showed, just blank, nothing.
any ideas?
thanks and GBU for this plugin :)
wp_votd('esv',true);, which will force the script to update each time the page is loaded. (If it works you'll probably want to change it back because it will increase load times on your pages)another thing i changed is '', '' to "", ""
i did these steps because the validator at w3c complains of my site being not a valid XHTML..
i'm sure you know what i mean.
sorry for comment-ing all the time..
The str_replace wasn't implemented simply because I ran out of time to implement a proper entity replacer that would allow for when the feed itself had already replaced the entities, but as long as it works for you, it's all good.
I am excited to have it working. Thanks for the plugin.
Warning: fopen(D:\davensusan\wp-content/votdcache.php): failed to open stream: Permission denied in D:\davensusan\wp-content\plugins\wp-votd-plugin.php on line 82
Warning: fwrite(): supplied argument is not a valid stream resource in D:\davensusan\wp-content\plugins\wp-votd-plugin.php on line 83
Warning: fclose(): supplied argument is not a valid stream resource in D:\davensusan\wp-content\plugins\wp-votd-plugin.php on line 84
Like Fr. Daniel, I know nothing about writing code. I would just like to have my sidebar look like yours. I'm told that Mena's solution doesn't apply to me because that's for a Unix server, and I'm on a Windows server.
D:\davensusan\wp-content\votdcache.phpIf this is a hosting account, talk to your support people, they should be able to step you though it (or more likely, do it for you). If not, and this is a machine you have direct access to, http://www.microsoft.com/technet/prodtechnol/wi... has instructions on how to set file permissions. Basically you want to give full control to the IIS user, which is usually called IUSR_[computername].
I have no idea why Microsoft decided to make the setting of file permissions be so difficult, but that's the way it is I'm afraid.
Any thoughts?
wp_votd('niv');Also, remember, the script only upates once a day, unless you set the second parameter to true (see comment 33 for example), so if you change the version you won't see the change reflected on the site until the scrpit updates.
I wasn't aware that there were so many people interested in applying a verse-of-the-day to their sites! Kudos to you, Glenn, for the plugin. I'm at work right now, but will be downloading WP 1.5 tonight when I get home. I'll also be installing this plugin!
Thanks again
Warning: fopen(d:\inetpub\cfotos\wp\wp-content/votdcache.php): failed to open stream: Permission denied in d:\inetpub\cfotos\wp\wp-content\plugins\wp-votd-plugin.php on line 94
Warning: fwrite(): supplied argument is not a valid stream resource in d:\inetpub\cfotos\wp\wp-content\plugins\wp-votd-plugin.php on line 95
Warning: fclose(): supplied argument is not a valid stream resource in d:\inetpub\cfotos\wp\wp-content\plugins\wp-votd-plugin.php on line 96
Usually it will be on the sidebar, but it can go where ever you like.
BTW - installation was flawless. I put it at the top of the sidebar.
Thanks for a awesome plugin.
But in short, the verse text is contained inside a HTML paragraph element with an id of 'votd'. What this means is that if you open up your css document (in your case it's wp-content/themes/ocadia/style.css) and go to the bottom of the file and insert the following:
#votd {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
color: red;
}
it will make the VotD text 12 pixels in size, in the Verdana font and coloured red. You'll probably want to style it somewhat different to that though :)
Glad to hear it all worked the way it's supposed to!
That was exactly what I needed.
I am slowly but surely getting the hang of Word Press.
There is a church here in town that wants me to design a website for them.. They don't want a blog, but they want this "Verse of the Day" thing... the NIV version..
so I was just wondering if anyone knew how to do this with straight PHP rather then thru a plugin?
thanks
notes: the plugin is activated, wp 1.5.2, code on sidebar (verse of the day
).
thanks for your help!
thanks, glenn for a great plugin!
in the template. Still no display. No error, no verse...just nothing. Any Ideas where to go to troubleshoot?BTW, thanks allowing this support in the blog post, it is always great to see a contributer stand by his or her contribution.