Submitted by clemens on Wed, 2011/08/03 - 4:56pm
Trying some Drupal 5 sites for upgrade script development on desktop PHP 5.3 I ran on *.info files causing annoyances.
Submitted by clemens on Sat, 2011/03/12 - 2:56pm
For a drupal 6 site I needed a node edit overlay. This is what I did.
Define the urls ajax/node/%node/edit and nojs/node/%node/edit. The idea is to use path similar to the normal drupal paths just prepended with what ctools modal needs. It needs are minor in that the url path must contain a string nojs and in this case a class attribute ctools-use-modal.
<?php
function annotate_ym_menu() {
$items['nojs/node/%node/%'] = array(
'page callback' => 'annotate_ym_ajax_node',
'page arguments' => array(0, 2, 3),
Submitted by clemens on Thu, 2011/01/13 - 11:06am
I want to run svn up on the site but I need to offline it first. So who is online?
SELECT name, mail, (unix_timestamp()-access)/3600 AS hours
FROM users
HAVING hours < 1
ORDER BY access;
Or for short
drush sql-query "select name, mail, (unix_timestamp()-access)/3600 as hours from users having hours < 1 order by access;"
Submitted by clemens on Mon, 2010/01/11 - 1:20pm
I never tried to do an core update on the command line. Today I tried it.
Get the latest drupal version
drush dl
Check your download
ls
drupal-6.x
Checkout svn drupal-6-core
svn --username=build2be chechout http(s)://my-svn/drupal-6-core/trunk/
Step into drupal version to update
cd trunk/www
Apply the patch
Submitted by clemens on Mon, 2009/05/25 - 11:17am
On a multi language site it is desirable to translate the drupal English into the customers Englich likings.
Steps taken
- Goto /admin/settings/language/add
- Add a custom languages with language prefix en, name en-ours, english English @ Our place and native English @ Our Place
- Make your new language the default.
- Disable drupal's en
- Change the name en-ours into en