Drupal is up and running but how do I ...?

HELP with creating new flexinode field type

I want a flexinode field that points to another flexinode. Specifically, I want a field in flexinode-4 that points to any nid representing a flexinode-1. I'd like this as a drop-down.

I started by copying field_book.inc, changing most instances of 'book' to my custom field name, then adjusting the SQL statements to return nodes of type 'flexnode-1'. Mostly, it's working.

My form code looks like this:

function flexinode_field_product_form($field, &$node, $error) {
  $fieldname = 'flexinode_'. $field->field_id;
  $result = db_query(db_rewrite_sql("SELECT n.nid, n.title FROM {node} n WHERE n.status=1 AND n.type='flexinode-1' ORDER BY n.title"));
  while ($node = db_fetch_object($result)) {
     $options[$node->nid] = $node->title;
  }
  if (!is_array($node->$fieldname)) {
    $node->$fieldname = unserialize($node->$fieldname);
  }
  if (count($options)) {
    return form_select(t('Registered Items'), $fieldname, $node->$fieldname, $options, t('Select from the list') . ' ' . theme('error', $error[$fieldname]), 0, 0);
  }
}

The field appears to be defined properly in the database (field_id 47, ctype 4, etc). The drop-down is appearing correctly on the form. The data for the field appears to be stored correctly in the database (nid 1143, field_id 47, textual_data s:3:"754";).

However, it doesn't come back out. Viewing the node produces the label for the field, but no data. Printing some debugging info, I've determined that the code is correctly identifiying the field as 'flexinode_47' however, $node->flexinode_47 is empty.

Taxonomy Module and problems with creating content.

HI,

I am relatively new to drupal and I really like all of what it has to offer. I don't quite know how to classify my problem but I'll give a brief description. I have Drupal 4.6.5 installed on a Suse Linux box.

I have core categories on my site such as About, Forms, Contact Info, Divisions etc. Upon reading discussion forums and drupal help sections, the taxonomy module seemed the most powerful.

Public & Private Events

I'd like to have the ability to create public and private events. For example, anyone not logged in to the system would see only public events, whereas anyone logged in would see public AND private events.

I've been doing some searching around but I don't have a clear understanding if this is possible yet.

Thanks,

~ wm

Problem with linking function

Currently I am having a problem with any linking functions on my site, especially the left sidebar.

For example if I am at my admin page, lets say http://wwww.somedomain.com/user/16 -- and I click "my account" on my sidebar -- then i get a 404 because its now pointing to http://www.somedomain.com/user/user/16.

How to convert character encoding in Windows OS?

I've been searching on Google for a good while now, but I can't seem to find a windows-program that can convert character encodings.

Would it be possible to use recode or iconv in Windows (I couldnt find anything relevant in the documentation that follows neither on their websites)? How to install?

I'd prefer not to use a via-the-browser solutions, because the DB's contain sensitive data.

Thanx on forehand=)

File Upload problem

When i go to attach a file, it says it attaches fine, and the file appears in the tmp directory, but when you click submit, the file doesn't move from the tmp directory to the files directory, and the file doesn't show up on the post as an attachment. there are no errors thrown, and the file stays in the tmp dir. please help!!

Brett Evanson

Pages

Subscribe with RSS Subscribe to RSS - Post installation