LevelTen Interactive

Discovery

Drupal errors "Notice: Undefined index: profile in..."

Solution: 

Ah the joy of procedural programming in a weakly typed language.

There are two issues here:
1. Drupal is reporting notices
2. Datastructure mismatches

The particular above notice is created when php tries to access a index of an array where the variable is not holding an array. In general this notice will not cause problems with Drupal functionality. You may want to turn off php reporting notices. To do this you can change php's error reporting.

In php.ini use:
error_reporting = E_ALL & ~E_NOTICE

In .htaccess user:
php_value error_reporting 2039

How To 301 Redirect Multiple Domains Into One Domain

Problem: 

If you need to do a 301 redirect between multiple domain names, and force all domains to direct to the "www", use the following code in your .htaccess file.

RewriteCond %{HTTP_Host} ^(www\.)?secondary-domain1\.com$ [NC]
RewriteRule ^(.*)$ http://www.maindomain.com/$1 [L,R=301]

RewriteCond %{HTTP_Host} ^(www\.)?secondary-domain2\.com$ [NC]
RewriteRule ^(.*)$ http://www.maindomain.com/$1 [L,R=301]

RewriteCond %{HTTP_Host} ^maindomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.maindomain.com/$1 [L,R=301]

And that's how you would do a 301 redirect between multiple domain names, and force the "www" version of your main domain.  The code above is for a .htaccess file on an apache server.

How do I test a website in IE6 on Windows XP?

For Windows XP, the best way I have found to test a website in IE6, is to create a virtual machine on your PC. You will need two things in order to make this happen:

How do I shade every other row in Excel 2007?

In Excel 2007, here is step-by-step instruction for shading every other row in your selection:

1. Select the rows or cells in Excel you want affected
2. Under the "Home" tab, click on the "Conditional Formatting" drop-down and select "New Rule..."
3. Select the option, "Use a formula to determine which cells to format"
4. Copy and paste the following values into the field for "Format values where this formula is true:" =MOD(ROW(),2)=1
5. Click on the "Format..." button to format the row style desired (Use the "Fill" tab to insert cell background color) and press OK
6. Click OK again and voila!

How do I create a test PayPal PayFlow Pro account?

Go through the steps on creating a real PayPal PayFlow Pro account, but as soon as you reach the page that asks for credit card information, exit out of it (close the tab or browser window). PayPal will send you an email notifying you of your login information for your new TEST PayFlow Pro account! Tricky, but simple!

How do I fix Drupal's fatal error for memory size exhausted?

Problem: 

Ideally, for a memory issue, you would want to change your php settings to increase php memory allotted. In the case of most hosting providers, you do not have permissions or the ability to change the php.ini file, so here is another option:

1. Log-in to your site via FTP
2. Locate the base install of your Drupal installation - often "www" or "public_html"
3. Open/edit the .htaccess file
4. Insert the following into the .htaccess file: php_value memory_limit 96M
5. Save the file and rewrite the .htaccess file on the server
6. Most memory issues should be resolved


Create your own customized Facebook URL at 12:01am EST

Currently, your Facebook account URL looks something like this: http://www.facebook.com/profile.php?id=123456789. The URL is not personalized, not searchable, and difficult to remember/share. FB is finally moving to customizable URLs, or as some call them, Vanity URLs.

Snatch your name up before someone else does!

At 12:01am EST login to your Facebook account and go to:

www.facebook.com/username/

There will be instructions on how to create your username. The URL cannot be changed once created.

301 Redirect

Solution: 

