PDA

View Full Version : Miscellaneous Hacks - Glorious Qur'an


msalman
09-09-2008, 10:00 PM
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
2 - More languages
3 - More English interpretations
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 (http://www.hamara-forum.com/showthread.php?t=19082)

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
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
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,

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.

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.

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

thanksThe 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
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
^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
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
^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
^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
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
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
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
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/designed-quran-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/data/1474/Surah_Fateha.jpg



http://www.hallagulla.com/urdu/photo/data/1474/Surah_Al-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.

Basit
09-12-2008, 12:57 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.
That would be really great :) Jazak'Allah. Please let me know if you need more information (e.g., Image links etcs.,) for Images.

Could you please also let me know the VBSEO settings ?

Jazak'Allah

msalman
09-12-2008, 01:19 PM
Here's the vbseo package for you. I'll add this in the first post during next update. Upload the quran.php, import the product file and add the custom re-write rules.

djilou
09-12-2008, 03:08 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.

Yes but after I made this change

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

Thanks for this great mod

7lanet
09-14-2008, 01:20 AM
<a href="http://www.7lanet.com/vb/quran.php?do=displaysura&sno=1&langid=6" target="_blank">http://www.7lanet.com/vb/quran.php?d...sno=1&langid=6</a>

مشكلة الترميز

msalman
09-14-2008, 02:57 AM
^bro, for your English language set the character set to UTF-8.

Go to: Admin Control Panel -> Language & Phrases -> Language Manager -> Edit Settings for (English Language) and change the HTML Character set to UTF-8.

adamenty
09-14-2008, 05:14 AM
Ramadan Mubarak,
Thanks you for this glorious mod, may Allah bless you and give you a peaceful Ramadan.

pody
09-14-2008, 09:37 AM
Salam

Thx, but not french language ?

msalman
09-14-2008, 02:06 PM
Jazak Allah kharian and ameen to the kind du'as and may you have a good Ramadan as well, Ameen

Salam

Thx, but not french language ?Wa'alaykum As-Salam

bro please be patient for a day or two, more than 10 languages will be added in the next update i.e. French, German, Russian, Urdu, Turkish, Japanese, Malyasian etc. I'm working on it as we speak.

nesta1
09-14-2008, 08:37 PM
You tried to access the address http://www.islamic-life.com/forums/quran/, which is currently unavailable. Please make sure that the Web address (URL) is correctly spelled and punctuated, then try reloading the page.

kho91
09-15-2008, 07:41 PM
salam alaykom

thank's akhi

how can I add an other langage?? beacause i don't want put the english langue

ever-fresh
09-18-2008, 02:57 PM
Hi.
Jazak Allah Soo much.
Can you please give me VBSeo version for this ?

msalman
09-18-2008, 07:02 PM
^attached in this post; https://vborg.vbsupport.ru/showpost.php?p=1620517&postcount=43

q8salem
09-20-2008, 11:39 PM
thank you brother and may Allah bless you...

akulion
09-23-2008, 03:05 AM
Any planned updates, or anything in the works for this mod?

ahayat
09-25-2008, 03:14 AM
Salaam;

Can you please double check the Surah Names? i.e 40,41 etc??
My few members notice that they are not correct.

is there any Hafiz who can read whole Quran to see there is any mistake?

Thanks.

Veer
09-25-2008, 07:57 AM
Salaam;

Can you please double check the Surah Names? i.e 40,41 etc??
My few members notice that they are not correct.

is there any Hafiz who can read whole Quran to see there is any mistake?

Thanks.
wa.salam

Yes brother, there are few mistakes in Surah Names, Correct Surah Names are:

Surah No. 40 Al-Mumin
Surah No. 41 Ha Mim Al-Sajdah

I'll check more very soon, insha Allah.

