The Quran Player Block Plugin is a Moodle block designed to enhance the learning experience by integrating an audio player for Quran chapters directly into Moodle courses. This plugin allows users to play Quran audio files and display the corresponding Quran text alongside the audio.
- Audio Player: Play Quran chapters directly in Moodle.
- Quran Text Display: Display the corresponding Quran text for the selected chapter.
- Easy Integration: Add the block to any Moodle course or dashboard.
- Customizable: Easily customize the player's appearance using CSS.
- Error Handling: Gracefully handles missing files or directories.
- Moodle 3.11 or later.
- PHP 7.4 or later.
- Access to the Moodle
blocks
directory.
-
Download the Plugin:
- Clone this repository or download the ZIP file.
git clone https://github.com/maysaraadmin/moodle-block_quranplayer.git
-
Install the Plugin:
- Copy the
quranplayer
folder to your Moodleblocks
directory:moodle/blocks/quranplayer
- Copy the
-
Install via Moodle:
- Log in to your Moodle site as an administrator.
- Navigate to Site Administration > Notifications.
- Moodle will detect the new block and install it automatically.
-
Add MP3 Files:
- Place your Quran audio files (in MP3 format) in the
mp3
directory:moodle/blocks/quranplayer/mp3/
- Ensure the files are named sequentially (e.g.,
001.mp3
,002.mp3
, etc.).
- Place your Quran audio files (in MP3 format) in the
-
Add Quran Text:
- Place the
quran.txt
file in the plugin directory:moodle/blocks/quranplayer/quran.txt
- The file should contain Quran text in the format:
Example:
surah|verse|text
1|1|بسم الله الرحمن الرحيم
- Place the
-
Add the Block:
- Go to the course or dashboard where you want to add the block.
- Turn editing on and click "Add a block".
- Select "Quran Player" from the list of blocks.
-
Select a Chapter:
- Use the dropdown menu to select a Quran chapter.
- The audio player will load the selected chapter, and the corresponding Quran text will be displayed.
-
Customize the Player:
- You can customize the appearance of the player by editing the
styles.css
file in the plugin directory.
- You can customize the appearance of the player by editing the
We welcome contributions from the community! Whether you're a developer, tester, or documentation enthusiast, your help is appreciated.
-
Fork the Repository:
- Fork this repository to your GitHub account.
-
Clone the Repository:
git clone https://github.com/maysaraadmin/moodle-block_quranplayer.git
-
Create a Branch:
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Create a new branch for your feature or bug fix:
-
Make Changes:
- Make your changes and test them thoroughly.
-
Submit a Pull Request:
- Push your changes to your forked repository and submit a pull request to the
main
branch of this repository.
- Push your changes to your forked repository and submit a pull request to the
- Follow Moodle's coding standards.
- Write clear commit messages and include comments in your code.
- Test your changes before submitting a pull request.
This plugin is released under the GNU General Public License v3.0. See the LICENSE file for details.
If you encounter any issues or have suggestions for improvement, please:
- Open an issue on GitHub.
- Reach out to me via email or LinkedIn.
Let’s make this plugin even better together! 🌟
- Thanks to the Moodle community for their support and resources.
- Special thanks to all contributors who help improve this plugin.
🔗 GitHub Repository: https://github.com/maysaraadmin/moodle-block_quranplayer