Programming

Programming

Custom programming services rendered

 

Migrate from SMF Forum to Drupal

Recently I needed to do a migration from the Simple Machines Forum (SMF) to the Drupal Native Forum. I think most people by this point have heard of Drupal, and if you're reading this, chances are you're in a similar situation. If you want to migrate from SMF to Drupal, there is no direct route beyond writing your own Migration software from scratch in PHP. In this project I'm migrating from a Bridged Joomla and SMF site that has roughly 16,000 posts and about 1100 users.

Backing up w/ Drush

I love drush

Drush, my favorite new tool, is proving to be quite useful.  Drush saves you time by picking up your connection string from the sites settings.php folder that you're backing up, you no longer need to configure each backup script individually. 

sample usage for this script would be:

bash backup.sh /full/path/to/drupal/site <optional> archive_prefix <optional> #of days to keep archives for

Powershell and LDAP

If you've ever needed to create an LDAP aware powershell script, well you're in luck.  You can use any .Net namespace within a powershell script.  In this article you will find various functions that I have written to work with an LDAP directory.

Gather all LDAP directory properties into a Hashtable as key/value pairs

The purpose of this function is to return a simple object of key/value pairs that you can reference in other parts of your application without connecting to the directory again.

Active Directory

Using the same database, for use primarily in Windows environments, Active Directory also allows administrators to assign policies, deploy software, and apply critical updates to an organization. Active Directory stores information and settings in a central database.

Taxonomy data as term view header

If you would like to create a page view that takes a term id as an argument (like my technology, portfolio pages), You can use the following code in the header of the Views 2 Taxonomy Term view.

Syndicate content