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

Dilemma: banners or images?

I am trying to install the banner module on Drupal 4.7, but I have some kind of dilemma...

The install file of the module tells me to:
"1. Go to 'administer -> settings' and configure the file system settings. Make sure that 'Download method' is set to 'Public'."

but...............

if I do that, my images don't show up anymore.... and I have quite a lot of galleries on that website.

I tried the install with the 'Download method' set to 'Private' hoping it's not mandatory, but it doesn't work.

Help, Please. Is it possible to display a pulldown menu option in the webform email as the subject line?

I've got a client who needs to separate out emails based on the issues. The issue options are in a pulldown menu for the user to choose. I need to be able to take the name of the issue and populate the subject line of the email that Webform sends out. Can I do that? I only see the option to use text fields. Is there a way to use PHP in a hidden field to set the subject or some other work around?

My client requires this option and I didn't realize that Webform couldn't do it until now. I'd rather not have to recreate the whole form.

Any help is greatly appreciated!

gradebook.module how it works exactly

I've dropped the gradebook.module into my modules folder, created database tables for the gradebookapi. and created roles named "student", "teacher".

and still getting errors.

I've searched the drupal site and find nothing helpful regarding the gradebook.module.

Can someone help me solve this problem.

retrieve value of an object property

I made a print_r of the $node object to view its properties. This is the output.

stdClass Object
(
    [nid] => 3
    [vid] => 3
    [type] => shoes
    [status] => 1
    [created] => 1158082601
    [changed] => 1158082601
    [comment] => 2
    [promote] => 1
    [moderate] => 0
    [sticky] => 0
    [revision_timestamp] => 1158082601
    [title] => Cake
    [body] => dsaflfjsdalkfjskdalf
    [teaser] => asdklfjdaskfkldsf
    [log] => 
    [format] => 1
    [uid] => 1
    [name] => admin
    [picture] => 
    [data] => a:2:{s:6:"submit";s:18:"Create new account";s:7:"form_id";s:13:"user_register";}
    [last_comment_timestamp] => 1158082601
    [last_comment_name] => 
    [comment_count] => 0
    [copyright] => dgkadfjklasfjdklafdskl
    [taxonomy] => Array
        (
            [6] => stdClass Object
                (
                    [tid] => 6
                    [vid] => 1
                    [name] => bar
                    [description] => 
                    [weight] => 0
                    [language] => 
                    [trid] => 0
                )

        )

)

I want to retrieve the value "bar" but I can't figure out how to do that,my serveral attempts fails . More insight on how to do that will be much appreciated. Thanks

I tought this will work $node->taxonomy[6]->name, but never worked.

new concept for (node) modules

example (contact.module)

delegate the following tasks:
- create a content-type for the contact-messages (cck)
- send to specific emailaddress(es) after creation (workflow, actions)
- lists (all messages/my sended messages/my received messages) (views)

The only thing that is needed:
- installer which guides the admin through the tasks listed hereabove. (maybe with helpers for basic configurations)
- overviewpage for these settings (for better ui)
- possibillity to export configured settings (could be delegated too)

Forms API. Sequence of forms HOWTO

Dear friends,

Forms API in 4.7 looks great! But I can't figure out how to do a sequence of forms.

Form 1 has a single selector for issue's ID. After the user submits this ID two froms must be displayed:
Form 2 "Change this Item"
Form 3 "Remove this Item"

It is, of course, possible to merge 1-2, 1-3 and deal with two separate forms, but I don't like this solution.

Pages

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