vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Glorious Qur'an (https://vborg.vbsupport.ru/showthread.php?t=190497)

msalman 09-09-2008 10:00 PM

Glorious Qur'an
 
As-Salamu 'Alaykum (peace be upon you)

What is Qur'an? Muslims believe that the Qur'an is words of God which He revealed to His last Prophet and Messenger, Muhammad (peace be upon him).

This mod will be further updated and supported in 3.8 section, here

I've decided to share this mod upon the request of few users. This mod should work on 3.7 and 3.6. I don't know about 3.5 or lower versions.

Mod Description: This mod lets the users on your board read the Glorious Qur'an in Arabic and interpretation of the meaning in 25 different languages.

You can find the readme file in the attached file and vbseo version can also be found in the attached file.

Install time: approx 2-3 mins.
Manual Template Edits: 2
Settings: 2[/b]

Demo Link: http://www.islamic-life.com/forums/quran/

FAQ

Question: Can you please translate this mod in language "A"?
Answer: This mod contains 25 different languages: Albanian, Azerbaijani, Bosnian, Brazilian, Dutch, 3 English, Finnish, French, German, Indonesian, Italian, Japanese, Latin, Malaysian, Mexican, Polish, Portugese, Russian, Spanish, Swahili, Thai, Transliteration, Turkish, 2 Urdu. So, please do not request for a language if it can be found in this list.

Mod History:

Version 1.0
-Display the Qur'an in Arabic and English interpretation of the meaning (by Imam Pickthall - May Allah have mercy on him).
-Longer Surahs are handled in multiple pages
-Jump to a Surah functionality


