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

Aggregator2 - way to disable "delete feed items after..."

Can anyone help me determine which lines of aggregator2.module to comment out so that it will never delete feed items?

I always keep the option for feed item deletion at "Never", but for whatever reason, all my feeds deleted all my feed items. I checked out the feed options, and everyone had the "delete feed items after" option changed. I have no idea how this occurred.

Regardless, I never want my feed item nodes deleted, so I'd prefer to prevent this from ever happening again by disabling that feature.

Please help if possible.

categorization

Hello!

I have not so small service based on Drupal - www.muzyczna.pl.
Now I would like to organize my content much better. I would like to give category to all of it (articles, book, reviews, links etc.).
Do You know how to do it? I would like to do like this: I read an article about e.g. Radiohead and in the block (right column) I could see links for last articles about this band, links, reviews and books.
I will pray for you if you will help me.
Please. It is very important for me.

Thank You...

Need help in Webform Module

I would like to add Radio Buttons and Check Boxes to the Webform. How can i do that?

Need help on moviereview module

I have a problem on using moviereview module. And this is my first time to use this module.
I had created a moviereview content in my website. It had been published directly. But when I log out from the site and view it as anonymous user, the image (URL Link) and synopsis become unavailable. The content can only be seen as the original creator or admin. It seems it's the permission problem. I checked the Access Control, the "Access Moviereview" right had been granted to anonymous user already.

Field for phone number on contact form

I wanted a field on my site-wide contact form for the user's phone number. Here's the code I added to my module in hook_form_alter() to add it:

// Add phone number to contact mail page
  if ($form_id == 'contact_mail_page') {
    $form['phone'] = array(
      '#type' => 'textfield',
      '#title' => t('Your phone number'),
      '#maxlength' => 255,
      '#default_value' => $edit['phone'],
      '#required' => false,
    );
    $form['name']['#weight'] = 0;
    $form['mail']['#weight'] = 2;
    $form['phone']['#weight'] = 4;
    $form['subject']['#weight'] = 6;
    $form['message']['#weight'] = 8;
    $form['copy']['#weight'] = 9;
    $form['submit']['#weight'] = 10;

    // Add the phone number to the email
    if ($_POST['edit']['phone']) {
      $_POST['edit']['message'] = t('Phone number: ') . $_POST['edit']['phone'] . "\n\n" . $_POST['edit']['message'];
    };
  }

You can see my implementation on my yearbook website.

What this does is adds a field for phone number and on submission of the form, it puts the phone number into the top of the body field.

The only problem is that if the user's form doesn't validate (e.g. they leave out the subject field) then when the form comes back to them to complete the phone number will already have been added to the subject field, as well as being in the phone field. Hence when they submit again, you will have the phone number twice.

static pages for authenticated users only

I'm in the process of converting a site to Drupal that has a large number of (mostly html) pages that are restricted to members. I'd like to have it so any link to one of these pages forces a check that the person is logged in on drupal and then serves the page as normal (and all of the subsequent graphics etc.)

I've put this restricted tree into the drupal directory and have been fiddling with .htaccess permissions, but is there any way short of registering every individual page as drupal files in the database?

Thanks for any pointers.

Pages

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