User login

Complete

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

Epilogue: Drupal too powerful to show potential clients

Yesterday I demo'd a bare Drupal install, because it was the only one I felt like messing around in, and the potential client was really pushing for a demo to show him the back-end. Drupal doesn't really have a backend, most all of what you want to do . Not having his full requirements, let alone a site built to them, I showed off the parts of Drupal we use to actually build sites– you enable a module and get new functionality, here's how you create a new content type in CCK, etc.

Do something immediately after a node is created

Hell this would have helped:

Add 'insert/update post' op to hook_nodeapi
http://drupal.org/node/27007

Why couldn't it have gone in two years ago!? JVanDyk should have forked Drupal ;-)

His book would have been "Introduction to Vrupal 1"

Oh... needless panic. For my simple needs this wasn't a problem.

Drush stopped installing modules. Needed -l link to site.

0 stedile:/var/www/d53/sites/all/modules# php drush/drush.php -l http://dev.wsf2008.net pm install taxonomy_redirect

Resolution

Custom UI for taxonomy: might as well not associate it with any vocab

Taxonomy will automatically add something to each node that is associated with it. There's no way out of it.

See http://api.drupal.org/api/function/taxonomy_form_alter/5

End of a Saga: the locale_refresh_cache bug was in location_views

Here's the patch.

Removal of three characters.

Took Agaric longer than it should have to find. But we were observing the legitimate spike in caching caused by locale being enabled with a bunch of languages, and didn't realize (as we went through the whole module disabling thing) that the super-magnifier of triggering all the caching was in fact turned off with the location_views module being removed from the Drupal bootstrap process.

See list of MySQL databases via GNU Linux shell command line

Dirty secret is this will work with Windows or anything else that runs MySQL, as well as the recommended Debian, Ubuntu, Red Hat / RHEL (which is what CentOS really is) etc.

mysql -u root -p

(The long form, which is quite unnecessary, is " mysql --user=user-name --password=your-password")

Once in the MySQL command line utility:

SHOW DATABASES;

Then to see what's in a particular database:

USE agaric_example
SHOW TABLES;

Yahoo Geocoding - doesn't provide lat-lon for country

Can't use Yahoo. No way to ask for the country (it replies with the country, but you can't ask for it) so no way to get lat-lon for country.

Woulda been cool though.

http://developer.yahoo.com/maps/rest/V1/geocode.html

http://jeremy.zawodny.com/blog/archives/005626.html

Agaric moves on...

Resolution

Removing the view tab from embedded profiles on user pages

Solution:

How to remove view/edit tabs?

http://drupal.org/node/83090

nodeprofile remove embedded view and edit links from profile
http://api.drupal.org/api/function/theme_menu_local_tasks/5

Note the approach:

Do not allow users to post content to organic groups except from within an organic group

Note that removing any content type you add this to from the "Create content" menu (Organic groups provides its own create content menu) is highly advised.

Furthermore we're going to restrict people (non-admins) to one and only one group at a time.

This approach allows Agaric to hack in whatever exceptions we want later (planned: allow posts for discussion spaces to post to post to multiple discussion spaces), without hacking organic groups (skip down to the resolution to see Agaric's solution).

Syndicate content