Login

Developer

Running Profile CSV

After installing and configuring Profile CSV, to actually get the file download, you go to http://<your website>.<domain>/profile_csv

That's all there is to it.

A Multisite Gotcha

I was checking Google rankings for an audiobook store. This site is also the root for a number of sites running under it in a multi-site environment. I was looking to see how a particular page fared. Opps. The page/node I was looking for came up as content in most of the other sites. Duplicate content. Quite a bit as a matter of fact. Not good when it comes to search engines. I had forgotten to set up the 302 redirect in the htaccess file. The result was that when spiders crawled www.example1.com, they would see content for the example1 site. But, when crawling example1.com, minus the 'www,' they were redirected to content on the parent site. Hence, many sites were sharing the same nodes as far as the search engines could tell. The fix is in your root htaccess file. Look for the section # Various rewrite rules. It will explain what to do. You may also want to check out John Forsythe's post about How Duplicate Content Hurts Drupal Sites. That article covers a lot of ground.

Hide and Show the Login Block Update

Since writing the post on hiding and showing the login block, I've done some work on the site's theme and the on the jQuery code.  The basic info applies, but I found that this jQuery code seems to work more consistently across browsers, particularly IE.  Here it is:

Hide and Show the Login Block

A member of the Western Massachusetts Drupal Users Group posed the question, 'what techniques do you use to hide or display a login block?'  As this is a feature that gets request with some regularity, I started playing around with a jQuery solution.  You can see it in action by pressing the login link in the upper right corner of this site, just under the primary links.

Here's how I did it.

First, I created a file called login.js that contained this code:

Getting Google Site Verification Working

While the Nodewords module contains a Google Site Verification field to enter the verification id, the version I was using was not adding a metatag that was recognized by Google.  The problem seemed to lie in the tag name.  Nodewords uses name=verify-v1.  And so do some other Google verification tags.  But, according to the Webmaster Tools for my particular site, it should be name=google-site-verification

A Drupal Toolkit for Windows

Hera are a few tools that might come in handy for you.

The first is Extract Now.  It's a compressed file extraction tool.  In that there are certain compressed file types that Windows does not natively work with, it is handy.  It's free, too.

UberPOS: A Point of Sale System for Drupal

At the last western Mass Drupal Users Group meeting, we were given a demo of UberPOS.  It hooks into UberCart, which is an eCommerce element of Drupal,  UberPOS provides a POS system which includes connectivity with hardware such as a barcode reader and cashdrawer. 

Multisite Development Environment in Windows using XAMPP

This is the checklist presented at the May, Western Mass Drupal Users Group.

Assumptions: XAMPP and Drupal Core have been installed. Main site resides under xampp/htdocs/

1. Create a new folder under /sites (ex. sites/audio)

2. Add folders /files, /modules, and /themes under new site

3. Add a settings.php file under new site

4. Modify the Virtual Hosts file (httpd-vhosts.conf) in Apache

a. Path: xampp/apache/conf/extra/httpd-vhosts.conf

Views Attachment - A View With a View

There are times when you want the first item in a list to stand out.  One way to accomplish this is to, first, create the list using Views.  It can be either a page, a block, or both.  Once you have defined your View, you add an Attachment just as you did with the Page or Block by using Add Display.  The 'gotcha' is that you will need to override some of the the default field settings.