Qur'an filter?
nbz - July 22, 2009 - 22:27
| Project: | Quran |
| Version: | 6.x-5.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
I think it could be a good feature to have - a way to quote a verse inside content - just put a reference such as [quran:surah:verse] into the node/comment and have the filter convert it into the right thing?

#1
i agree.
i have try to write one, but when i query to database the outpus is always array&&&.
anyone can help?
i'm newbi to drupal and web programming.
#2
Soon, insha Allah before Ied Fitr (Ied Mubarak) I'll release this. Actually I want to show you the snapshot version.
#3
tak tunggu mas ichsan.....
:)
#4
Thanks for adding the filter!
Just a small hiccup, the script is only added to the page if the filter is used in the node body.
However, this means on paghes where it is used in comments but not the main node, the popup does not work.
I modified the nodeapi function to look as such to fix the problem:
<?phpfunction quran_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
switch ($op) {
case 'view':
drupal_add_js(drupal_get_path('module', 'quran') .'/ichsan-tooltip.js', 'module');
drupal_add_css(drupal_get_path('module', 'quran') .'/default.css', 'module');
break;
}
}
?>
#5
#6
Thanks nbz, I will try your codes insha Allah. Jazakallah brother.