Disappearing block

I have added a forum. I wanted more space for the forum - so I went to 'Structure/blocks' and set on of the side-bar blocks to show when every type of content is present EXCEPT forums...

Fine. The block disappears from the forum... and voila I have the space I wanted. Excellent.

Except the block has also disappeared from the Home page - even though I have set it to appear everywhere except where there is a forum....

What gives?

Module. Advice needed on storage of a single date for a user.

Looking at the best way to store a persistent date for individual users.

I have a user/%/date page with the date (module) form field date_select. Its working ok. What I want to know is what would be the best way to save this date for that particular user? variable_set? variable_set doesn't seem to work with the date form field, as it resets to the default date every-time.

How would you save the date so it can be used again simply and from visit to visit? Any sample code would be appreciated to see how its done in 7.


/*
* Include the date api for the form widget and validation.
* Maybe wrong include path????
*/
include 'sites/all/modules/date/date_api/date_api_elements.inc';

/**
* Form builder; Create and display the BD configuration
* settings form.
*/
function bd_form($form, &$form_state) {
// Text field for the BD.
$format = 'Y:F:j';
$form['bd_last_cycle'] = array(
'#type' => 'date_select',
'#title' => t('The last Cycle.'),
'#description' => t('The last time you had a bd.'),
'#date_format' => $format,
'#default_value' => variable_get('bd_last_cycle',
'0000-00-00 0:0:0'),
'#required' => FALSE,
);
// Submit button
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save settings'),
);
return $form;
}

/**
* Save configuration settings for BD module.
*/

Alternative to ThemeGarden for Drupal 7.x

I'm just wondering if there's an alternative to themegarden.org which does the same thing but for Drupal-7.x themes.

Also wondering on when themegarden.org will be upgraded to encompass Drupal 7, and I have no clue where to look for that information.

Is Panels overkill for my website plan?

Im still very much in the learning phase when it comes to Drupal but have watched a few video tutorials, read some PDF chapters and have some background CMS experience. Mucking about locally with my website plan I thought I would ask the community their views.

My website initially will be made up of:
basic pages of content
contact form with CAPTCHA
event booking via the date/calendar/event modules

Later on making way for some community features such as forum.

Already I have produced a basic css based theme using fusion starter kit, quite happy with what I have so far but now im at a cross roads. The next step was to incorporate a ddblock into the header, allowing internal advertisments in an image slideshow. Just adding the block to a region puts my whole design out of sync so I see the following options:

1) alter the template files to better incorporate the region into my design (im struggling with this as its been sometime since ive had to do such work)

2) integrate a jquery banner directly into my template (which would presumably remove the ability to configure my banner from the drupal UI)

3) install panels module and change the page design this way (keeping in mind I probably want this rotating banner on all pages)

Drupal 7 autocomplete_path function to return additional values

Hey,

For a Drupal 7 module I'm working on, I'm trying to figure a way for my autocomplete_path function for a textfield to return additional information back to the hook_form function it was called from.

a Day/Time field that views can display for the current day

I have a content node to hold Venue information. Essentially the Location and Time of a WEEKLY poker tournament.

First off I have it to where I can put in the Venues name, the address, etc...

But I need to also input what day of the week the tournament is on, can't figure out the settings to do this (some of the weekly games have multiple days).

So for example I will need fields that I can put:
Monday 7:00 pm and 10: pm
Sunday 8:30 pm

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x