Ben and I this afternoon/evening worked on a Wordpress Plugin for displaying favourite Bible verses. You can see it at work in the sidebar –>
It used to be plain text but now gets the verse and reference from a database and displays them, either specifically or randomly.
Download
Get this cool new plugin bibleverse.zip
Installation
- Upload bibleverse.php into your wp-content/plugins/ folder.
- Navigate to the Plugins menu within your Wordpress admin area and activate the plugin.
- Click “Manage” and then “Bible Verses” and add your favourite verses and the references.
Usage
The tag to display the Bible verse is <?php fbv_get_verse( "random" , "verse" ); ?>.
The first parameter can take the values random, actual verse reference or verse id as shown in database. If random is used, the plugin will display a random verse from the database. If an actual verse reference is used (for example, John 3:16) the plugin will display the specified verse, if the reference is found in the database. If an id is used (for example, 1), then the verse with that ID (if any) will be displayed.
The second parameter determines what part of the verse is displayed. By default it is set to verse, and will display the actual verse text, but not the reference. If it is set to *reference* it will display just the reference.
If random is used for the first parameter, the second time the function is called (for example, displaying the verse and then the reference), a random verse will NOT be displayed. Instead, it will display the relevant reference/verse determined by the random verse/reference displayed before.
If you come here from Wordpress and use the plugin say Hi! It’ll be nice to hear from you.
God bless,
Dan
22nd May 2007
11:19 pm
consider it nicked :P