msalman
09-25-2008, 08:53 AM
^Surahs' names are not part of the Qur'an; thus, you'll find that some Surahs were given more than one name. I was told by my ustad (teacher) that the scholars came up with the names; I don't know if that also includes the Salaf (May Allah be pleased with them).

and Allah knows best

ahayat
09-25-2008, 10:47 AM
^Surahs' names are not part of the Qur'an; thus, you'll find that some Surahs were given more than one name. I was told by my ustad (teacher) that the scholars came up with the names; I don't know if that also includes the Salaf (May Allah be pleased with them).

and Allah knows best

Brother we need to use standared. But i think Surah names are Part of Quran by the first day :). Please fix it as brother did mention the names, so i can update.

Cheers.

msalman
09-25-2008, 12:34 PM
^brother, i did some more research and came across this fatwa (http://www.islamonline.net/servlet/Satellite?cid=1203758135307&pagename=IslamOnline-English-AAbout_Islam%2FAskAboutIslamE%2FAskAboutIslamE). If the Surah has more than one name then whichever name we adopt is correct. I know that the mushaf of the sub continent use the other name for Surahs (i.e. 40,41) which I didn't use.

and Allah knows best

anyway, I'll do some research and collect the alternate names for Surahs and then have you run SQL Queries from admin control panel to change those names.

Nadeemjp
09-26-2008, 01:46 AM
Jazak Allah for this and may you live long to produce such noble products.

Forumi Shqiptar
09-26-2008, 01:53 AM
Translation in Albanian? :( does it exist or...

Marco van Herwaarden
09-28-2008, 11:59 AM
Non english posts remvoed, please post in English only.

haddad
09-30-2008, 02:18 PM
it's ok for the french translation ?

msalman
09-30-2008, 05:04 PM
it's ok for the french translation ?added in the newer version

Translation in Albanian? :( does it exist or...added in the newer version

soulface
09-30-2008, 05:23 PM
Can you add Bangla translation ?

http://en.wikipedia.org/wiki/Bangla

thx :)

msalman
09-30-2008, 06:17 PM
^bro, I'll try to find the text but if you can get it from somewhere in utf-8 format, it would make my life easier.

yenibeyin
09-30-2008, 07:14 PM
thank you brother

Nadeemjp
10-01-2008, 04:48 AM
brother, can you please provide translation in Japanese language?

NAZIA
10-01-2008, 06:50 AM
added in the newer version

added in the newer version
Are you sure that...
https://vborg.vbsupport.ru/external/2010/10/8.gif Quran_1.25.zip (https://vborg.vbsupport.ru/attachment.php?attachmentid=87525&d=1222795373) (19.0 KB, 14 downloads)
Only 19 kb file will fully work... on the board.. I mean to say that is there no data base update for the all other language translations...

akulion
10-01-2008, 01:42 PM
brother I have a request for a mod for this mod...could you code a "random verse" mod which displays random verses from the Quran in Arabic + 1 chosen language on vbadvanced frontpage as a side or middle module? (http://vbadvanced.com) that would be just awesome!

Jazak Allah Khair and EID MUBARAK!

akulion
10-01-2008, 01:48 PM
Are you sure that...

Only 19 kb file will fully work... on the board.. I mean to say that is there no data base update for the all other language translations...

sis nazia if u follow the instructions in the "readme" file in the mod you will find that you have to download an additional file from their server which contains all the languages and db info :)

aku

akulion
10-01-2008, 02:26 PM
I upgraded from version 1 but I have some issues... (screen shot attached)

1) the mod did not update the page..so it still shows no language clickboxes to choose the languages (yes I did allow overwrite of product)

2) and the bismillah part shows BELOW the surah instead of at the top, plus its not getting translated but showing some ??? symbols there (but only for Bismillah, the rest seems fine but very very small writing)

3) also the Arabic has become very small (the arabic writing)...(yes I did change the language to UTF)

have no clue whats going on..I installed it 2 times with same results.

myown
10-01-2008, 04:30 PM
looks good

