Drupal
Patch for path.module in Drupal 4.7.0 beta 4
You might notice that you are unable to delete url aliases in Drupal. I don"t know the exact version that this problem exists. Anyway, I have patched it right now.
diff -u path.module.orig path.module
--- path.module.orig 2005-12-19 21:51:38.000000000 +0700
+++ path.module 2006-01-27 11:56:01.000000000 +0700
@@ -100,7 +100,7 @@
**/
function path_admin_delete_confirm($pid) {
$path = path_load($pid);
- if (user_access("administer path aliases")) {
+ if (user_access("administer url aliases")) {
$form["pid"] = array("#type" => "value", "#value" => $pid);
$output = confirm_form("path_admin_delete_confirm", $form,
t("Are you sure you want to delete path alias %title?", array("%title" => theme("placeholder", $path["dst"]))),
- sugree's blog
- Add new comment
- Read more
- 1002 reads
Patch for blogapi.module in Drupal 4.7.0 beta 4
In Drupal 4.7.0 beta 4, blogapi.module mostly works fine with Post2Blog unless 2 points. The first one occurs when trying to edit post. Categories will not return via XML-RPC. Below is my patch.
diff -u blogapi.module.orig blogapi.module
--- blogapi.module.orig 2006-01-12 17:02:45.000000000 +0700
+++ blogapi.module 2006-01-27 16:02:51.000000000 +0700
@@ -710,6 +710,17 @@
$xmlrpcval["mt_convert_breaks"] = $node->format;
}
+ $terms = module_invoke("taxonomy", "node_get_terms", $node->nid, "tid");
+ $categories = array();
+ foreach ($terms as $term) {
+ $term_name = $term->name;
+ foreach (module_invoke("taxonomy", "get_parents", $term->tid, "tid") as $parent) {
+ $term_name = $parent->name . "/" . $term_name;
+ }
+ $categories[] = $term_name;
+ }
+ $xmlrpcval["categories"] = $categories;
+
return $xmlrpcval;
}
- sugree's blog
- Add new comment
- Read more
- 822 reads
Smooth procedure to upgrade Drupal 4.7.0 beta 3 to beta 4
Since Drupal 4.7.0 beta 4 is available last night, I have just upgraded howforge.com to see the better version. There are many patches was applied to this release. I recommend all you to upgrade as soon as possible. Since I installed lots of modules and themes as well as hot patches during beta 3, the upgrade is not as easily as expect. The most critical problem is I didn"t want to interrupt user by making site off-line for so long. According to the upgrade guide, I have to remove all existing files and extract the new ones. This action is unacceptable for me. That means user might not see the proper message about off-line maintenance or upgrading. Below procedure is what I done today.
- sugree's blog
- 9 comments
- Read more
- 1546 reads
Drupal 4.7.0 beta 4 released
Well, Drupal 4.7.0 beta 4 has just released last night. I am going to upgrade howforge.com and see what is going on. There are several successful upgrade from beta 3. I will be the next one.
Just in time for DrupalCon 2006, Vancouver, the Drupal development team is pleased to announce the fourth beta release of Drupal 4.7.0! It is available for immediate download at http://drupal.org/files/projects/drupal-4.7.0-beta4.tar.gz. This beta release is hopefully the final beta release for Drupal 4.7.0 and marks a significant improvement in the Drupal 4.7.0 codebase. Since beta 3, over 120 bugs have been fixed, bringing the total to nearly 300 bugs fixed since the first beta release. All of these changes are detailed in the changelog. However, there are still more bugs to be found, reported and fixed before a release candidate can be made. The good news is that, with your help, we can release Drupal 4.7.0 RC1 much sooner!
Drupal 4.7.0 beta 4 available | drupal.org
- sugree's blog
- Add new comment
- Read more
- 1109 reads
Drupal Thai Translation
This site is powered by Drupal. This site is hosted in Thailand. I am a Thai. That"s why I want this site to be able to provide information in Thai as well as user interface. Fortunately, Drupal is already supported localization. I am keen to translate it myself if noone do it right now. Though I am not the first one who want to translate Drupal into Thai, SoftwareBank seems to be the first one but not released any files yet. Anyway, I am welcome anyone who want to translate. I just want to use it no matter what who translate it.
- sugree's blog
- 166 comments
- Read more
- 45244 reads
Search Keywords Module
Search Keywords Module is written for extracting keywords from referers which are major search engines, e.g., and Technorati. This module aims to help site administrators to see how visitors find your content based on search keywords or tags.
If IP to Country Module exists and is enabled, visitor"s country flag will be shown in addition to just IP address for each entry.
This module is submitted to drupal.org and waiting for approval.
- sugree's blog
- 2 comments
- Read more
- 6582 reads
Recent comments
3 years 34 weeks ago
3 years 39 weeks ago
3 years 39 weeks ago
3 years 40 weeks ago
3 years 40 weeks ago
3 years 42 weeks ago
3 years 42 weeks ago
3 years 42 weeks ago
3 years 43 weeks ago
3 years 43 weeks ago