User login

WSF2008

Debian server not sending mail to recipients that share its domain name

In Agaric's case for this server, mail for the domain was in fact being handled elsewhere. The problem was the server thought it should do it, so it caught all the mail with its domain name and squashed it, saying "there's no user by this name."

Jan 8 11:01:31 stedile postfix/local[28262]: A35D064CFD: to=<Herrera@example.net>, orig_to=, relay=local, delay=0.12, delays=0.05/0.01/0/0.06, dsn=5.1.1, status=bounced (unknown user: "herrera")

Taking Donations With Ubercart and PayPal Express

First, install ubercart. With Drush:

sudo php drush/drush.php pm -l http://agaricdesign.com/ install ubercart

Enable all Ubercart core required modules (in alpha 9 there is a bug which only allows you to check three of the required dcore Ubercart modules, but then Drupal will give you the option to enable the fourth).

Second, enable certain Ubercart - core (optional) modules:

How to theme (lots of) views the Agaric Way

I3IVIIVI: now, take a look at the template.php file
(10:20:54 AM) Dan Hak: you took out repeating code?
(10:21:15 AM) I3IVIIVI: yes, exactly
(10:21:22 AM) I3IVIIVI: the code that you knew was repeating
(10:21:35 AM) I3IVIIVI: because you weren't even copying it from the wizard anymore
(10:21:49 AM) I3IVIIVI: you were just changing that one spot :-)
(10:22:11 AM) I3IVIIVI: it was actually harder to refactor than I thought. I shouldn't have done it now

Theme (lots of) views the Agaric way: Background

Go straight to the useful, how-to information: http://agaricdesign.com/note/how-theme-lots-views-agaric-way

Condensing the wisdom of the wizard

Looking at the code produced by the Views Theme Wizard you can see (especially after being told this at a DrupalCamp in NYC a year or so ago) that the code is essentially the same. Clearly, it could be consolidated and the right template still get called for each view you want to theme.

Repairing a corrupted table, aftermath of Apache using up server resources and taking down MySQL

The Aftermath of MySQL Dying (briefly)

Duplicate entry for key 2 query: INSERT INTO locales_target (lid, locale, translation) VALUES

after the fact, on going to http://www.wsf2008.net/eng/admin/user/access

Debugging a sudden clogging of Apache- unable to connect to database

Triggers? Related? Anything?

Type php
Date Wednesday, January 2, 2008 - 17:58
User Visitor
Location http://www.wsf2008.net/ro/taxonomy/term/12ass
Referrer
Message array_map() [function.array-map]: Argument #2 should be an array în /var/www/d53/modules/contributed/views-5.x-1.6/views/modules/views_taxonomy.inc la linia 493.
Severity error
Hostname 194.209.25.19

See all available variables for theming

Nicely written, Drupal-focused answer:
http://www.dottedidesign.com/node/36

<?php
print '<pre>';
print_r(get_defined_vars());
print '</pre>';
?>

Off-topic, for Dan:
http://neemtree.com.au/drupal-theming-designers

An example output for a fairly complex node (CCK, Taxanomy)

Using Taxonomy Manager without stripping custom term information (support session raw notes)

ben
7:20 PM

i am trying to work with taxonomy manager and am desperate
7:21 PM

many of the terms pointed by the drop down list are empty and do not match the historical good terms which are populated
7:21 PM

how come
7:21 PM

about brasil
Benjamin Melançon
7:22 PM
yes...
Pierre George
7:23 PM
how come?
Benjamin Melançon
7:23 PM
how come what?
Pierre George
7:23 PM
*see case of colombia
7:23 PM

case of pakistan
7:24 PM

Label nodes with their content type

In the node.tpl.php (example attached), Agaric simply added:

<div class="type"><?php print $node->type ?></div>

And the CSS:

<pre>
.node .type {
  float: left;
  font-size: 80%;
  font-style: italic;
  color: #714839;
  margin-right: 5px;
}
</pre>

List taxonomy terms that belong to nodes that belong to another taxonomy term

The SQL for this is a little tricky. I know I wrote down what needed to be done for Christophe to tackle but I can't find it now.

In short:

Select all nodes that belong to the taxonomy term being passed into the Place page.

node -- in drupal 6 node_revision -- but in any case it comes from the taxonomy table.

Select all taxonomy terms that are in a given vocabulary that belong to those nodes.

This requires also a look at {term_data} which stores vocab information (as vid).

Syndicate content