Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/webgalli/public_html/blog/wp-includes/plugin.php on line 571

Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/webgalli/public_html/blog/wp-includes/plugin.php on line 571
Random Specific Daily Quran Ayah plugin's for elgg and wordpress - Team Webgalli Blog
Request quote

Random / Specific / Daily Quran Ayah plugin’s for elgg and wordpress

Posted on: August 1st, 2011 by Mohammed Aqeel 6 Comments

This is my first modules for Elgg and WordPress after joining Team Webgalli. Let me know if you have any comments. You can download the plugin from following links.

Download Elgg plugin Download WordPress plugin

Full description:

This plugin will show Random/Specific Quran Ayaths in anywhere in your site or as widget

Features

  • Show random Quran Ayahs as a widget or anywhere in site
  • Show specific Quran Ayahs as a widget or anywhere in site
  • Show Ayahs in Arabic along with its translation in English and other languages
  • Easily install multiple translations
  • Users can select their own translation
  • Comes with an audioplayer to hear the mp3 of the displayed Ayah

Audio clip provided by : http://www.everyayah.com/

Quran translation provided by : http://tanzil.net/

How to use the plugin:

  • For Elgg : Download > Extract > upload to mods > Enable > Select a site specific default translation
  • For WordPress : Download > Extract > upload to wp-contents/plugins> Enable > Add the widget through the appearence section

How to add new translations

  • Go to http://tanzil.net/trans/
  • Select the file format as “Text”
  • Now download the translation
  • For Elgg : Copy this translation to mod/quran/vendors/translations folder (One translation file exists there already)
  • For WordPress: Copy this translation to  wp-contents/plugins/holy-quran-random-ayahs/vendors/translations folder (One translation file exists there already)

How to show a Quran ayah anywhere else?

  • Use the function : <?php get_Quran_verse($ayah_number, $translation, $show_audio);?>

Documentation/Reference

The get_Quran_verse() function will display a random Quran verse
Optional parameters :

  • $ayah_number :  if you want to show any specific verse just add the line number.
    Eg: <?php get_Quran_verse(1);?>
    // Will return the first ayah of the resource file
  • $translation :  if you want to load any specific translation just add the translation file name.
    Eg: <?php get_Quran_verse(1, ‘en.ahmedali’);?>
    // Will output the ‘en.ahmedali’ translation as per the file name. NB : The translation should be available at mod/quran/lib/translations folder
  • $show_audio :  If you dont want to display the audio player, turn off the option by simply calling the function.
    Eg:<?php get_Quran_verse(1, ‘en.ahmedali’ , false);?>
    // This will hide the audio player, show first ayah and with  ‘en.ahmedali’ translation.

Liked it : Consider a donation for the Everyayah project @ http://www.everyayah.com/data/status.php

Tags: , , , , , , , ,

6 Responses

  1. Almor says:

    Dear Mr. Aqeel,

    Thanks for the great plugin.

    How can I display Verse number and Sura name (in Arabic)?

    Regards,

    Almor

  2. Team Webgalli'an says:

    @Almor : for which platform you need help?

  3. Almor says:

    Dear Mr. Aqeel,

    Thanks for your reply.

    I would like to display Ayah number and Surah name (in Arabic) in WordPress.

    Regards,

    Almor

  4. Team Webgalli'an says:

    @Almor : If you want to display the Surah and Ayah numbers, just open the holy-Quran.php file inside the plugin in your favourite text editor. Find line number 54 saying
    $html = $verse.$translation_verse.$line_break.$ref;.
    Replace these to
    $ref = "($explode_quote[0] : $explode_quote[1] )";
    $html = $verse.$translation_verse.$line_break.$ref;

    This will now add the Surah and Ayah numbers to the output.

  5. mOSTAFA says:

    hi
    i insert my translation to
    For WordPress: Copy this translation to wp-contents/plugins/holy-quran-random-ayahs/vendors/translations folder (One translation file exists there already)

    but i can not show my translation (Persian).
    please help me

  6. noverino.com says:

    Assalaamualaikum Mostafa, you should put your translation on wp-contents/plugins/holy-quran-random-ayahs/lib/translations folder