Date problems

Good Day everybody.

I have been working on a script that will import zazzle products into the drupal database.
It is working but there is 1 problem and that is the date insert in to the database.
I am using the DATE module for it and the command.

$node->field_pub_date[und]['0']['value'] = $pubDate;

The var $pubDate is filled with the value : Sun, 22 Oct 2006 14:04:36
The custom input format is "D, d M Y H:i:s" these two match. And i did set the time zone handling to UTC.

when i run the script i get the following error

align in views

Hi all

I made a grid of data by using views, it should be shown in a block.
I need some of the fields to be center and some align to the right (and not always by default to the left).
I tried to write several html codes without working...
should I write the style in the "Element class" "Wrapper class" or some where else ?
What should I write to make it work ?

Thanks !!!!
bambiker

Changing field term reference 's vocabulary base on current user

HI all,

My boss requested me to modify term reference and allow each user have their own taxonomy vocabulary.

For example, in content type product, there is a term reference field called 'factories'. It's associated vocabulary is "faclist".

When user A create a product, the vocabulary of 'factories' will be changed to 'usera_faclist'.
When user B create a product, the vocabulary of 'factories' will be changed to 'userb_faclist'.

Uploading a page...

Hello,

I've installed drupal on my server... Now it is installed in "my-domain".com/drupal/...

If I type in the address "my-domain".com it doesn't show my page, but it shows Plesk commercial frontpage...

If I type in the address "my-domain".com/Drupal/ then I can view my page.

I want my page to show up when I type in "my-domain".com, how do I do that?

Thank you for your answers,

rrrok1

How to get submenu items?

Hi there,

I'm really new to all the drupal stuff but I'm creating a theme from a design I already have.
I succeeded in displaying the main menu but I can't retrieve the sub menu items who are under those items.

I'm using the $main_menu variable but I was thinking I might need to use a hook or template function to get the right details.
It would be nice if there's an easy way to get a simple array with some basic information about the menu items and there sub menu items.

So currently I have the following code:

Email notification

Hello. I am using the acquia stack installer on my machine , i instaled and inported the drupal 7 version from here (drupal.org), for the development state of my site. So i am trying to register user(for testing ) , like any anonymous would in real tine . I type a user name, valid email adress , and "creat account". Immediatly AVG is asking me if i allow something , i say allow , but i never receave the email from drupal to activate the account. Can anyone help ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x