Is there a pop up module to collect emails from ivisitors before they want to leave the site?

Is there a good popup that will not be blocked by browsers that will popup when user try to leave the site and will collect his email and subscribe him to newsletter?

[SOLVED] How do I know what path to use?

I'm not very clear on how I get the base path to use when creating menus. Is there a simple rule of thumb here? Looking at the entries in the database (menu_links, menu_router) is not clearing it up. (Most of the entries start with "admin")

When I try to create a menu item in the Admin UI, it complains that I'm not using a real path. Not sure what the basis for a real path is. (Testing menus using the UI before I try passing them via the API in my module.)

Any insight appreciated.

Looking for some place to start

I am looking to change professions in the coming year. I am currently a coal miner from east Kentucky though the money is great risk and and unstable future for mining has me turning to the first thing i loved and that is web design. I have know HTML, DHTML, CSS and Javascript pretty fluently and I have figured out quickly things have changed over the past few years. I have done my research and I have decided to try Drupal first it seems to be much more powerful than the others.

How to programmatically set default value to imagefield in form?

Hello.

I have form alter function, that adds 'select' element with AJAX function and an imagefield. Goal is to load node's images into imagefield depending of node number selected in 'select' element. It's like node edit form, but with a bit of AJAX.

So, I tried to get it with _field_invoke like this:

  if($flag) {
    $form['product']['uc_product_image'] = $form['uc_product_image'];
    unset($form['uc_product_image']);
    $field_name = variable_get('uc_image_' . $node->type, 'uc_product_image');
    $options = array('language' => field_valid_language($node->language), 'default' => TRUE, 'field_name' => $field_name);
    $form['product'][$field_name] = (array) _field_invoke('form', 'node', $node, $form, $form_state, $options);
    $form['product'][$field_name]['#weight'] = 2;
  } else {
    $form['product']['uc_product_image'] = $form['uc_product_image'];
    unset($form['uc_product_image']);
  }

But I got this:


Warning: Invalid argument supplied for foreach() в функции file_field_widget_form() (строка 462 в файле X:\home\kaljan.test\www\modules\file\file.field.inc).
Warning: array_values() [function.array-values]: The argument should be an array в функции file_field_widget_form() (строка 471 в файле X:\home\kaljan.test\www\modules\file\file.field.inc).

Serial Field in Drupal 7

Looks like there is no Drupal 7 version of Serial Field module (http://drupal.org/project/serial), and sure version for "6" doesn't work on "7". Or is?

Project page (http://drupal.org/project/serial) says there's a replacement, "Type-local nids" module, but I still cannot make it work as I need it to (right now I don't remember what is the problem exactly, but can figure it out for you).

[SOLVED] Right Menu Approach when needing Main menu and Tabs?

I'm new to Drupal and would like to develop a custom application using Drupal7. (Essentially a very customized website, should be what Drupal does well.)

This application needs a few main menu options; and depending on the context, a set of tabs that a user could select. If they pick a tab, then the content of a region will change.

What makes the most sense in Drupal7:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x