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

diet modules

Last week i was diagnosed with Diabetes. So I now live on tight diets. :):)

However, I plan to develop some modules for my blog. One is to maintain a (closed) online log of my sugar levels, with some nice summary information etc. I now collect them in a spreadsheet, but off
course, as real geek, it shoud be online, in Drupal. With login and access to the data for my doctor etc :):)

In addition to that (I do not know if you know diabetes) I need to track the exact amount of carbohydrates in my meals. They are crucial to me. This is where I want to speak to you about:

I want to make some modules for (general) diets and I need help for this.

The module(s) should do the following:
* create a database of nodes with nutritional info. Each node is a product. For example "milk".
* create a database of recepies that are compiled out of these products. Each recepy will calculate the nutritinional info from the sum and amounts of the components it is made of.
* allow a log of meals. Each meal is an (optionally altered) recipe
* allow a default "ideal day" (diet reference values). One can log her
differences these ideals (e.g. ate 40 carbohydrates more at noon).

My question to you is, to give me some thoughs, ideas and possibly some code. I am looking for
ideas, coders and writers. I am looking for people with better knowledge about diets (mine is limited to diabetes diets) and so on.

Troubles with ogranic groups

I installed og and create one group. I see information about group - No posts yet in this group - that's ok. I add page for this group, and again see information about this group, and what i see \n"); // --> OR \n\n\n\n\n\n\n\n\n\n"); // -->

why ?

Display own content

Hi all,

I'm searching for two days now, but I wasn't able to solve the following problem. I created an own module which has his own database extension and his own form to fill out. Once filled out the form, the content is properly inserted into the database (extension). The problem I'm struggleing with, is that I can't get it back out again for displaying it on the screen :-S. I implemented the hook 'load', but that doesn't seems to be enough. Can somebody tells me which step(s) I'm missing?

Thanks in advance

Greetz Davy

hook_delete() overriding

I've created a module which extends the core node structure and adds some extra data to represent a special type of record.

This custom type of node should never be deleted, instead, when ther delete is requested by the user it simply gets flagged as deleted.

Import dmoz into Drupal

I'm working on a script to take the dmoz RDF dump data ( http://rdf.dmoz.org/ ) and import the categories (~600K of them) into Drupal as taxonomy terms in a vocabulary.

The script can produce SQL like the following:

INSERT INTO term_data ( tid, vid, name, description ) VALUES (1, 1, "Top", "Top");
INSERT INTO term_hierarchy ( tid, parent ) VALUES (1, 0);
INSERT INTO term_data ( tid, vid, name, description ) VALUES (2, 1, "Arts", "Top/Arts");
INSERT INTO term_hierarchy ( tid, parent ) VALUES (2, 1);
INSERT INTO term_data ( tid, vid, name, description ) VALUES (38, 1, "Movies", "Top/Arts/Movies");
INSERT INTO term_hierarchy ( tid, parent ) VALUES (38, 2);
INSERT INTO term_data ( tid, vid, name, description ) VALUES (465672, 1, "Titles", "Top/Arts/Movies/Titles");
...

It's very much a work in progress, and at this point, I don't have any specific questions to ask anyone. The purpose of this post is simply to let people know what I'm doing, in case anyone is interested in the same thing, or has any suggestions or knows of any gotchas.

-Frank.

Including content in content

Hey everyone, I could have sworn I stumbled across a module yesterday that does this... but now I'm having problems locating it. I may be going crazy. I've done some searching through the forums, but I'm not real sure what terminology to search for...

Basically I have "profiles" of authors that I need to include in stories. When viewing the story, I want to have a block of content that includes content from one of those "profiles." Right now I have my "profiles" setup as stories under a different vocabulary set.

Pages

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