drupal

Two good sources of documentation for the Omega theme

http://groups.drupal.org/omega-framework/docs
http://groups.drupal.org/node/155884

I hear there will be an updated set of online docs but for me it was hard to find some key info until I found these docs.

In this case we had to make a custom grid. And even though the Admin --> Settings area allowed for me to choose 24 grids we did not get full control until we follow the doc on http://groups.drupal.org/node/164684

Then it was almost smooth sailing.

Thanks to the #drupal-omega chat room to find the right docs.

MAMP Pro and memcache

Great post on how to do this with MAMP and for the most part it works with MAMP Pro.
Nate Haug at Lullabot
http://www.lullabot.com/articles/setup-memcached-mamp-sandbox-environment

The paths are a bit different as they are broken down one more level
/Applications/MAMP/bin/php/php5.2.17
and
/Applications/MAMP/bin/php/php5.3.6

Then after that I had an error with this command.
cd /Applications/MAMP/bin/php/php5.2.17/bin
./pecl i memcache

The error was

Notice: unserialize(): Error at offset 277 of 1141 bytes in Config.php on line 1050

Command line tools to backup your drupal files and database

Two command line scripts that are great solutions to backing up your drupal database and filesystem.
Sure there are tons of ways to do this but these two have worked well for me for numerous years. And since they are command line tools, once in place they just work.

rdiff-backup
This is a great way to do incremental backups and it can even do remote backups. All you need to do is run it at night via cron. For example
rdiff-backup /home/admin/public_html /home/admin/backups/filesystem
That will backup my site to the filesystem folder I made for it.

Ubercart Shipping Report

The client needed a basic report they could export to show shipping costs for a date range.
Not sure why ubercart did not come with this (maybe I am missing the obvious?) but it was easy to make with Views and Views Bonus Pack.
Here is a video
http://blip.tv/file/4726303

Here is the repo where this features based module lives
https://github.com/rvtcadmin/shpping_report
(yes the i is missing in shipping oops)

Then there is the txt file if you just want the view and not the "module" that features made.

Installing Twitter Beta3 module

The latest version is much easier.
http://ftp.drupal.org/files/projects/twitter-6.x-3.0-beta3.tar.gz
Beta 3.
But I still used the oauth noted on the top of the page. But I did not have to set the RSA settings on it. Not sure why.
Also the twitter module defaults to "true" for every node so I made a quick hook to disable that.

$form['twitter']['post']['#value'] = '0';

This in the form alter or after build hook to turn that off.
Or just simple jquery when you do not want to deal with the drupal hooks.

Ubercart "People who bought this also bought" block

Module to show other ubercart products people ordered with this product. http://bit.ly/gkKd2m You may have to edit the Views Argument if you are using some content type other then Products.

Also remember the db user needs "CREATE VIEW" access to the database. For me this was tricky cause the database had an _ in the name so I had to type a forward slash like`lr\_database` before it would take it.

Making WYSIWYG editors really WYSIWYG

 A lot of times when I'm setting up a wysiwyg editor for a site that I'm the only one working on I will leave the WYSIWYG editor (FCKEditor, CKEditor, WYSIWYG) with mostly default settings. This generally means that I don't really have a WYSIWYG editor. The format dropdowns and how they appear in the editor don't necessarily represent what I  will see when I save the node. But what if you want those things to look the same?

Using Path Redirect - A Brief Video Tutorial

 Sometimes it's nice to have video tutorials even for the simple modules. I created one for Path Redirect with a focus on cleaning up "page not found" errors from a previous build of a website.

Google Site Verification with Drupal

 It wasn't that long ago that I was trying to set up a Drupal site with Google Webmaster tools. One of the steps of the process of setting that up is Site Verification. Unfortunately, verifying a Drupal site in the ways that they suggest can be problematic... without the right module. Enter Site Verification.

A small feature but a big help on security

Thanks to this podcast http://developerkarma.com/podcasts/module-a-day (site seems to be down right now) I learned about this module http://drupal.org/project/captcha_after

Basically it allows you to set the captcha based on number of failed attempts. As Andrew M. Riley notes this it great for the user login block/page to prevent brute attacks with out driving the user nuts.

This brute attack method is quite common where a computer can just be set to continually try and log into a site until it succeeds.

Syndicate content