ckusmez
10-01-2008, 04:40 PM
Can we translate to turkish ?

Veer
10-01-2008, 06:16 PM
I'm trying to upgrade to 1.25 but the quran_install.php file (uploaded 28.9 MB) is getting blank.

Any idea how to do?

msalman
10-02-2008, 12:00 PM
brother, can you please provide translation in Japanese language?bro, this has been added in the newer version

Can we translate to turkish ?added in the newer version

I upgraded from version 1 but I have some issues... (screen shot attached)

1) the mod did not update the page..so it still shows no language clickboxes to choose the languages (yes I did allow overwrite of product)

2) and the bismillah part shows BELOW the surah instead of at the top, plus its not getting translated but showing some ??? symbols there (but only for Bismillah, the rest seems fine but very very small writing)

3) also the Arabic has become very small (the arabic writing)...(yes I did change the language to UTF)

have no clue whats going on..I installed it 2 times with same results.It seems you manually edit the quran templates; you need to revert them to make the new templates' changes take effect.

I'm trying to upgrade to 1.25 but the quran_install.php file (uploaded 28.9 MB) is getting blank.

Any idea how to do?bro, do you mean when you run the file you don't get this message?
If you are seeing this message then it means that the content was successfully inserted in the database!

Please elaborate on what you mean, thanks.

akulion
10-02-2008, 01:25 PM
thanks bro reverting the template fixed the problem:)

eid mubarak

akulion
10-02-2008, 06:17 PM
hey bro any chance of developing a "random verse" module for vbadvanced ? If not would it be possible to get the PHP code to generate random verses with english translation? That way I could try and see if I can get someone to make the mod over at vbadvanced.com

Veer
10-02-2008, 06:25 PM
bro, do you mean when you run the file you don't get this message?
If you are seeing this message then it means that the content was successfully inserted in the database!Please elaborate on what you mean, thanks.

Yes brother, there is no message on the page.

msalman
10-02-2008, 06:45 PM
^Can you run this query for me in your admin control panel and let me know if you get any result:

SELECT ayat_en3 FROM table name WHERE chpNo = 1

Replace the "table name" with your table name; it should be xquran where x = TABLE_PREFIX.

Veer
10-02-2008, 09:25 PM
Query:
SELECT ayat_en3 FROM community_quran WHERE chpNo = 1Result:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1054
error desc: Unknown column 'ayat_en3' in 'field list'I'm also getting database errors:
Database error in vBulletin 3.7.0:

Invalid SQL:

SELECT * FROM community_quran WHERE chpNo = 1 ORDER BY ayatNo ASC LIMIT 0,;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064

Request Date : Friday, October 3rd 2008 @ 03:26:30 AM
Error Date : Friday, October 3rd 2008 @ 03:26:30 AM
Script : http://www.mydomain.com/quran.php?do=displaysura&sno=1

Referrer : http://www.mydomain.com/quran/
and this one:
Database error in vBulletin 3.7.0:

Invalid SQL:
SELECT * FROM community_quran WHERE chpNo = 3 ORDER BY ayatNo ASC LIMIT 0,;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064

Request Date : Thursday, October 2nd 2008 @ 08:04:49 PM
Error Date : Thursday, October 2nd 2008 @ 08:04:49 PM
Script : http://www.mydomain.com/quran.php?do=displaysura&sno=3

I think i have to uninstall the old version, may be the newer version will work.

msalman
10-02-2008, 10:51 PM
^you need to change your character set to utf-8

Megatr0n
10-02-2008, 11:43 PM
That causes problems for my forum if I set it to utf-8.

Anyway, around that?

Nadeemjp
10-03-2008, 01:26 AM
JAzak Allah Brother for the Japanese Translation.
by the way the zip folder has vbseo folder as well. which one is the latest and which one do you recommend? i have vb3.7.3 version

Veer
10-03-2008, 02:51 AM
^you need to change your character set to utf-8
Not only Character Set my whole Database (including tables) is in UTF-8

