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

path_access problem

path_access is installed and enabled on my site, yet it doesn't show up in any site menus, and there is nothing at the admin/access/path url. I was unable to find any documentation for this module. Does anybody know what the issue could be, or where I can find documentation for the module?

Book review module seems installed properly, but does not show up in modules listing.

I have followed the instrucitons with the module faithfully.
The three tables for the module are in the database (I checked with phpmyadmin).
The module files are in a subdirectory of the modules directory called "bookreview" (I even tried moving them to the modules dir, with no effect).
The permissions of the bookreview module files are the same as the permissions of other module files.
I'm using drupal 4.6, with the version of the module for 4.6.

I can't think of what else to try. The module simply refuses to show up...

Help needed upgrading to forms_api 4.7

function taxonomy_defaults_settings() {
  drupal_set_title("Default Terms");
  $types = node_list();
  foreach ((array)$types as $type) {
    $table[$type][] = array('data'=>"<strong>".node_invoke($type, 'node_name')."</strong>", 'style'=>'padding:5px;border:2px solid #CCC');
    unset($output);
    unset($subtable);
    $typevocabs = taxonomy_get_vocabularies($type);
    foreach ((array)taxonomy_get_vocabularies() as $vid => $vocab) {
      // is this vocab an active vocab for this node-type?
      $activevocab = (key_exists($vid, $typevocabs)) ? TRUE : FALSE ;
      $subtable[$vocab->vid][1] = form_checkbox($activevocab ? 'active&nbsp;' : '<i>active</i>&nbsp;', 'taxdef_'.$type.'_'.$vocab->vid.'_active', 1, variable_get('taxdef_'.$type.'_'.$vocab->vid.'_active', FALSE));
      $subtable[$vocab->vid][2] = taxonomy_form($vocab->vid, variable_get('taxdef_'.$type.'_'.$vocab->vid, 0), NULL, 'taxdef_'.$type.'_'.$vocab->vid);
    }
    $output .= theme('table', '', $subtable);
    $table[$type][] = array('data'=>$output, 'style'=>'padding:5px;border:2px solid #CCC');
  }
  $output = theme('table', array('content type', 'vocabularies and terms'), $table);
  return $output;
}

I can't believe that I can't upgrade this myself... No matter what I do to it I get one error or another. PLEASE HELP?!!!

I'm starting to think that maybe taxonomy doesn't work like it did in 4.6?

i18n error on Drupal 4.7

I installed and enabled the international module (i18n) in Drupal 4.7.2, but got the following error message:

user warning: Column 'nid' in field list is ambiguous query: SELECT nid FROM node n LEFT JOIN i18n_node i18n ON n.nid = i18n.nid WHERE (i18n.language ='zh-hant' OR i18n.language ='' OR i18n.language IS NULL) AND n.type='audio' AND n.status=1 ORDER BY changed DESC LIMIT 0, 1 in /(drupal root directory)/includes/database.mysql.inc on line 120.

It appears i18n cannot use the same name {nid} when the table is created.

Is there any solution to this? Thanks!

Block users by IP

Hello guys,

Is there any mod available to block spamming users or specific users by IP?

Help needed with Forms and interacting with the database

I am trying to add some functionality to the organic groups module. I wish to be able to add or remove users to og's from the user edit pages. I have created a form using the below code which shows which groups the user is a member of however I am stuck when trying to get the values from the check boxes and adding the values to the database.

This is the code that displays the checkboxes with appropriate names and displays whether the user is currently a member. I have tried a few different values for the return value (to update the database in different ways).

case 'form':
$result_og = db_query("SELECT title, nid FROM node WHERE type = 'og'");
if (user_access('administer organic groups')) {
while ($field = db_fetch_object($result_og)) {
if (!isset($fields['ogGroups'])) {
$fields['ogGroups'] = array('#type' => 'fieldset', '#title' => ogGroups, '#weight' => $w++);
}
$result_user = db_query("SELECT nid FROM og_uid WHERE $account->uid = uid && $field->nid = nid");
$chkbx_checked = 0;
while ($field_user = db_fetch_object($result_user)) {
if ($field_user->nid == $field->nid) {
$chkbx_checked = 1;
break;
}
}
$fields['ogGroups'][$field->title] = array('#type' => 'checkbox',
'#title' => $field->title,
'#default_value' => $chkbx_checked,
'#return_value' => 1,
);
}
}
return $fields;

Pages

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