User login

Complete

To be used with care. Pages are complete only when they meet the posting guidelines.

Explode takes a parameter to stop exploding after a set number of splits

Explode has a limit parameter. Happy day at Agaric!

This code below was written offline when I was merely hoping that explode could be limited to splitting on its first parameter only the first time said parameter is seen:

File upload not working on Mac OS X development environment

Update: Solution

slarosa reported on this "Files Don't Attach" thread that the only thing that fixed file uploading was:

EXPLICITLY SET the upload tmp dir in php.ini to be THE SAME of the tmp dir set up in the file upload config in Drupal; for instance:

vi /Applications/xampp/etc/php.ini
Then in the file, make sure this is set and not commented out:
upload_tmp_dir = /tmp

That's how to do it.

For historical fun Agaric's misdirected debugging will stay down here.

Relationship processing code from SCF custom Ontology module

<?php
    db_query('delete from {ontology_relationships}');
   
    $bio_process_vocab = taxonomy_extra_get_vocab(6);
    $cell_components_vocab = taxonomy_extra_get_vocab(7);
    $molec_functions_vocab = taxonomy_extra_get_vocab(8);
   
    $term_glossary = array(); // format: term name => taxonomy ID
    $term_index = array(); // format: GO ID term => taxonomy ID

Running shell scripts

make file executable
chmod a+x scriptname

and don't forget to access as ./scriptname
rather than just scriptname

Resolution

Snips of TCS import function for Taxonomy XML for future reference

<?php
// commented out below from TCS, possibly of interest
  //  $term = (object) array(
  //    'predicates' => array(),
  //  );
   
//    $term->id = $concept->getAttribute('id');

//    $term->uri = $url;

//      $term->name = $termname->textContent;
//      $term->namerefs[] = $termname->getAttribute('ref');

PayPal in Drupal 6 as of 2008 November: Three options... in dev

All three are in a fairly advanced state of development for Drupal 6 (but no release candidates yet), stable for Drupal 5:

http://drupal.org/project/ecommerce
http://drupal.org/project/ubercart
http://drupal.org/project/lm_paypal

Resolution

Everyone's Voices, Nobody's Noise post-submission strategy session with Nathaniel Catchpole

<ben-agaric> All right.  My brain's utterly fried.  Do you see a starting point with this stuff?  For a while I felt that a modular messaging framework, a whole replacement for Sympa / Mailman / that stuff was necessary, and while I think ultimately it is (and was going to be a second application to Knight, and if I can get a grasp on the field and put a proposal together will shop around anyway)  -- I do think with mailhandler and notifications and suc
<catch> mailhandler's very cool.

Not seeing CCK fieldsets when you form_alter your form?

In #drupal channel on IRC, mikey_p reminds that the CCK fieldgroup module has a weight of 9, so your module implementing hook_form_alter has to have a heavier weight (higher number) if you want to see that.

Resolution

Syndicate content