User login

Complete

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

Clean URL paths for Drupal with Apache on Debian

Enabling clean urls (really, fixing a broken configuration of Apache to allow path rewriting). Changes/additions in bold.

(Note: this example is for overall or default redirection, but the relevant parts in bold apply to any Drupal Apache conf file.)

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@pwgd.org

Enabling clean urls (really, fixing a broken configuration of Apache to allow path rewriting). Changes/additions in bold.

(Note: this example is for overall or default redirection, but the relevant parts in bold apply to any Drupal Apache conf file.)

<

pre>
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@pwgd.org

DocumentRoot /var/www/drupal-5-live
&lt;Directory /&gt;
Options FollowSymLinks
<strong>AllowOverride All
Order allow,deny
allow from all</strong>
&lt;/Directory&gt;

Why am I getting access denied? (the easy answer)

Drupal tech support from square one:

ben, as i said the link below says 'denied access' and i just tried to open content page to post new issue, as i've been doing successfully, but now it says "no content types available" so i'm STUCK!

why and what next?

Log in:

http://example.com/user

thanks for the speedy reply ben -- but why do i suddenly need to log in
-- how can i always get there automatically?

Drupal tech support from square one:

ben, as i said the link below says 'denied access' and i just tried to open content page to post new issue, as i've been doing successfully, but now it says "no content types available" so i'm STUCK!

why and what next?

Log in:

http://example.com/user

thanks for the speedy reply ben -- but why do i suddenly need to log in
-- how can i always get there automatically?

Hour in life of Agaric: Finding php-getID3 library, and fixing CSS show audio info

An hour or two in the life of an Agaric Design Collective member...

getID3 php library debian
where does debian apt-get install the php-getid3

So we ran:

apt-get install php-getid3

/etc/apt/preferences
Version preferences file. This is where you would specify "pinning",
i.e. a preference to get certain packages from a separate source or
from a different version of a distribution. Configuration Item:
Dir::Etc::Preferences.

An hour or two in the life of an Agaric Design Collective member...

getID3 php library debian
where does debian apt-get install the php-getid3

So we ran:

apt-get install php-getid3

/etc/apt/preferences
Version preferences file. This is where you would specify "pinning",
i.e. a preference to get certain packages from a separate source or
from a different version of a distribution. Configuration Item:
Dir::Etc::Preferences.

/var/cache/apt/archives/

Generic function for getting vocabularies by module

I post it here for the world because CMT will no longer be overriding the vocabulary module names of other module's vocabularies, so Agaric doesn't have a use for it in this form.

It could be useful for other folks though.

I liked overriding the 'module' name part of vocabulary definitions, but as it hasn't proved necessary yet in taking control of the vocabulary from taxonomy module (all the ones I've looked at are treated the same) and I'd have to find a place to store the old module names for uninstalling CMT properly... well, anyone want a barely used function? Cheap!

I post it here for the world because CMT will no longer be overriding the vocabulary module names of other module's vocabularies, so Agaric doesn't have a use for it in this form.

It could be useful for other folks though.

I liked overriding the 'module' name part of vocabulary definitions, but as it hasn't proved necessary yet in taking control of the vocabulary from taxonomy module (all the ones I've looked at are treated the same) and I'd have to find a place to store the old module names for uninstalling CMT properly... well, anyone want a barely used function? Cheap!

/**

Module .info file making: separate dependencies with spaces

Note on module making:

Dependencies must be separated by spaces, not commas.

Note on module making:

Dependencies must be separated by spaces, not commas.

Sequences table fields must have same prefixes as tables themselves do

Agaric had an unexpected problem with sequences table after moving an existing site- it ignored what we had and started making new entries for menu_id and such ones with the database table as the prefix. The result was duplicate key errors on menu mid and new content being subsumed into the first posts and all-around utter weirdness.

So, here's the fix:

Agaric had an unexpected problem with sequences table after moving an existing site- it ignored what we had and started making new entries for menu_id and such ones with the database table as the prefix. The result was duplicate key errors on menu mid and new content being subsumed into the first posts and all-around utter weirdness.

So, here's the fix:

Using TextWrangler for Drupal coding: changing tab to two spaces

Drupal coding standards call for two spaces per tab. Any text editor with a bunch of programming options must be able to set the default tab spacing, right?

In TextWrangler's case, yes, but if you searched here before even trying its user interface, you'll be glad you did. It's not anywhere a sane person, or even a rabid rhesus monkey, would think to look.

It's here:

TextWrangler Preferences › Editor Defaults

OK, so far so good. Now, the tab setting is inside the last option on this form, "Default font: "

Drupal coding standards call for two spaces per tab. Any text editor with a bunch of programming options must be able to set the default tab spacing, right? In TextWrangler's case, yes, but if you searched here before even trying its user interface, you'll be glad you did. It's not anywhere a sane person, or even a rabid rhesus monkey, would think to look. It's here: TextWrangler Preferences › Editor Defaults OK, so far so good. Now, the tab setting is inside the last option on this form, "Default font: "

Translated home page using i18n module and paths

Alternate title: Translation fun, an Agaric Design minisaga, starring the internationalization (i18n) module

We (OK, I) started off by editing the English version of a node out of existence when we thought we were creating a new translation. But we had revisions turned on! Self-knowledge, also the Agaric way.

Note that node revisions does not revert translation workflow states or even URL path settings. It does seem to have reverted menu settings, oddly enough.

On translation and internationalization:

Alternate title: Translation fun, an Agaric Design minisaga, starring the internationalization (i18n) module

We (OK, I) started off by editing the English version of a node out of existence when we thought we were creating a new translation. But we had revisions turned on! Self-knowledge, also the Agaric way.

Note that node revisions does not revert translation workflow states or even URL path settings. It does seem to have reverted menu settings, oddly enough.

On translation and internationalization:

Official docs, not so helpful:
http://drupal.org/node/133983

Maximum upload size in PHP and Apache

Maximum file size upload problems, please help!!!
http://drupal.org/node/157174

If you have access to php.ini or you are allowed to use a modified copy of php.ini, add two lines like the following at the end (example for 16MB files)

upload_max_filesize = 16M
post_max_size = 18M

If you can't use a php.ini, then you can add two lines in your .htaccess file

php_value upload_max_filesize 16M
php_value post_max_size 18M

<

blockquote>
Maximum file size upload problems, please help!!!
http://drupal.org/node/157174

If you have access to php.ini or you are allowed to use a modified copy of php.ini, add two lines like the following at the end (example for 16MB files)

upload_max_filesize = 16M
post_max_size = 18M

If you can't use a php.ini, then you can add two lines in your .htaccess file

php_value upload_max_filesize 16M
php_value post_max_size 18M

[On the Drupal file upload settings page]

you get:
- no more that what upload_max_filesize says
- no more than half of post_max_size

Another need for CMT functionality... well, a little piece of it: user-editable term descriptions

Editable Description for Taxonomy Term
http://drupal.org/node/152970

I need to be able to set permissions for editing the description for the term. That is, the administrator can give edit and revision permissions for the term description.

Editable Description for Taxonomy Term
http://drupal.org/node/152970

I need to be able to set permissions for editing the description for the term. That is, the administrator can give edit and revision permissions for the term description.

Syndicate content