superkibitz's blog

location module for cck - problem

* warning: array_filter() [function.array-filter]: The first argument should be an array in /var/www/vhosts/lafra/sites/all/modules/location/contrib/location_cck/location_cck.module on line 389.

patch location.module solve the problem:

Changing line 386 from location_cck.module from:

'hide' => array_keys(array_filter($item['location_settings']['display']['hide'])),

to:

'hide' => (isset($item['location_settings'])) ? array_keys(array_filter($item['location_settings']['display']['hide'])) : array(),

preview node -- taxonomy , taxonomy superselect problem

patch the taxonomy superselect module solves this problem

One Ubercart 2 Gotcha - "Unable to send e-mail. Please contact the site administrator if the problem persists." - Drupal 6

When using ubercart as your shopping cart, after successfully checkout and paid, you get the following error message:
Unable to send e-mail. Please contact the site administrator if the problem persists.

The first thing come to your mind maybe, oh, my system can not send email?!, but I know that was not the case, since all registeration, friend invitation, emails were sent out with out a glitch. So, it is ubercart related.

collapse div the easy way - drupal 5

While trouble shooting why the collapseblock module does not work on the site we are developing, I find that the use of panel for those dynamic blocks does not go well with the javascript in that module. Unless we are willing to spend more time to rewrite that so it can be used in our situation, or go to to route of general tool.

Node Template Creation Gotcha - Drupal 6

The following are very important tools in my box when creating node template for drupal 6:


<?php
print '

';
print_r(get_defined_vars());
print '

';
?>


<?php
print '

';
print htmlspecialchars(print_r(get_defined_vars(), TRUE), ENT_QUOTES);
print '

';
?>

<?php print_r($node); ?>

Coupons and Deals for Books

I just got this email from manning.com because I brought books from their site before, so I decided to share, if you find it before it expires, you can save some money. Here it is their message:
through July 31, you can save 45% on your complete order at manning.com. Just enter regj3145 in the Promotional Code box when you check out. The discount will apply to all items in your cart.

act fast, offer expired on July 31, 2009.

Google Wave Links

Syndicate content