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

Blog/topic wise access control

I am in involved in a customization of Drupal 5.2 for our company. I need the following things to be
done:

1. When a user creates a blog or a forum topic, he/she needs controls to give access to other users
who would be able to read the blog, read & reply comments etc for each blog/forum topic. The access
control should be in the format of a) Public or Private b) Company c) Department/Division d) Individ
ual.

Blog/topic wise access control

I am in involved in a customization of Drupal 5.2 for our company. I need the following things to be
done:

1. When a user creates a blog or a forum topic, he/she needs controls to give access to other users
who would be able to read the blog, read & reply comments etc for each blog/forum topic. The access
control should be in the format of a) Public or Private b) Company c) Department/Division d) Individ
ual.

FORM API - radios

$options = array(
  'poison' => t('Sprays deadly poison'),
  'metal' => t('Can bite/claw through metal'),
  'deadly' => t('Killed previous owner')
);

$form['danger'] = array(
  '#title' => t('Special conditions'),
  '#type' => 'radios',
  '#description' => (t('Please note if any of these conditions apply to your pet.')),
  '#options' => $options,
  '#weight' => 25
);

This is the code that i would like to implement in my form HOWEVER how would i disable (ie grey out) the "metal" in my list of options?

Ad Module does not install!!

Hi Drupalers,

I have a critical problem with my ad istallation. I got the following warning when i try to install ad.module in a Drupal 5.1 set up.

Warning: Table 's' was not locked with LOCK TABLES query: SELECT s.lid, t.translation FROM locales_source s INNER JOIN locales_target t ON s.lid = t.lid WHERE s.source = '%message in %file on line %line.' AND t.locale = 'de' in /kunden/163565_20459/webseiten/dirksway/includes/database.mysql.inc on line 172

Warning: Table 'locales_source' was not locked with LOCK TABLES query: SELECT lid, source FROM locales_source WHERE source = '%message in %file on line %line.' in /kunden/163565_20459/webseiten/dirksway/includes/database.mysql.inc on line 172

Warning: Table 'locales_source' was not locked with LOCK TABLES query: INSERT INTO locales_source (location, source) VALUES ('/dirksway/admin/build/modules', '%message in %file on line %line.') in /kunden/163565_20459/webseiten/dirksway/includes/database.mysql.inc on line 172

Warning: Table 'locales_source' was not locked with LOCK TABLES query: SELECT lid FROM locales_source WHERE source = '%message in %file on line %line.' in /kunden/163565_20459/webseiten/dirksway/includes/database.mysql.inc on line 172

placing a table on a form page

Hi,

I'm creating a module and have run across a problem I would appreciate some help with.

I have a form page and I would like to display a table at the top (showing information to help the user make their choice in the form).

I have used the theme('table', $header, $rows) method to create a table but I have no idea how to place that into the form (created via the 'drupal_get_form' callback).

Can someone please help my idoicy?

Thx

Html Validation's for registration fields

Hello All,

Please tell me how can i add the validation to the "first name" field that first letter should not be spaces, should not contain the special char, and much more.

For "Password" field, it should be in form of asterisk, and "password" and "Re-type password" should be same.

Please help.

I have installed the PHP5.x, MySQL 5.X, Drupal 5.x and Apache 2.X

Pages

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