*_block completely incorrect

http://drupal.org/node/206758 explains how to "Declare we have block content"

So i made one but when in /admin my menu was gone and saw "Array".
Then i started debugging, guess what: $op is of type stdClass and NOT (as the docs say) an "operation".

Did i screw something up?

Problem with sql error and database integrity

Hello,

I’m new in Drupal (few days). I developed a simple module just to understand how drupal works.

It’s a simple form. User give first name, last name and email, then the module insert into the “inscription” table.

Everything works well.

But,I tried some test about integrity of the data base. So I just modify the table “insert” to see how drupal will work with a bad sql query. I change e_mail in email. Just for test.

function inscription_insert($node) {
db_query("INSERT INTO {inscription} (vid, nid, nom, prenom, e_mail ) VALUES (%d, %d, '%s', '%s','%s' )", $node->vid, $node->nid, $node->nom, $node->prenom, $node->email);
}

I got 2 problems.

1.- “drupal” give 2 messages. The first is ok error sql (is not a warning… neverless), but the second message is incorrect the “Inscription hasn’t been created.

Drupal message
--------------------------------------------------------------------------------------------------------------------
• user warning: Unknown column 'e_mail' in 'field list' query: INSERT INTO inscription (vid, nid, nom, prenom, e_mail ) VALUES (3, 3, 'bla', 'bla','bla' ) in D:\xampplite\htdocs\drupal\sites\all\modules\inscription\inscription.module on line 142.

blog as read only

I would like to make it so each user has a blog, but their blog is read-only. They are only allowed to view their blog, but not allowed to post or change any blog entries. I cannot see a way to configure the blog in this way. any suggestions?

Search this website and other drupal sites (very unuseable)

I'm building my first real website with Drupal and i need:

- Downloads section
- News section

I also need blocks with:

- latest news
- latest downloads

I've searched for eons on this website, but every time i search for "news module" the search results have nothing to do with it (other then a XML parser that fetches news from other website)
Searching for "downloads module" has no good results either.

How do you people search on a Drupal website where everything is a node so any search result is any node and not what you want?

Drupal 6 version numbering will lead to problems

8 more little core patches to go and we are in trouble

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x