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

angina - July 23, 2009 - 03:53

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

ichsan - July 30, 2009 - 17:21

Soon, insha Allah before Ied Fitr (Ied Mubarak) I'll release this. Actually I want to show you the snapshot version.

AttachmentSize
snap.jpeg 66.71 KB

#3

angina - August 18, 2009 - 03:57

tak tunggu mas ichsan.....
:)

#4

nbz - September 19, 2009 - 16:29
Status:active» needs work

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:

<?php
function 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

nbz - September 19, 2009 - 16:29
Version:6.x-4.0» 6.x-5.0

#6

ichsan - October 8, 2009 - 14:47

Thanks nbz, I will try your codes insha Allah. Jazakallah brother.

 
 

Drupal is a registered trademark of Dries Buytaert.