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

New Module: User Points

A new module, User Points has been uploaded.

Users gain points when they post info to the site, such as posting a node, commenting on a node, or voting on a node.

The site admin defines how much points a user gets on each event.

More on the User Points module.

New Contributed Module: Node Vote

I just created a new project for the Node vote module.

It allows users with the appropriate role to vote of nodes, assigning each a score from 1 to 10. By design, users do not see the score for a node untl they have voted but that could be changed if needed.

More in the Node Vote module.

Access Control and Search in module design

I am making some design decisions for a module I am working on, but I don't know enough about Drupal access control to make the right decisions...

Briefly, I want to be able to prevent anonymous access to some content generated by my module, but allow anonymous access to other content. I also want to have a search function operate on my module.

Loading node->nid

How do I get access to my node id? I have a custom table which I want to link with the main node id that is part of all served drupal pages.

I see lots of function calls with ($node) or (&$node) in them but that presupposes you have a pointer to $node. I also see several hooks like _insert, _update, _load with access to $node but adding those hooks to my module doesn't seem to help.

I'm not sure when they get called or how I could pass the data to my receive hook.

thanks

All blank pages after inserting flexinode content

Hi all,

After making a new Flexinote content type, including mp3 and gallery field types,
I inserted a page, only to know that some dir for mp3 didnt exist and galery needed configuration, BUT after that;

NO PAGES is shown whatsoever, including admins, users, non login content, no nothing!! Figure I got to create a whole new setup, but if anybody would know a simple way trough to restore some defaults, or possible delete the malicious node, I should be so gratefull for saving a days work or 2!!

Thanks plenty
henrik

writing to the drupal.node table ?

Hi Folks

Can someone point me to the place in the drupal code please where we insert records into the node table
for the cases when we submit a blog,forum,.. entry ?

I have done a search over all drupal files in dreamweaver for

INSERT INTO {node} ... nothing
INSERT into node ... nothing

UPDATE {node} .... yes
UPDATE node .... no

I have also looked carefully over all search results generated by
INSERT itself but could find anything relating to inserting records into the node table

Pages

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