User login

Public

Debugging Internet Explorer problems the Agaric way

Big ol' Get Firefox buttons!

Oh, OK, there's also another Agaric way for working around IE bugs, quirks, and problems.

Agaric Standard Operating Procedure (as of today)

If it is a border, box, or graphic overlapping something else or otherwise displaying incorrectly, get a measurement of a the thing showing wrong -- screenshot and the GIMP or another graphics editing program if necessary -- and get its dimensions.

Increasing PHP file upload limits... capabilities is another matter

Upping PHP's maximum file size upload limit:

Your problem: the file upload settings page on your Drupal site (if you've found it) is telling you silly PHP won't let people upload big files, to wit:

Your PHP settings limit the maximum file size per upload to 2 MB.

There's two places that this has to change in your php.ini file; this can also be set in your settings.php PHP initialization variables.

Showing available variables in a theme and making new ones

Together these will get us there (creating the variable) but I have the feeling it already exists-- how do I see it?

<?php
function _phptemplate_variables($hook, $vars) {
  switch ($hook) {
    case 'page':
      if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == '') {
        $vars['content_is_node'] = TRUE;
      }
    break;
  }
  return $vars;
}
?>

CVS delete directory?

agaric cvs delete directory

you can't delete directories in CVS

you make them empty. Then I don't know what.

I hate CVS.

http://www.network-theory.co.uk/docs/cvsmanual/Removingdirectories.html

OK, actually cvs update -P

maybe, possibly works. This is so silly.

Undo that SVN add

In Subversion, to cancel an svn add example_folder command before committing to the repository, do not use svn delete or svn remove or made-up stuff like undo or cancel.

Use the svn revert command:

svn revert --recursive example_folder

And all will be well.

Update: Commenter says this can lose local changes. Not sure about that, but my use case was indeed to get rid of everything so i didn't care. And i'm on Git now.

Share RSS feeds between two Drupal sites

This is the basic, basic approach.

Drupal RSS feed aggregator
external RSS block
display RSS feeds in a block
http://support.bryght.com/adminguide/configure-rss-aggregator

On the site you'd like to get feeds from...
Drupal turn on RSS feeds

just find the section you care about, try adding /feed to the end if no little orange block is there

Transfer sites to new server checklist

Transfer sites from old host to our new server steps.

Web Development for Nonprofits

We at Agaric consider nonprofit organizations to be one of our core constituencies, although a majority of our work is probably for groups without official 501c3 nonprofit status, for businesses, and for individuals. We try to stay in tune with the needs of organizations for good, whatever their tax filing status.

Path to theme

Looking for the drupal path to your current theme? It can be helpful if you're making a theme and, for a change, you want to link directly to

print theme('stylesheet_import', base_path() . path_to_theme() ."/modules.css");

For our purposes, something like:

<img src="<?php echo base_path() . path_to_theme() . "/sample.png"; ?>" />

Now I'm not sure that "." in echo will work. Feel free to test it out for us!

Syndicate content