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 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
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 condribution 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.
/**
* 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;
}
}
Cron is a time-based job scheduler in Unix-like computer operating systems. 'cron' is short for 'chronograph'.
If you would like to set up your Drupal and linux server to use the cron, these steps will help to achieve your goal.
Open up a console and change to the user which will run the cron.
Every user has it's own cron tab (which is the list of jobs cron has to run.)
If you prefer, create a new user for this job.
To access your crontab use the following command:
crontabThis will give you a summary of crontab's commands and switches.
To list your cronlist type:
crontab -land to edit the list:
crontab -e
If this is the first time you edit the crontab, it will ask you which editor you would like to use.
If you are unsure, use google to find out which editor is the best for you.
Inside the editor, add the following line to the end of the list:
*/5 * * * * /usr/bin/wget -O - -q -t 1 http://[your server url]/cron.phpThis will execure the cron.php in every 5 minutes.
Here is a diagram of the general crontab syntax, for illustration:
* * * * * [command to be executed]
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
* in the value field above means all legal values as in braces for that column.
The value column can have a * or a list of elements separated by commas. An element is either a number in the ranges shown above or two numbers in the range separated by a hyphen (meaning an inclusive range).
In Drupal 5.x with the Views module we can easily create content listing blocks. There is an option for switching on the "more" link on the Views edit page. If you would like to change the word "more" to something else, you can add the following code to your template.php in the theme folder:
/**
* Override the more link on view block
*/
function phptemplate_views_more($url){
return "" . l(t('[Read more]'), $url) . "";
}
Don't forget, that this function will override every "more" link on every block.
If you would like to theme only one "more" link, you have to come up with a better idea. Sorry :)
Drupal 6.4 and Drupal 5.10, maintenance releases fixing problems reported using the bug tracking system, as well as critical security vulnerabilities, are now available for download.
Nagyszerû hírt olvashattunk a napokban a drupal.org-on. Szegeden rendezik meg a 2008-as Drupal Konferenciát.
Az új Discount module jól mûködik együtt az Ubercart Beta 6 verzióval.
*UPDATE*
* Figyelem! Ez a bejegyzés idejét múlt.
Ubercart: www.ubercart.org
Magyar fordítás: http://l10n.privnet.biz/translate/languages/hu
*1 Legfrissebb Ubercart verzió: 1.6
Szóval, külön választottam a híreket és a blogot. Ez azért jó, mert így tudok az oldallal kapcsolatos információkat írni, teljesen függetlenül a blogtól. Jó mi?