Follow these steps to create a 301 Redirect:

  1. FTP to the server
  2. Find the .htaccess file (usually in the web or www folder)
  3. Edit the .htaccess file
  4. Look for # Various rewrite rules
  5. To redirect all users to access the site WITHOUT the 'www.' prefix, (http://www.example.com/... will be redirected to http://example.com/...) uncomment (remove the #) and adapt the following:
  6. # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
    # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

    So if I wanted to redirect level10design.com to LevelTenDesign.com, it would look like this:

    RewriteCond %{HTTP_HOST} ^www\.level10design\.com$ [NC]
    RewriteRule ^(.*)$ http://www.leveltendesign.com/$1 [L,R=301]

  7. Save and upload the .htaccess file to the server.

Add a new set of rules for each domain you want to redirect to that site.

Should I "forward" or "redirect" a URL?

Solution: 

A better option is to park the alternate domains on top of the main domain and create a search-engine friendly 301 redirect. Search engines will index only the new URL, but will transfer link popularity from the old URL to the new one so that search engine rankings are not affected. The same behavior occurs when additional domains are set to point to the main domain through a 301 redirect. By using what is called an "IP funnel", you will have multiple domains pointed to the same site but you won't risk duplicate content issues.

You can also use a 301 redirection for common misspelled versions of your domain name or for other good domain names that you don't want your competitors to get.

What is Follow Friday (#followfriday)?

Follow Friday (also referred to as followfriday, or just ff), is a social movement using the social media application, Twitter. Every Friday, Twitter users essentially give shout outs to their friends, people they like, or people who have replied or re-tweeted a post. Follow Friday is designated with a #, also known as a hash tag.

A typical #FollowFriday tweet might look something like this:

followfriday.jpg

Remove "submitted by Username on date text" on Nodes #drupal

Solution: 

I am officially documenting this process, and hopefully this finds you well on your search for removing the submitted by Username on date text.

1. Go to your Global Settings (Site Building > Themes > Configure > Global Settings)
2. The box labeled Display post information on is where you can control which node the information is displayed on.
3. Check (or uncheck) the boxes.
4. Save.

global settings

Sounds easy, I know, but it's the small things like this in Drupal that can be easy to forget.

Well, not anymore.

Drupal CCK Image Field Missing on Module Upgrade

Solution: 

A recent upgrade of the ImageField module changes the way you add an Image CCK field. In the first drop-down list, select "File", and select "Image" in the second drop-down list.

cck select list showing image field option

Corporate Twitter Tip #1

Don't mention your company name in every tweet.

If the Tweets on your profile read something like this:

  • TwitterName: WidgetsRus is doing something new!
  • TwitterName: Good times at WidgetsRus!
  • TwitterName: Look at some WidgetsRus news! http://is.gd/76Ys

Than you're probably doing it wrong.

How to GZIP a TAR file with 7-Zip

When providing a download for software archives I always like to provide both a zip and gziped tar file. 7-Zip is a great free tool for archiving, even comes in a portable version. I used to use it to create a compressed zip file and a uncompressed tar file. Then I would upload the tar file and gzip it command line. Kind of a pain, but I didn't see where 7-Zip would do gzip compression.

Top Notch Themes Delivers a Free 29 Page Ubercart Guide

Last month the guys over at Top Notch Themes published their free 29 page Ubercart guide. The demonstrate what you need to know so that you can get the most from your Ubercart shopping cart once you've actually added it to your Drupal installation. They go into some pretty good detail about how to best configure the system and which modules to use (hint: most are in the iSite Essentials).

Unconventional Marketing Methods and the Iterative Process

A great bit of information that speaks exactly to how we approach our projects and look to drive success.

WayBack Machine - Internet Archive

The WayBack Machine, or Internet Archive, allows you to search archives of stored website snapshots.

http://www.archive.org/web/web.php

For example, search for the URL "http://www.cnn.com", and you'll see a list of archives that span back to the year 2000.

Should I use keyword titles when submitting to directories?

If a directory is human edited, which most all paid ones are, as well as DMOZ, the editor will typically just change it to your business name. Yes, it's annoying to them, but you are always going to face that opposition. It's good for your site, but there is a time and place for it.

Syndicate content
Syndicate content

©1999 - 2010 LevelTen Interactive - Dallas, TX