This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Adding sub item

I am trying to write a new node module, and have the parent nodes done, and want to allow users to add a subnode to them.

I have a link on the node page that allows this, but I cannot figure out how to get my hook_form implementation to figure out the parent node. The url has the parent node in its path, but I cannot figure out where I can read it from. The hook_form $node is the current node (obviously so you can edit the node) but where is the parent one?

Help/Guide in cloning the forum module

Good day! (or whatever the case may be)

I am trying to clone the forum-module as a starting point for a "Questions module" or probably "Answers module". The purpose is to come up with a module that has a similar functionality to "Yahoo Answers" http://answers.yahoo.com

I thought it's just a matter of searching and replacing the word "forum" to "questions" but it turns out that it's not as simple as that. I know that it will be fairly easy if I'm very familiar with the Drupal API or php but I'm neither. The words forum and forums as well as the variables with the same names are used in different contexts in the code that is confusing, therefore a lot of room for mistakes.

If you're familiar with the forum module's code, is the variable $forum for a forum topic (created by the user) or taxonomy term under the containers? What about the variable $forums?

These are the changes I am trying to achieve...
admin:

  • Container is still called Container
  • Forums (taxonomy terms) will become Topics
  • Forum topics (end-user-created) will be called Questions

end-users form:

  • Subject becomes Question
  • Forum/s become Topic/s
  • Body becomes Explain your question
  • Reply can still be reply

and I thought it was just a matter of replacing the words :-( I can actually just replace the words at the language level if I am not having forums on my site but I'm having forums as well.

Help w/ diff & patch please

Hi everyone, I need some help. I'm trying to create some patches for the invite module, but for some reason they are note being created properly.

To see what is wrong, I performed the following simple test.

1. Uploaded invite.module and invite.module.new to a /patch directory (on Linux box, FC1)
2. Navigated to the /patch directory
3. > diff -up invite.module invite.module.new > testpatch.txt

Views + search results

Please tell me, how can i make views snippet (or patch), which able to filter and sort search results?

Drupal 5.0 with CiviCRM 1.5 test site

I've found a way to adjust CiviCRM 1.5 so that it works with Drupal 5.0

Here is a link to the test site:

www.ofeliascommunity.org/test

You have to log in with the demo account or create an account to be able to use it. You won't be able to see the CiviCRM Admin menu, but this will at least give you an idea of what CiviCRM 1.5 looks like in Drupal 5.0

Enjoy!

Images in Menu items (qestion for privatemsg)

This isn't so much about the privatemsg module as it is about the menu system ...

I would like to insert an image into the "my inbox" string on the menu to show an icon when there is new mail, however when the menu element gets created, it converts any HTML so that it can be displayed.

Any (easy) was of bypassing that in the menu system? Or maybe is there a hook in privatemsg to change the appearance of "new"?

Thanks in advance..

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions