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

Locale Module

It is so hard to deal with locale module. I have great deal of translation file .po for drupal 4.7, and now i've got to translate all over again for drupal 5.x ??

Of course i can import the .po from 4.7, but in that translation file there are LOTS of unnecessary strings, which do not appear un current project. So, WHY there is no option "Update existing strings and DO NOT add new ones" ???? Is it really so hard to put something like that? I tried to make a hack in locale.inc, but no luck, it still imports string no matter what..

Multi-step forms

Hello,
I've tried the multistep form guide (http://drupal.org/node/101707 and the various other posts on the subject but I'm still stuck, badly, on this.

I think it's down to $form_values not being passed back correctly.

What I'm trying to do:
1) create a form containing a list of questions (this is ok)
2) form submits & validates, a score is calculated dependent on answers (this is ok)
2a) A save button is shown to save this score.

Form theming causes fatal error

Hi there,
I tried an example from the api pages (http://api.drupal.org/api/5/file/developer/topics/forms_api.html) but i get a fatal error:
Fatal error: Cannot unset string offsets in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\Projects\CapitalInv\includes\form.inc on line 319

I have no clue whatsoever why this happens.
Here's my code

function theme_taxonomy_alternative_overview($data) {
$rows = array();

$options = array('1' => t('Enabled'), '0' => t('Disabled'));
$form['access'] = array(
'#type' => 'fieldset',
'#title' => t('Access log settings'),
'#tree' => TRUE,
);
$form['access']['log'] = array(
'#type' => 'radios',
'#title' => t('Log'),
'#default_value' => variable_get('log', 0),
'#options' => $options,
'#description' => t('The log.'),
);
$period = drupal_map_assoc(array(3600, 10800, 21600, 32400, 43200, 86400, 172800, 259200, 604800, 1209600, 2419200, 4838400, 9676800), 'format_interval');
$form['access']['timer'] = array(
'#type' => 'select',
'#title' => t('Discard logs older than'),
'#default_value' => variable_get('timer', 259200),
'#options' => $period,
'#description' => t('The timer.'),
);
// Description
$form['details'] = array(
'#type' => 'fieldset',
'#title' => t('Details'),
'#collapsible' => TRUE,

Customizing the View module

Hello all,

I'm using the Video module to stream videos for my client on his drupal driven website..

I want to use the View module to pick up all the videos and display a "thumbnailed video gallery"...

The actual problem now that I'm facing is that within the available visualizations modes for the view module: Full Nodes, Teaser List, Table View, List View I dont get one that really fits in what I want rendered..

I have created a Block view.. and would like to create a table of thumbnails (say a 4 x 4 table) where every cell will contain a thumbnail, a description of the video and a link to start playing the video in a new page.. (this new page has its own template for a node of type 'video', ie: node-video.tpl.php )

Any suggestions in how to do this? Do I have to hack my way through the View module so as to customize the rendering model...

For what regards the Video module itself, I set the thumbnail image in the 'Image thumbnail' field the module provides, also putting a small description in the 'body' field.. I also set up TinyMCE throughout the site..

Please let me know how to go on about this if any previuos experience...If any suggestions? Should I use a different methodology maybe??

about content creation in drupal

after i placed if condition in the content body in front end it is displaying the error. ie.,
Parse error: parse error, unexpected $end in c:\apache\htdocs\drupal_New\includes\common.inc(1180) : eval()'d code on line 10.

Please Clarify.

Multi Page Forms and Drupal 5.1

Greetings all

I have lately stumbled upon this bookpage Dynamic and Multipage forms with Forms API

I have tried my best getting it working but it seems that I just can't get it working.

As soon as I add a hook_submit() function my submit button disapears.

Is there anyone here maybe willing to share some basic code using a multipage submit form.

The code snippets in the above example isn't complete and I have difficulty getting the whole idea.

Pages

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