kyantonius.com – daily babblings!

babblings around web and linux development, open source, directional drilling, self-development, life and nothing…

Yet Another Random Quranic Verse plugin for WordPress

Yesterday night I had some free time to tweak a little bit the Quran Search Engine (QSE) found here and adapted its random quranic verse feature as a WordPress plugin. I call it Yet Another Random Quranic Verse. Just like the other plugin provided by Usayd, the Random Qur’an, the new plugin will retrieve its data from third party and display one verse randomly. What makes it different is the possibility to display random quranic verse in seven languages, namely English (Yusuf Ali), Indonesian, Dutch, French, German, Italian and Spanish, besides in Arabic and Latin. So, the accumulation wil be three types of output at the same time (Arabic, Latin and language of choice). Furthermore, no images whatsoever have been used to produce Arabic verses of Quran.

Installation and Usage

To use it, first upload yarandomquran.php into /wp-content/plugins/ directory of your WP website and then activate it on Plugin Management. Open your sidebar template or any template of your theme and copy paste one of the following code into the place where you want the random quranic verse to show:

<?php random_quran_en(); ?> –> displaying Quran in arabic and english
<?php random_quran_id(); ?> –> displaying Quran in arabic and indonesian
<?php random_quran_nl(); ?> –> displaying Quran in arabic and dutch
<?php random_quran_fr(); ?> –> displaying Quran in arabic and french
<?php random_quran_de(); ?> –> displaying Quran in arabic and german
<?php random_quran_it(); ?> –> displaying Quran in arabic and italian
<?php random_quran_sp(); ?> –> displaying Quran in arabic and spanish

After that, you need to change the default charset of your website to windows-1256. Because, without this modification the Arabic letters will be not recognized and displayed properly. Go to Options -> Reading and change the value of Encoding for pages and feeds with the new charset given above. Save. Now, you’re done with installation and the plugin is ready to use.

Compatibility

This Yet Another Random Quranic Verse plugin has been tested on WP 1.5.2 and 2.0.2.

Download

Grab your copy here. (ZIP, 1.6 KB)
This plugin is also available at:
- WP-Plugins.net

Changelog

April 24, 2006:
1.0 – Initial release.

If I don’t have any WP website, can I still use this plugin?

The answer is yes. Just copy paste one of the following code to any place of your website. Your web hosting must support PHP to get it work and don’t forget to change the charset of your website to windows-1256.

English: <?php include(’http://kemas.kinsky.or.id/quran/random_en.php’; ?>
Indonesian: <?php include(’http://kemas.kinsky.or.id/quran/random_id.php’); ?>
Dutch: <?php include(’http://kemas.kinsky.or.id/quran/random_nl.php’); ?>
French: <?php include(’http://kemas.kinsky.or.id/quran/random_fr.php’); ?>
Italian: <?php include(’http://kemas.kinsky.or.id/quran/random_it.php’); ?>
German: <?php include(’http://kemas.kinsky.or.id/quran/random_de.php’); ?>
Spanish: <?php include(’http://kemas.kinsky.or.id/quran/random_sp.php’); ?>

Filed under: Announcement, WordPress

5 Responses - Comments are closed.

  1. Tariq says:

    Interesting but with 1256 instead of UTF8 its limitation in wider usage persist.

    Any how thanks!

  2. Thank you Tariq for your comment.

    I just wanted to make a shortcut from the existing application and adapt it to be used by other applications. If you can provide me any Quran data in Arabic which use UTF-8 instead of windows-1256, I would really appreciate it. And we’ll see what we could do with it. Otherwise, I prefer the current way. It still won’t hurt you much. :)

  3. [...] you use the Yet Another Random Quranic Verse plugin for WordPress, please download the updated pack [...]

Blog Update Time

April 2006
M T W T F S S
« Mar   May »
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

Archives

About Me

I am just an ordinary person with extraordinary passions on Open Source technology and Directional Drilling. I love to write and talk about Content Management System and Free Open Source Software (FOSS). I do Web and Linux development. And, now I involve in Oil and Gas Exploration and Production as a Measurement While Drilling/Logging While Drilling (MWD/LWD) Field Engineer and Technologist. I am trying to enjoy my life as much as I can. Would you like to know more about me or work with me? Please don't hesitate to contact me.

 

View Kemas Antonius's profile on LinkedIn. View Kemas Antonius's profile on LinkedIn

 

Do you want to hire me for a job? Please click here. Thank you.

 

About Blog
babblings around web and linux development, open source, directional drilling, self-development, life and nothing...

Notice

Copyright (C) 2002-2009 Kemas Antonius

 

This is a personal blog, written in English and Indonesian. All opinions expressed in this blog are the author's own and do not necessarily represent the official view of my employer or my clients.

 

Disclaimer: Certain links, including hypertext links, in my blog will take you outside my blog. Links are provided for your convenience and inclusion of any link does not imply endorsement or approval of the linked site, its operator or its content. I am NOT responsible for the content of any website outside of my blog. Comments posted on this blog belong to their respectively poster. I NEVER send the visitors or users of this blog any unsolicited emails or infringe their privacy. Say NO to phishing and spams!