User login

Needs Improvement

Workable solution needs improvement

Git the Agaric Way: using shell scripts to add and update projects

Update: Forget it. Complication outweighs benefits.

Note: Before you start doing any of this, you would need to copy Agaric's git directory structure-- note that this is not a single git repository, but many git repositories. More on that elsewhere, this is about using the system properly set up.

What finally works:

Navigate to the pseudo-repository's sites directory:

cd /RCS/git/agaric-sites/
Ebony-II:agaric-sites ben$ git-new-site.sh 5 test

Use just the body field in the view of a CCK node

This requires theming the view. Views does not know about or provide just the raw body, so you have to theme the view, load the node, and grab the body field.

In your view-....tpl.php:

<?php
 
$fullnode = node_load($node->nid);
print check_markup($fullnode->body, $fullnode->format, FALSE);
?>

THIS HAS SIGNIFICANT PERFORMANCE IMPLICATION FOR MANY NODES WITH MANY FIELDS

Filter a view on the existence of an image for an imagefield field

No this won't work, I do not think filtering per-result row can be done through arguments:

<?php
if (!$field_user_picture) {
  $view->filter[0]['value'] = TRUE;
}
return $args;  // not that this will do anything!
?>

Begin the journey in #drupal-support

ben-agaric:
how can one filter a view based on the value (given or empty) of a CCK field -- CCK image in this case -- ?

Escalating directly to #drupal-views:

Using the BlipTV flash video player for Blip.TV videos

Drupal and BlipTV: Using RSS and Xpath anything that works to get the Blip.TV Player

$myFile = "testFile.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo $theData;

<?php
 $foo = system('wget http://www.myserver.com/file.txt ~',$output);
?>

This is what I really want:

List styling frustration: removing bullets

(Ran into similar problems adding images. Is it a matter of a more specific rule somewhere overriding it?)

ul#agariclist list-style-type: none;

not related i don't think but damned if i know anything anymore

#homepage .panel-col-first .view-data-field-action-shot-fid .item-list {
  list-style: none;
}

#homepage .panel-col-first .view-banner .view-data-field-action-shot-fid .item-list li {
  list-style: none;
}

Pathauto 2 is pretty picky. And a bully. What finally made it happy.

So even as the help text says raw versions are dangerous, Pathauto version 2 badgers you into using [title-raw], [user-raw], etc. So just put that in right away, and it won't yell at you.

The other trick to make Pathauto happy on the first try is that a Blog path (and other node types) does not take [user] or [user-raw]. Instead, you should put in [author-name-raw].

I expect it will get more user-friendly (and export and import of patterns would be really nice) but it's one of the must-have modules no matter what.

Upgrade Drupal a version with an automatic patch

http://2bits.com/articles/upgrading-drupal-5-2-installations-to-5-3-security-releases-using-a-single-patch.html

Agaric has modified version the shell command version (listed by Khalid right above the comments) to be a script that can patch Drupal regardless of the name of its current directory..

Agaric's version is attached.

Validation error on search form, contact site admin. But I am the site admin!

Search causes validation errors: how to disable caching for certain pages?

Not Boost!

Using search pages causes a validation error only when logged in.

It might be triggered by my consolidating the web pages onto one domain, and restricting the cookies to one domain slightly before that. When I looked at the code, the form token simply wasn't being produced-- the form element was a "" instead of a random alphanumeric string.

Installing Munin, the site monitor named after a Norse god's crow

sudo aptitude install munin-node

sudo aptitude install munin 

sudo vi /etc/munin/munin.conf

a simple host tree

[wsf.grassrootsconnection.org]
address 127.0.0.1
use_node_name yes

Skipping this for now -- and I think this assumes both munin and munin-node on one server:

As a security measure, we are going to change so the node bind itself to the loopback interface.
So go and edit /etc/munin/munin-node.conf and make sure the host value looks like this:

Ask Agaric: What is Linux? (No, don't ask that)

http://www.ubuntu.net/
08:17
there-- the flavor of the month of Linux

andrea:
what is linux?

benjamin melançon 10:11
i'm going to pretend i didn't hear that

andrea:
sounds good

benjamin melançon
THE free software operating system

andrea
i still don't understand

benjamin melançon
Microsoft = Evil
Apple = Lesser Evil
Linux = Good

andrea
now you're speaking my language
it's good b/c it's free

Syndicate content