akulion
10-03-2008, 10:52 AM
nominated for mod of the month :D

msalman
10-03-2008, 11:48 AM
That causes problems for my forum if I set it to utf-8. Anyway, around that?hmm...if the text for other languages is appearing fine then I can get you the Arabic text in windows-156 format; you'll have to wait for few days though.

JAzak Allah Brother for the Japanese Translation.
by the way the zip folder has vbseo folder as well. which one is the latest and which one do you recommend? i have vb3.7.3 versionBarak Allahu feeka brother. Yes, the vbseo folder has the vbseo version of this mod; the only difference is that it has minor changes (the name of the surah in the url and custom re-write rules).

Not only Character Set my whole Database (including tables) is in UTF-8 bro, that comment was for brother megatr0n and it seems his post was deleted. It seems your installation of database and product file wasn't correct; so, try removing it completely (product and files from the server) and re-install it.

nominated for mod of the month :Dlol, Jazak Allah khair

msalman
10-03-2008, 12:33 PM
hey bro any chance of developing a "random verse" module for vbadvanced ? If not would it be possible to get the PHP code to generate random verses with english translation? That way I could try and see if I can get someone to make the mod over at vbadvanced.combro, I don't have vbadvanced on my forum so I can't really test it. To put it simple, I don't know what changes to make in vbadvanced. I can get you the php code but you'll have to ask someone how to include it on vbadvanced.

try this, let me know if this works:

Megatr0n
10-03-2008, 12:49 PM
hmm...if the text for other languages is appearing fine then I can get you the Arabic text in windows-156 format; you'll have to wait for few days though.

Barak Allahu feeka brother. Yes, the vbseo folder has the vbseo version of this mod; the only difference is that it has minor changes (the name of the surah in the url and custom re-write rules).

bro, that comment was for brother megatr0n and it seems his post was deleted. It seems your installation of database and product file wasn't correct; so, try removing it completely (product and files from the server) and re-install it.

lol, Jazak Allah khair

Jazakullah bro. :D

akulion
10-03-2008, 02:19 PM
thanks for the vbadvanced file bro, the module is added easily using vbadvanced "add a php file as a module" option, it simply had to be uploaded to its modules directory..however the display of the ayah is a bit strange, could you shed some light on to why it may be doing so? It also displays the english verse 2 times for some reason and shows all the variable names in the output

Screen shot:

msalman
10-03-2008, 05:17 PM
^lol, bro did you un-comment the following lines, which I was using for testing purpose? print_r($randayah); echo $randayah[$langs[$lang2]]; I should have removed them. Did you had to make any changes in the template files or just simply upload the php file?

letsjoy
10-03-2008, 07:12 PM
JazakAllah...May God Bless you :)

akulion
10-03-2008, 09:15 PM
wow that was it bro!! lol I took out those lines and also had to add the div part you specified by echoing it out...I am attaching the actual file I used along with instructions for anyone wanting to use this with VBA (vbadvanced)

To Install:

1. Go to your admin panel and click on the vba panel to expand it

2. Click "Add Module"

3. Click [PHP File Module]

4. Now using your FTP program upload the attached file to /forum/modules/ directory (where the modules for vba are kept)

5. Back in your admin panel you will fill in the following details in the screen in front of you:
Module Title Random Quranic Verse
Active Yes
File to Include random_quran.php
Identifier rq
Templates Used leave empty
Clean File Output Yes
Use Module Wrapper Template No

6. Click "save" and then on the next screen you will be asked to choose a position for your module, I would recommend using it as a "center" block and thats it :)

Screen shot attached below as to how it looks
-----------------

Thanks bro msalman

mizamlar
10-12-2008, 10:28 AM
ooo good very nice
thank you,

Allah razı olsun

Megatr0n
10-14-2008, 12:44 AM
I hope it is released soon bro.