Version 1.05
-Display Arabic text in charset UTF-8 instead of windows-1256
-Fixed bug: WOL (Who's online) not showing Surah's name


Version 1.05a
-Fixed Bug: incorrect database table name


Version 1.25
-Fixed SQL Injection and XSS flaws
-Added meaning of the Qur'aan in 24 different languages and 28 in total
-Added 2 Setting options
- Set default language for your forum
- Set number of ayaat to display on one page
-Added Different Colours for some of the languages
-User's selection of different languages is handled using AJAX

-Known Bugs and Limitations
- The Qur'aan (Arabic text) is fixed as default.
- Weird character maybe displayed for some of the languages
- Multiple Page selection destroys the use of AJAX; so users have to reselect the languages
if they were viewing the meaning of the Qur'aan in non-default languages.


Standing Features:

1 - Search
[s]2 - More languages[/s]
[s]3 - More English interpretations[/s]
4 - MP3 Recitations for each Surah by known Qaris
5 - Display text between two ayaat upon users' selection
6 - Allow users to set number of ayaat to display on one page
7 - Add Bangla and Chinese languages

This is brought to you by islamic-life.com and please click on install if you install this mod. Jazak Allah khair (May Allah grant you goodness) and have a good Ramadan!

apiasto 09-09-2008 11:09 PM

subhan Allah brother i will give it a try.will it work on 3.7.3?.i am doing something on my site too.when its completed i will share it on other sites.

My site

msalman 09-09-2008 11:47 PM

^yeh, it would work on any versions of 3.7 and 3.6.

Barakat 09-10-2008 12:06 AM

wow easy to install , thanks a lot brother.,,,

yahoooh 09-10-2008 12:06 AM

thank u
any addition for: ibn katheer tfseer , qurtbi tafseer
and every sura has ability to link with reader voice ?

djilou 09-10-2008 12:54 AM

Thanks but didn't work on my board because i'm using utf-8 :(

yahoooh 09-10-2008 01:04 AM

Quote:

Originally Posted by djilou (Post 1618631)
Thanks but didn't work on my board because i'm using utf-8 :(

just save the files in utf-8 before upload and install

Barakat 09-10-2008 01:33 AM

Quote:

Originally Posted by yahoooh (Post 1618612)
thank u
any addition for: ibn katheer tfseer , qurtbi tafseer
and every sura has ability to link with reader voice ?

i made a script with a link to every sura in the past ,,, and all it links was taken from islamway.com

i will check if i still have it , .

Neutral Singh 09-10-2008 01:51 AM

Is it possible to use this script for religious books from other religions...?

any demo?

Barakat 09-10-2008 02:29 AM

<a href="http://www.forums.barakotta.com/quran.php" target="_blank">http://www.forums.barakotta.com/quran.php</a>

akulion 09-10-2008 03:12 AM

Allah hu Akbar!

Jazak Allah khair for this brother,
May Allah reward your efforts ameen

Ramadan Mubarak!

bro aku

akulion 09-10-2008 03:15 AM

im really gona look forward to future versions! It looks awesome! masha'Allah

Aziz Elkbiry 09-10-2008 03:59 AM

Thank you
بارك الله فيك

akulion 09-10-2008 04:11 AM

bro just wanted to ask: do u know which translation this is? by which alim?

thanks

msalman 09-10-2008 09:26 AM

Barak Allahu feek everyone,

Quote:

Originally Posted by yahoo
any addition for: ibn katheer tfseer , qurtbi tafseer
and every sura has ability to link with reader voice ?

we only have the abridged version of tafsir ibn kathir in english and adding the tafasir is extensive work. If other people request then I'll add it, insha'Allah but it won't be any time soon. The MP3 files will be added in version 1.5 and after the Ramadan.

Quote:

Originally Posted by Neutral Singh (Post 1618659)
Is it possible to use this script for religious books from other religions...?

any demo?

added the demo link; as far concerning your first question, sorry can't support it but it is certainly possible if you get the content and setup the database table yourself.

Quote:

Originally Posted by akulion (Post 1618727)
bro just wanted to ask: do u know which translation this is? by which alim?

thanks

The English interpretation is by Imam Pickthall (May Allah have mercy on him).

Veer 09-10-2008 11:19 AM

Masha Allah.

It would be great if someone include a utf-8 file for utf-8 based urdu boards.

Jazaka Allah khair.

bL@CKw!d0w 09-10-2008 11:35 AM

Bismillahirrahmanirrahim,
Ramadan Mubarak Moslem brothers, sukran for this fine hack. This is this best hack for vb who i see

KoC 09-10-2008 11:44 AM

More Languages would be very nice. i.e turkish or german

msalman 09-10-2008 01:47 PM

I'll try to fix the utf-8 problem on the weekend and change the look a bit for future development. For other features, you will have to wait for few weeks.

djilou 09-10-2008 02:35 PM

Quote:

Originally Posted by yahoooh (Post 1618638)
just save the files in utf-8 before upload and install

Thanks but didn't work :(

rizelim 09-10-2008 03:26 PM

Thank you ! Turkish languages where and bug

msalman 09-10-2008 06:15 PM

^you need to change the html character set to windows-1256. Follow the last step in the readme.text file.

blueberry 09-10-2008 08:59 PM

Thanks alot... this is a great hack...

Jazak Allah khair

Ramadan Mubarak for all!!!

apiasto 09-11-2008 02:11 PM

working fine thnx and would love to have translation in urdu .is it possible?

msalman 09-11-2008 02:17 PM

^Barakh Allahu feeka, I'm going to try to add the massive language pack on the coming weekend, insha'Allah.

good news everyone, I got my hands on utf-8 Arabic text so the new change will be up very soon so as a result windows-1256 will not be supported anymore.

Veer 09-11-2008 06:46 PM

Quote:

Originally Posted by msalman (Post 1619867)
^Barakh Allahu feeka, I'm going to try to add the massive language pack on the coming weekend, insha'Allah.

good news everyone, I got my hands on utf-8 Arabic text so the new change will be up very soon so as a result windows-1256 will not be supported anymore.

Very Good, Let me check it out :)

Veer 09-11-2008 07:04 PM

After update, there is nothing, just empty everything, No Aayat and No Soorah.

Megatr0n 09-11-2008 07:07 PM

Quote:

Originally Posted by Pehchaan (Post 1620059)
After update, there is nothing, just empty everything, No Aayat and No Soorah.

Same here.

msalman 09-11-2008 09:06 PM

^hmm...could you please post a screen shot? Are you sure that you ran the quran_install.php and changed the charset to UTF-8?

Megatr0n 09-11-2008 09:24 PM

Quote:

Originally Posted by msalman (Post 1620128)
^hmm...could you please post a screen shot? Are you sure that you ran the quran_install.php and changed the charset to UTF-8?

Tried both. No cigar.

Veer 09-11-2008 09:28 PM

Quote:

Originally Posted by msalman (Post 1620128)
^hmm...could you please post a screen shot? Are you sure that you ran the quran_install.php and changed the charset to UTF-8?

Yes i did all steps and my forum is already UTF-8.
Have a look at screen shot:

msalman 09-11-2008 10:00 PM

ok, this is very strange because it is working on my board. There seems to be an issue with retrieving data from the database.

Go to: Admin Control Panel -> Maintenance -> Execute SQL Query
Insert this query in the "Manual Query" textbox and click on continue
Code:

SELECT chpNo, chpName_en FROM vbquran GROUP BY chpNo
Let me know if you get any result back.

davidw 09-11-2008 10:10 PM

Please keep responses in English-only. Thank you.

Megatr0n 09-12-2008 12:05 AM

Quote:

Originally Posted by msalman (Post 1620164)
ok, this is very strange because it is working on my board. There seems to be an issue with retrieving data from the database.

Go to: Admin Control Panel -> Maintenance -> Execute SQL Query
Insert this query in the "Manual Query" textbox and click on continue
Code:

SELECT chpNo, chpName_en FROM vbquran GROUP BY chpNo
Let me know if you get any result back.

I get:

error number: 1146
error desc: Table 'smiggy_gupshupp.vbquran' doesn't exist

djilou 09-12-2008 02:24 AM

on quran_install.php
change :
INSERT INTO `vbquran`
to :
INSERT INTO `quran`

Megatr0n 09-12-2008 10:24 AM

Quote:

Originally Posted by djilou (Post 1620284)
on quran_install.php
change :
INSERT INTO `vbquran`
to :
INSERT INTO `quran`

Still no luck.

msalman 09-12-2008 12:13 PM

I think, now i know what the problem is. I can't believe I mad this mistake.

Fixing the Bug:

Please download the updated package.

@djlou
is it working for you bro? I guess you've set nothing for TABLE_PREFIX.

Basit 09-12-2008 12:32 PM

JazakAllah Khair brother.

You may want to change quran_install.php to avoid users facing problem installing it.


Installed and working great on

http://www.hallagulla.com/urdu/quran.php

Just wondering if you can make some changes to add Images instead of text ? Just to give you an idea some good designers are designing whole quran in Urdu and you can see their work on following link.

http://www.hallagulla.com/urdu/desig...ran-urdu-1671/

A sample image is below. we are planning to finish complete Quran design in Urdu inshaAllah before Eid.

http://www.hallagulla.com/urdu/photo...rah_Fateha.jpg



http://www.hallagulla.com/urdu/photo...l-Baqara_1.jpg

Note:All images are of same dimension.

If that is possible I can provide all images for hotlinking or in zip file as well.

We are also working on designing whole Quran design in English as well.

Looking forward to hear from you.

Regards.

NOM, Install and rated. :)

Basit 09-12-2008 12:40 PM

Could you please also provide VBSEO settings ?

Thanks

msalman 09-12-2008 12:43 PM

^May Allah Ta'ala reward you as well brother; I've uploaded the fixed version. As far concerning the images; the images are really big and there might be performance issue but if you really want it then I can spend sometime to make it available only for your board. For others, I'm simply going to stick to the text; the massive language pack will be uploaded very soon.


All times are GMT. The time now is 05:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01498 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete