User login

Decision

Something that has to be decided for a site, module, or other project.

Don't try to use last insert ID to get the just-submitted user

<?php
// this does not work-- it grabs the ID of the last log message!!
  $uid = db_result(db_query('SELECT LAST_INSERT_ID()'));
drupal_set_message('uid: '. $uid);
?>

Resolution

Temporary confusion about our client's name. At least they were confused too.

Despite a number of places with varying uses in the documentation, code, and public documents, the acronym SCF has been decided to stand for
Science Collaboration Framework
not
Scientific Collaborative Framework

or any other variation.

Good to know!

http://sciencecollaboration.org

Resolution

Ask Agaric: Whitespace at the end of lines in a Drupal module or theme?

Is this annoying or a useful feature. My IDE removes trailing whitespace. The disadvantage is that it takes you more time to see the real changes/fixes.

It is a good thing that your editor deletes whitespace at the end of lines, that conforms to coding standards. While your making small typo fixes like that, you should fix the indentation also; I see some things where you removed space at the end but the indentation was left at far too much; each progressive indent should be two spaces (and no tabs used at all).

Done with Piston now, too

Too much damn trouble. Piston is out. We will just get drupal core from CVS directly, and use scripts to make it easy to get and update to the current version.

Administration menu initial settings

For the necessary admin_menu module, I prefer the initial settings to not collapse fields on the modules page

With current initial settings this means unchecking "Apply margin-top to page body" and "Collapse fieldsets on modules page." Instead of going through this step every time this should be rolled into Agaric's basic/base installation profile.

Resolution

Why not WYSIWYG: Style and Markup for Content Management System web sites

The below is the why that goes with this how: Style content in Drupal using standard HTML tags (and have it match your custom site perfectly and meet your styling needs!)

Gus:
any ideas for adding text size and color to the BUE editor = my current mission
ask them what styles they want to add
just font size
and font color

Adding a custom submit handler to a form with a CCK field?

I was thinking maybe a CCK field to tell a form what Salesforce lead "Source" categorization a form should have ought to be able to do double duty as the indicator that "this form should be sent to Salesforce as a lead."

However, that would require a CCK field to be able to add a submit handler that applies to the entire form it is added to, and I'm not sure they can do that.

Which is faster to check, Drupal's module_exists or PHP's function_exists?

Which is faster (better performance) - module_exists or function_exists?

Agaric replaces Quicktags with BUEditor (both are easy ways to add HTML markup to your content)

Agaric officially considers Quicktags, though written by the great Bér Kessels, to be deprecated in favor of BUEditor.

Key features:

  • Easily create new tag types, without making a module or anything.
  • Decide which textarea form elements to show it on, and which not to.

Also nice: the link javascript dialog box is very intuitive.

Possible drawbacks

Ask Agaric: Drupal E-Commerce Payment Gateways

Can you list the other payment gateways?

Ecommerce has authorize.net (the payment gateway I've picked as best independent of Drupal), eurobill, eway, itransact, worldpay (they're terrible, reject way too many cards), and flexicharge. Not sure if that's just a module or a service. And that's just what's included with e-commerce proper, there are third-party contrib modules also.

Best way to do this is for you to pick the payment gateway you want, odds are Drupal has already been extended to work with it.

Syndicate content