msalman
10-14-2008, 02:05 PM
Cant think of anything more usless than the quran on a website.I wouldn't be surprised if you're one of the Islamic haters.

I hope it is released soon bro.try the attached file in this post bro. If you're going to update from 1.05 to 1.25 then follow the steps in the readme.txt file and then run this file using your browser and it will replace the utf-8 Arabic text with windows-1256.

elrafei
10-14-2008, 03:44 PM
barark allah feka ya akhy

that mean

thanks brother

tafreeh
10-15-2008, 05:37 AM
Mashallah bro v good hack...

but after installation where do you see that Quran Page ?
www.tafreehmela.com/quran.php not working.....

msalman
10-15-2008, 01:13 PM
^hmm..after the second look this seems a database issue, could be a server problem. Can you please run this SQL Query in your ACP (Admin Control Panel) and let me know the result
SELECT count(*) as total_ayaat from xquran here x = your TABLE_PREFIX

tafreeh
10-15-2008, 04:43 PM
and how do you do that

admin cp > maintenance > Execute Sql Query (( it says "You are not authorized to execute SQL queries" )) :erm::erm:

msalman
10-16-2008, 12:23 PM
^well, this your admin permission issue; talk to your global admin if you're not one

Support
10-16-2008, 04:32 PM
Thank You My Friend , جزاك الله كل خير

tafreeh
10-16-2008, 11:39 PM
^well, this your admin permission issue; talk to your global admin if you're not one

i m the the Only GLOBAL ADMIN of my forum..................:o:o:o:o

Megatr0n
01-12-2009, 07:37 PM
Anyone got it working for 3.8?

msalman
01-14-2009, 10:34 AM
^I haven't updated my forum to 3.8 but there shouldn't be any problem unless you're facing some issues.

msalman
01-19-2009, 10:40 PM
this mod works on vb3.8 and new version can be found in the 3.8 section here

basketmen
03-05-2009, 08:28 PM
Ass wr wb, dear msalman, i have got suggestion from one of my member

he says there is something wrong in surah alfatihah http://www.islamic-life.com/forums/quran/surah-al-fatihah-1/


this is what he says :
in surah alfatihah its should be there is 7 ayat, not 6 ayat
thats why surah alfatihah named ''As-Sab'ul Matsani'', its mean 7 ayat that repeated

some imam says its start from Alhamdulillah :
(1) Alhamdulillahirabbil Alamin
(2) Arrahmanirrahim
(3) Maaliki Yawmiddin
(4) Iyyakana'budu wa iyyaka nasta'in
(5) Ihdinash shiratal Mustaqim
(6) Shirathal ladzina an'amta alaihim
(7) ghairil maghdlubi alaihim waladldlaallin

while some other imam says its start from Bismillah :
(1) Bismillahirrahmanirrahim
(2) Alhamdulillahirabbil Alamin.
(3) Arrahmanirrahim.
(4) Maaliki Yawmiddin.
(5) Iyyakana'budu wa iyyaka nasta'in.
(6) Ihdinash shiratal Mustaqim
(7) Shirathal ladzina an'amta alaihim, ghairil maghdlubi alaihim waladldlaallin

above is different imam opinion, but they are 7 ayat still





i had try search in google too, its say 7 ayat for surah alfatihah http://www.google.com/search?q=surah+al+fatiha+7+ayat


i had read in my physical Quran there is 7 ayat for surah alfatihah



thank you, i am waiting for your answer if you can, and if it right can you tell me how to change it or can you update to fix the hack

AdamFL
03-17-2009, 03:40 PM
Thank you for the great work. I'm having a problem since i changed the language it displays Arabic but not the french part in my forums. is there a way to have both working properly?

thanks

SpaceStar
03-22-2009, 12:25 AM
JazzakAllah brother - I am installing it and will check out. May Allah bless you..

