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?

CommentFileSizeAuthor
#2 snap.jpeg66.71 KBichsan

Comments

amirudin’s picture

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.

ichsan’s picture

StatusFileSize
new66.71 KB

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

amirudin’s picture

tak tunggu mas ichsan.....
:)

naheemsays’s picture

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:

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;
  }
}
naheemsays’s picture

Version: 6.x-4.0 » 6.x-5.0
ichsan’s picture

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

ichsan’s picture

Status: Needs work » Closed (fixed)

I've implemented this on 6.x-6.0

sadist’s picture

Assalamualaikum ichsan,

I'm so happy to see this module here in Drupal. And I've also been looking for this kind of feature, for author to just quote direct from the database.

1) In each of the verses, there should be buttons to Blog this and Copy.
2) Directly while writing content, I hope to see a feature to insert a particular verse by using autocomplete (like tagging in facebook status) or select form.

I hope that I'm not being too much, as we could always compromise what is better and more practical.

My reason of using this great module is for my site that has a group of ustazs, this is to make it easier for them to just get the quote directly from where they are writing it.

Regards and thanks so much.

ichsan’s picture

@sadist

Wa'alaykumsalam wr.wb.

Thanks for your comment and ideas. But I want to know more about the ideas:

1) In each of the verses, there should be buttons to Blog this and Copy.
^^^^^^^^
Do you mean in "render" mode there should be a tiny javascript popup when it's clicked it will copy the whole text including the Arabic?

2) Directly while writing content, I hope to see a feature to insert a particular verse by using autocomplete (like tagging in facebook status) or select form
^^^^^^^^
Do you mean while typing "[qs:" there will be an autocomplete to tell how to complete the macro and what the options are? If it is, I don't know. I think it's quite difficult without other module which already support this. The writer currently has ability to see how to create the macro because the instruction is displayed below the text area.