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

Views: Possible to create views of users?

Based on profile questions, I'd like to use Views to create several result sets of registered users on our site.

Don't see user ID's or profile fields as available field options in Views... but I bet this nut has been cracked before. Any suggestions?

Thanks
-Greg

Access to $_POST and $_FILES superglobals when submitting a node form

I've created a node type as part of a module that I'm developing. When the form to add the node is submitted, I'd like to have access to the raw $_POST and $_FILES superglobals. Does anyone know where I would be able to do that? I tried it inside my implementation of hook_insert and hook_update, and that didn't work. When the form is submitted, the data is added to the database and then the user is immediately redirected to the page containing the nodes content.

Thank you in advance to anyone who can help.

Name that Module

I am looking for the name of the module that allows you to get your blog posts in organized groups.
I saw it at http://www.sanfranciscorealestatebrain.com/ after following a link from the forums.

If you go to the link above and look on the left side of the layout, the expandable categories are what I am talking about.

How do I get my blog posts to do go into something like that automatically when they are posted?

Thanks.

form element size in contacts module

Hello,

I'm trying to find out where the lengths of the contact module form elements are set. When I view the source of my contact page, I see

From looking at form.inc, I see that size is being set to a variable called #size, but for the life of me, I can't find out where to set this. The current size causes the element to exceed the space I have set for it, and therefore displays an unwanted horz scroll bar.

#cols is the other one I'm after.

I also see

Accepting arbitrary payments in multiple currencies - which module turn to?

My website (a money transfer website) needs to accept user-specified amounts in user-specified currencies. I looked at two modules, LM PayPal and Ecommerce, and still find it hard to get my head around tweaking either of them to do what I need.
Let's say: user creates 'transfer' node, specifies all the data and proceeds to PayPal. After successful payment, transfer confirmation is returned.
Any ideas as of easiest way to do this?
Thanks.

nodeapi and node_save issues

Hi,

I'm working on a little module which opens a forum topic for each story you create. The story shows a link to the forum topic in place of the comments system and the forum topic shows the teaser of the story and a link back to this story.

The idea is to bring integration between articles and forums and having a specific forum which contains all the news discussion.

I'm trying to use Drupal's nodeapi so as to make this compatible with any type of node and node_save() so as to avoid having to deal with lower-level database calls.

Here are the two main problems I encountered during the development of this module. Any help would be welcome.

PROBLEM #1: using node_save() in a nodeapi 'insert' operation

The nodeapi hook performs actions when a node is submited, inserted, deleted, updated and viewed and node_save() takes a StdClass with the node's properties and creates the node.

I first tried with the submit operation of nodeapi and everything worked fine with the creation of the forum topic but I discovered that submit is also called when I modify a node so I tried with insert. Resulting in forum topics duplicating on each node modification.

Pages

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