Calculating remaining time: what to do with timezones?

Hi everybody.

I'm working on a module which adds a new node type.
This new node type has a "closing_date" field which is in unix date format.

I need to show informations about the remaining time before the closing date calcolated from current time.

Drupal support the configuration of timezones.

What do I need to do to correctly use dates with timezones??

example:
closing date is 12/12/2006 15:00 GMT
I've set GMT as my timezone on my drupal account page
In my timezone is 12/12/2006 13:00
the module show "2 hours remaining"

setting node->title from module fields

Hi everybody!

I need to set the title of a node from other fields provided
by a custom module created by me.

The custom module has two fields called number and name.

How do I set the node title to be 'number . name' ?

thank you.

Fabio

Only Coarse Permissions?

Hi,

I'm having trouble with some of the permission settings, and I'm not sure if I'm just missing something...

Basically the site I'm working on has a blog/articles section and a forum. I need to create an "Author/Moderator" user role, that can write content, edit all nodes and edit, authorise and close comments, but not change site-wide settings.

All first level terms in a vocabulary

Hi all,
I've a two level vocabulary say

- A
-- B
-- C
-- D
- E
-- F

etc ... How do I get all first level terms from this vocabulary (A and E in my example) ?

I need an associative array (tid => "term name") to use it in a multichoice form.

My goal is to add a blog list type field to flexinode, so to display a list of all blogs associated with a
vocabulary.

thanks

p

Dangerous archive module

If using the archive core module, a spider can really slow down a drupal site, by recursively following the "previous month" links on the archive calendar.

I saw that recently (a few Gigs of extra bandwidth during 48h, 90%cpu...), and it's very annoying. That's why I posted the following bug report,
Archive "back" links dangerous for spiders and robots.

mailhandler module compatible with 4.7/CVS?

Hi there! Is anyone using the mailhandler module with 4.7 Beta/CVS and can give hints on whether the module is compatible?

Thanks!
Marco

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x