I like lemonade.

Latest Stuff

In case you haven't heard Ubercart 2.3 is out now!

The news from the ubercart website:

Ubercart 2.3 and Ubercart 3.0 Alpha 3 released (now with Rules integration!)

Ubercart 2.3:
They say good things come to those who wait, and there are many good things in this version of Ubercart. Product images now support Colorbox, which functions like Thickbox and Lightbox2, but also has a version for Drupal 7. The definitions of cart panes and checkout panes can now be altered by other module.

The biggest change, though, is that order invoice templates now use the theme system to allow customizations. Instead of altering the module files directly, it is now correct to override them in the theme, just like node and page templates. This does mean, however, that your customized .itpl.php files need to change their tokens into theme variables. See the upgrade documentation page for details. *note: If you have previously customized your invoice templates, you must update them to the new format (.tpl.php).

Thanks in large part go to TR, who has helped maintain the issue queue and fix many, many bugs.

Ubercart 3.0 Alpha 3:
No, your senses do not deceive you. Ubercart is now integrated with the Rules module! Rules has long been the standard way for Drupal sites to take actions as various events occur. Rules 2 for Drupal 7 will bring even greater flexibility and power to site administrators than ever before. And all of Ubercart's data will be available through the Rules interface and API. Ubercart is being developed with the latest versions of Drupal and Rules, so if anything breaks during testing, it shouldn't be long before a fix is available.

Testing:
The short and sweet is, please test the 3.0 alpha 3 release. Alpha 3 IS NOT READY FOR PRODUCTION, but all the major changes for 3.0 are complete and it is ready for anyone and everyone "kick the tires." The upgrade path from 2.0 to 3.0 still needs some work, but most of the issues are dependent on completion of the Drupal 6- Drupal 7 upgrade path. As always, bugs, feature request, etc... can be posted to the issue queue.

Development Road Map:
With the release of 3.0 Alpha 3 we have achieved our primary goals for the 3.0. The goals were to port Ubercart to Drupal 7, to integrate with Rules, and to provide a set of "coder rules" to allow module developers to easily update Ubercart sub-modules to 3.0. We have a few small tasks yet to complete like menu cleanup, replacing the catalog with a default view etc... But at this point we are basically waiting on Drupal 7 to reach beta and the be released. We will continue to implement these small features until Drupal 7 reaches Beta (rumored to be in 2-4 weeks), and then proceed in lock step with Drupal through beta to a stable release. More information on the road map can be found on the official road map page and you can always make suggestions as comments on the road map, or as "feature requests" in the issue queue.

Opt Out of SEO at Your Own Peril!

I found this article about SEO and I thought I will share it.

Just click on this link to be forwarded to the full arcticle:

http://www.highrankings.com

The waiting could be finally over: HTC Hero ready for update to Android 2.1

HTC Hero 2.1"Android Éclair update for HTC Hero will be released by the end of June. The upgrade will come in two parts, the first of which will roll out from this week (14-20/06) and will be detected when the Hero next automatically checks for software updates. The second part of the update will follow towards the end of the month (June).

As the second part of the upgrade will wipe all data on the handset, Hero users should ensure any important data has been backed up before proceeding with the installation. Due to the size of the update, wherever possible, we would advise using a WiFi connection for this download to avoid additional data charges."

 

Check the HTC website for updates

Save energy with Belkin's new power-outlet adapter

Belkin  Energy

Knowledge is power, or so they say. So if you're trying to take control over your energy usage, you've gotta know just how and where you're using it. That's the idea behind the new Belkin Conserve Insight, a $30 power-outlet adapter with a small screen that tells you just how much the item plugged into it is costing you.

The small digital display is able to tell you just how much juice is being used by any device in watts, dollars or carbon dioxide. Seeing it in straight-up dollars and cents has got to be a good way to put things in proper perspective and to get you to stop leaving the air conditioning on at 65 degrees while you're at work all day. I mean, come on.

from: Belkin

Ubercart 3.0 Alpha 1 Released

Ubercart Development Team announces Ubercart 3 - Alpha 1

Here is the full post about the release:
On Wednesday we reached the next milestone in Ubercart development with the release of Ubercart 3.0 alpha 1 for Drupal 7! Just to be clear, this is an alpha version of Ubercart running on a (currently) alpha version of Drupal. This is NOT FOR PRODUCTION USE! It is for testing and development only.

Now that that is out of the way Smiling This release is a straight port of Ubercart 2.x to Drupal 7. It is primarily intended for Ubercart contributed module developers to use to start porting their modules to Ubercart 3.0 and Drupal 7, but if you just want to see what the cutting edge of Drupal and Ubercart looks like, feel free to setup a test server and give it a spin.
This release still relies on Conditional Actions, and the final release of 3.0 will replace Conditional Actions with Rules, so those of you porting modules should be ready for this change in the next alpha release.

Lot's of people helped with testing, bug fixes, issues, and code, and we thank you all for your work on this release, especially Lyle and TR

VirtualBox 3.1.2 Out now!

