Posted by nbz on July 22, 2009 at 10:27pm
| Project: | Quran |
| Version: | 6.x-5.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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?
Comments
#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.
#7
I've implemented this on 6.x-6.0
#8
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.
#9
@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.