Archive for the ‘General’ Category

Drupal: Alternative Templates for Different Blocks

Here’s a little trick from the drupal user community that will allow you to use a different block.tpl.php for a specific block. You can control by Block name or Block ID. Here’ a modified block.tpl.php with a conditional at the top. All you need to do is edit the module == '[modulename here]‘ and delta == '[block name or id here]‘ part.

Below is the conditional statement at the top of my current block.tpl.php, and the block information in the conditional is for my site. You will need to change it as described above for it to work on your site. This is for loading a custom block.tpl.php for two blocks on my site, but you could use it for one, six or however many you need. You will need a conditional (the “if ” part) for each custom template.


< ?paitchp
if ( ( $block->module == ‘views’ && $block->delta == ‘Cool Block’ ) || ( $block->module == ‘node’ && $block->delta == ‘0′ ) ) {
include ‘block-custom.tpl.php’; /*load a custom template for those two block IDs */
return; }
?>

You need to create another block-custom.tpl.php (or block-whateveryoulikehere.tpl.php) and you can have as many of these as you like. To test this on your site, just duplicate the standard block template, name it block-custom.tpl.php, and edit it, putting the title last instead of first and you’ll see the effect. The rest is up to you. You could put whatever you want in the template.

This means all blocks are NOT created alike, which is something that drives many people crazy. Add this to the new regions functionality and you have 100% customizable blocks.

Credit to iDonny, nevets and Heine

Whither the Next Great Generation?

We refer to the generation of men and women who were the engine behind winning the Second World War as “The Greatest Generation.” Indeed, their sacrifice was enormous, and we live today in a better world because of them.

Al Gore spoke about them in late April at a screening of his new movie about global warming:

Few generations have the opportunity to have a shared moral purpose. A focus that is worthy enough to empower us to put aside more of the bitterness and bickering that we are vulnerable to getting bound up in and lost in. The generation of my parents was called “The Greatest Generation” because they had such a moral challenge from fascism in the Pacific and the Atlantic. They rose to meet that challenge successfully. And here’s what happened. When they did they gained a moral vision and the ability to put in place the Marshall Plan and to convince the taxpayers to pay for it. Seriously. And to launch the United Nations and to lay the foundation for what became fifty years of peace and prosperity. We coasted for a long time. That vision articulated by Omar Graveley for one who said, “It’s time we steered by the light of the stars and not by the lights of each passing ship.” That vision came from the opportunity they had after rising to meet that challenge to see clearly what was happening.

Gore looks out with melancholoy at what could have been had he won the Presidency. At very least we would have seen an attempt to face up to some of the big issues. Instead, we have the utter and contemptible lack of vision and caring that is George W. Bush. I am continually struck by how incompetent he and his administration show themselves to be. Their belief in faith-based Conservative principles is unshaken though reality daily beats down their door.

Many challenges remain. Today’s world is characterised by shortcomings in a range of areas hilighted by the United Nations’ Millenium Development Goals. All 191 member states have signed a declaration that they will achieve these goals by 2015.

The goals outlined are fundamental, and each represents an area most Canadians take for granted. The goals are also achievable with far less resources committed than those being spent on the growth of the global military.

The challenge facing member states is rooted in a general problem we all have when we try to think about issues that take time and ongoing dedication to address. We suffer from an immediate gratification syndrome, both in the selfish behaviour we all exhibit from time to time, but also in the good deeds we do. This syndrome is supported by consumer culture in general, and it appears to be worsening.

The global communications environment means we are all everywhere, all the time, in terms of potential awareness of issues and problems. The SEA Tsunami woke the world’s conscience last year. Unprecedented relief poured in to the ravaged area within days of the water receding. The same is now true of Katrina’s aftermath. We respond well to these events because they are compressed and of limited duration, and the transformational result is very plain and obvious.

The same cannot be said of the problems that inspire the Eight Goals. These problems have developed over time, and it will take time to achieve the desired outcome. But not that much time. Only a decade or so, which is a pittance in World Time, but an enormous amount of time in the frame of our instant gratification mentality.

The Next Great Generation will be the one who breaks from this mentality and embraces the long term challenges facing global society. I am 42 years old. My generation is not yet that generation, and soon it will be too late for us.

Spring Flowers

field2.jpg

Wow - Rove Indicted?

This is very big if true…

Karl Rove Indicted on Charges of Perjury, Lying to Investigators
By Jason Leopold
t r u t h o u t | Report

Saturday 13 May 2006

Special Prosecutor Patrick Fitzgerald spent more than half a day Friday at the offices of Patton Boggs, the law firm representing Karl Rove.

During the course of that meeting, Fitzgerald served attorneys for former Deputy White House Chief of Staff Karl Rove with an indictment charging the embattled White House official with perjury and lying to investigators related to his role in the CIA leak case, and instructed one of the attorneys to tell Rove that he has 24 business hours to get his affairs in order, high level sources with direct knowledge of the meeting said Saturday morning.

Robert Luskin, Rove’s attorney, did not return a call for comment. Sources said Fitzgerald was in Washington, DC, Friday and met with Luskin for about 15 hours to go over the charges against Rove, which include perjury and lying to investigators about how and when Rove discovered that Valerie Plame Wilson was a covert CIA operative and whether he shared that information with reporters, sources with direct knowledge of the meeting said.

It was still unknown Saturday whether Fitzgerald charged Rove with a more serious obstruction of justice charge. Sources close to the case said Friday that it appeared very likely that an obstruction charge against Rove would be included with charges of perjury and lying to investigators.

Happy, happy, happy…sad

Apple just hurt my feelings. I received my new MacBook Pro today via helijet from Vancouver. Excitedly, I opened it up and plugged in my old road-weary G4 PowerBook via Firewire. The new ‘Book pulled everything down as advertised, and before too long I was up and running with my complete user environment on the new MacBook Pro.

No hitches. Non-native softare was running faster in emulation than it did natively on my old 667mhz G4. I was having a great time checking out the impressive speed improvements, as well as Front Row, when it occurred to me that I should run software update.

Wow, there was a lot of updates available. I forgot that I had just yesterday warned my co-workers abut reports of serious problems with the latest software update. No kidding. Five hours later and a dozen tries at fixing the “hang on start-up” problem using various tricks that worked for others I gave up and am now re-installing the OS from scratch. I’ll do the FireWire target transfer again, but I won’t be doing the software update until Apple gets this one sorted out.

Bad Apple!

4:00am update. This is clearly not an Apple but a Lemon. Strange scraping noise coming from my 7200rpm HD. Everything seems to take forever to do. Installs just sit there doing nothing for what seems like eternity. Software updates fail unexpectedly. At the end of it all, it won’t boot up.

Nope, this Lemon is going back to its maker. I hope it isn’t representative. If so, Apple will suffer further decline in their reputation for quality. Sorry 667, you’re back in play.

Return top

About Me

I am a new communications technology pro by trade, an activist at heart. I care deeply about the health of my family and work hard to contribute to solutions to the great challenges of our day such as climate change and an out-of-control food system. I am a bon vivant, artist, writer and wannabe musician. I deeply appreciate my friends and colleagues and all the creativity and knowledge they bring. I hope I am always learning from them.