I am working on a module that would allow nodes to be set as unpublished based on a user entered value.
For example the user is setting a duration of 10. I need to get the current time, add ten (from the user), then save into my db into pm_field_item_close_date 9which I already have within my node_item table. I am trying to do this when the user creates the node so I thought I should use the hook_insert.
I want to be able to enter a list of items and have users give the items monetary values. I want each item to display the average of these given values. Each user should only be able to assign one value to each item.
I am relatively new to Drupal so please bear with me.
I am trying to use organic groups to develop a site which has the following functionality:
- Administrator sets up Groups and sets up and assigns users to these groups
- Users then can login. They are redirected to their appropriate group homepage as set up in the admin. From here, they can then post to their group only and read what other members of the group have to say and comment on them
I've created a template node with CCK.So to make it seem litte more fine i've decidet to modify it with contemplate module.
Now the question is, this:
When i add a field with contemplate it use always the print $varailbe so i'm not able to show images in my content becouse instead of the image i'have the value of the variable (like file path file name etc etc)
How can i solve this?????????