As usual, there is a new version for VirtualBox.

Follow the link below to download the latest version of VirtualBox 3 and to get the lastest VBoxGuestAdditions.iso file.

VirtualBox 3.1.2 Download:

http://www.virtualbox.org/wiki/Downloads

Download the VBoxGuestAdditions_3.1.2.iso using this url:

http://download.virtualbox.org/virtualbox/3.1.2/VBoxGuestAdditions_3.1.2...

Drupal - imagecache problems with special characters

If you upload an image with an ampersand (&) in the filename, Imagecache will refuse to display the image.
After a bit of investigation I found that Imagecache has a problem with a number of special characters in the image filenames.

The solution is a little Imagecache theme override in the template.php
Just copy & paste this code to the end of your template.php in the theme folder.

function phptemplate_imagecache($presetname, $path, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) {
  // Check is_null() so people can intentionally pass an empty array of
  // to override the defaults completely.
  if (is_null($attributes)) {
    $attributes = array('class' => 'imagecache imagecache-'. $presetname);
  }
  if ($getsize && ($image = image_get_info(imagecache_create_path($presetname, $path)))) {
    $attributes['width'] = $image['width'];
    $attributes['height'] = $image['height'];
  }

  $attributes = drupal_attributes($attributes);
  // here we add drupal_urlencode to make sure the path is encoded.
  $imagecache_url = imagecache_create_url($presetname, drupal_urlencode($path));
  return '<img class="mceItem" title="'. check_plain($title) .'" src="'.$imagecache_url.'" alt="'. check_plain($alt) .'">';
}

Ubercart 1.9 for Drupal 5 and Ubercart 2.1 for Drupal 6

The current release version is Ubercart 1.9 for Drupal 5 and Ubercart 2.1 for Drupal 6.

Visit the project page on http://drupal.org/project/ubercart

Find translations for Ubercart and Ubercart related modules on http://localize.drupal.org/translate/projects/ubercart

VirtualBox 3.0.12 is out now

The new verison of the famous Virtualisation System is out now.

Download the VBoxGuestAdditions_3.0.12.iso using this url:

http://download.virtualbox.org/virtualbox/3.0.12/VBoxGuestAdditions_3.0....

 

 

How to remove .svn folders and files in linux

This is a very short post about removing the SVN files and folders from your directories.

find ./ -name ".svn" | xargs rm -Rf

VirtualBox 3.0.4 is out

This is just a quick post that a new version of VirtualBox 3 is out.

Download the new version 3.0.4 from http://www.virtualbox.org/wiki/Downloads the VirtualBox website.

Download the VBoxGuestAdditions_3.0.4.iso using this url:

http://download.virtualbox.org/virtualbox/3.0.4/VBoxGuestAdditions_3.0.4...

Do not forget to replace your old VBoxGuestAdditions iso with the new version and update your guest operating system.

 

Ubercart 2.x Price Handler and Old Price

Ubercart 2.x introduced a new way of handling product prices. It is called price_handler().

This is very nice, and most of the discount and TAX modules are using this new function to override the product price, but what if you need the new price and the old price on the same product?

Let's say you would like to show your visitors the product price before it was discounted.

You obviously should not change the contribution modules or the Ubercart core. You should just simply create your own module or use the general module you have created earlier (You got one, right?) and just paste the following lines at the bottom.

This function will create the price handler. Don't forget to replace 'your_module' with your module name everywhere.

This function will create the price handler. Don't forget to replace 'your_module' with your module name everywhere.

/**
 * Implementation of hook_uc_price_handler().
 */

function your_module_uc_price_handler() {
  return array(
    'alter' => array(
      'title' => t('Old price handler'),
      'description' => t('Adds old price to product.'),
      'callback' => 'your_module_price_handler_alter',
    ),
  );
}

This function will save the original Sell Price and put it on the node object for further use.

/**
 * This is just a function to save the original sell price and put it on the node.
 */

function your_module_price_handler_alter(&$price_info, &$context, &$options) {
  if (isset($context['subject']['node'])
    && $context['subject']['field'] == 'sell_price'
    && !isset($context['subject']['node']->old_price)) {
    $node = $context['subject']['node'];
                $context['subject']['node']->old_price = $node->sell_price;
  }
}

One you have enabled your module, you will have the old_price on the node object so you can play with it. :)

/**
 * hook_nodeapi()
 */

function your_module_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL){
  switch ($op) {
    case 'view':
      if( ($node->sell_price != $node->old_price) && ($node->old_price > 0) ){ 
        $old_price_content  = '<div class="old-price-wrapper">';
        $old_price_content .= '<div class="old-price">'.t('Was: ')';
        $old_price_content .= '
<span class="price-was">';
        $old_price_content .= uc_currency_format($node->old_price).'
</span>';
        $old_price_content .= '
</div></div><p>';
        $node->content['
old_price']['#value'] = $old_price_content;
       $node->content['old_price']['#weight'] = -1;
      }                                        
    break;
  }
}

If you have any questions, just ask it in a comment. Good luck.