SpaceStar
03-22-2009, 01:50 AM
i m the the Only GLOBAL ADMIN of my forum..................:o:o:o:o

Find the config.php (located in ../includes and edit under:

****** USERS WITH QUERY RUNNING PERMISSIONS ******

$config['SpecialUsers']['canrunqueries'] = '1'; <= this is set to blank default - change it to 1

SpaceStar
03-22-2009, 02:07 AM
I am facing a similar problem as Pehchaan.

Executing the quran_install.php script returns a blank page...

pvenise
08-22-2009, 05:08 PM
bonjour

quand j'installe avec IE j'ai ce message :

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 30336307 bytes) in Unknown on line 0

?

thank's you for your aide

basketmen
08-24-2009, 12:17 PM
bonjour

quand j'installe avec IE j'ai ce message :

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 30336307 bytes) in Unknown on line 0


?

thank's you for your aide
its look like the error because your server/hosting dont have enough memory in the server to execute the script

if you use dedicated/vps try to increase your memory limit

if you dont access to it ask your host to increase it

basketmen
08-24-2009, 02:43 PM
Ass wr wb, dear msalman, i have got suggestion from one of my member

he says there is something wrong in surah alfatihah http://www.islamic-life.com/forums/quran/surah-al-fatihah-1/


this is what he says :
in surah alfatihah its should be there is 7 ayat, not 6 ayat
thats why surah alfatihah named ''As-Sab'ul Matsani'', its mean 7 ayat that repeated

some imam says its start from Alhamdulillah :
(1) Alhamdulillahirabbil Alamin
(2) Arrahmanirrahim
(3) Maaliki Yawmiddin
(4) Iyyakana'budu wa iyyaka nasta'in
(5) Ihdinash shiratal Mustaqim
(6) Shirathal ladzina an'amta alaihim
(7) ghairil maghdlubi alaihim waladldlaallin

while some other imam says its start from Bismillah :
(1) Bismillahirrahmanirrahim
(2) Alhamdulillahirabbil Alamin.
(3) Arrahmanirrahim.
(4) Maaliki Yawmiddin.
(5) Iyyakana'budu wa iyyaka nasta'in.
(6) Ihdinash shiratal Mustaqim
(7) Shirathal ladzina an'amta alaihim, ghairil maghdlubi alaihim waladldlaallin

above is different imam opinion, but they are 7 ayat still





i had try search in google too, its say 7 ayat for surah alfatihah http://www.google.com/search?q=surah+al+fatiha+7+ayat


i had read in my physical Quran there is 7 ayat for surah alfatihah



thank you, i am waiting for your answer if you can, and if it right can you tell me how to change it or can you update to fix the hack




ok i have answer for this, i feel i need to share this. Its a bit difficult and maybe i am a little forget the full steps, but this is the tricks



- open template quran_sura, this is to not viewing Bismillahirrahmanirrahim in surah alfatihah, because the Bismillahirrahmanirrahim there is not counted as first ayat from surah alfatihah


find this
<if condition="$sura_col[chpNo]!= 9 && $sura_col[ayatNo] == 1">

below it add this
<if condition="$sura_col[chpNo]!= 1 && $sura_col[ayatNo] == 1">


find this
<if condition="!$all"><hr /></if>
</if

below it add this
</if>




- then go to phpmyadmin and import below sql, it will create new line for Bismillahirrahmanirrahim in first surah alfatihah's ayat, the Bismillahirrahmanirrahim now will count as the first ayat, so its count as 7 ayat for surah alfatihah now

basketmen
08-24-2009, 02:49 PM
i have tricks again :

I see we just can set 2 language as default. If you want to viewing 3 or more language as default and checked, or maybe all language as default here is the tricks

- open quran.php file

- search this
$array[1] = 3;

- below it add
$array[1] = 5;

this is for viewing brazil language as default too, if you want to viewing other language just change the number to other language, you can see the number reference inside quran.php file too, and you can add above code for as many language as you want