Recover Your Super User Password On Your Local Machine

The other day I was working on my Mac OSX 10.6 MacBook Pro. A very old model. I imported the database from a live site. When I tried to log in to the root/super user, I was not able to. The password would not work. My first thought was,  "how am I going to recover my password?"

Why doesn't the password recovery work?

For me, my mac would not send out the email.

The link would not find my computer because the Drupal installation is only accessible from localhost

Using PHP to remove all nodes from a Content type

category: 

Today I had over 1,000 nodes to remove from a Drupal 6 installation. The bulk update only lets you remove 50 nodes at a time. What to do?

My Situation

All the node were from a certain content type. Actually, I need to remove all node that belonged to a particular content type. Lets call this content type "articles" My Solution Use PHP to remove all the node that belong to that node type. First I activated the PHP filter Then I ran this PHP script

Taking Money without completing the work

category: 

So I found this post on a Drupal forum:

@PersonWhoPostedBeforeMe, my point is that if Dave is unable to dedicate the time to this issue, and that if someone else was to spend their time to resolve the issue they should receive the bounty. I disagree with the paid approach in these situations as I've seen time and time again people taking donations but never coming through.

Bulk update comment settings on multiple nodes - Drupal

category: 

Recently, I needed to archive the blog section of a Drupal site. Part of this included removing all past comments and removing the ability to leave new comments. Removing comments is pretty easy in Drupal. There is a comment management section for that.

However, to remove the ability to comment on published nodes requires a bulk update. This is something that is not available in the standard Drupal site. Therefore, I had to resort to an alternative method of bulk updating the blog posts.

Pages