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

Adding a content type from a custom link

Hi, i would like my users to be able to create a new employe_profile piece of content by clicking a link in the employermenu and filling in the form.I need to create this code programatically.I am guessing that below is the sort of approach i should take, but its not working ,so any help greatly appreciated. :)

mugsht error after moving server

hi there
i had mugshot running on drupal and all was working fine
i was on a dedicated server running plesk, i then moved my server across to another company, a dedicated server running cpanel and transfrered the site over

but now mugshot is throwing me errors and not working when users take pictures, the following error is given and no image is saved
iv made sure that the files/mugshot directory is 777

handling image uploads

Hi guys,
Currently I am building an ecommerce site.Now for the product entry form I want to be able to upload multiple images. I want to be able to delete them as well and later add more images . How can I accomplish this using image module.I don't want to use cck for this.Is there any other alternative or simple way to accomplish this ?

Seeking for help

Add a form (or a link to such) to inquire about a product/node

Is there an existing module for adding a contact form, or a link to a node-specific contact form, for people to email an inquiry about a product (or about any node)?

If not... would any of these be good ideas?

Multidimensional form problem 5.2 Form API

I am trying to create a form that first requests the user select a value, then upon submit, it displays 2 more fields based on the initial input. I have been successful at getting the form to actually work, but there are still two nagging problems I need to resolve.

1. When the second form displays, I see the word "Array" displayed on my page. It only appears after submitting the first form, so I have to assume that it is coming from drupal_get_form()
2. Even after the final submit is processed, the values are still being kept in form_values. That is, when I go to the form again, I still see the old options displayed. It seems there is some sort of cache or something, but I cannot figure out how to clear the values out of $form_values once the form has been submitted.

Here is the code I am working with. Note: I am calling drupal_get_form() from with a Block.


function test_form($form_values = NULL) {
// Build options_1, which will appear on both the first submit of the form and the second. The second version will have the values from the first submit already selected.

if(!$form_values['options_1']){
$options_1=get_options_array();

$form['options_1'] = array(
'#type' => 'select',
'#title' => t('Title'),
'#default_value' => '--Select Options--',
'#options' => $options_1,
'#description' => t('Description.'),
);

uploading files into CCK node programmatically...

hi,

I'm trying to upload cleanly an image or sound to a content having CCK imagefields using custom code...
the file is uploaded from a flash application to a custom php...

I do something like this :

Pages

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