Drupal Sandbox Project: CAS Username Link

I've just finished working on a new Drupal Sandbox Project: CAS Username Link This project came about while working on a Single Sign On (SSO) solution. The product I was checking out was CAS. Low and behold, CAS has a Drupal module, aptly named: CAS. After fiddling around with module and having it not working for a while, I finally realized that each existing Drupal account needed to have a CAS username linked to it. This could be done manually on the user configuration screen, or by running a bulk update on the database to populate the cas_user table. This wasn't going to work for me since...


Is there a good way to create redirects when launching a new site?

I am quickly finding that there is no good way to do this, but this is what I've done. I started with the Google Analytics from my old site and sorted the content by page views.  This gives me my most important information or at least the content that might get the most 404s.  After doing the top 100 (some which I caught through wild cards like this) RedirectMatch permanent (?i)^/example/content(.*)    http://cvanderlinden.com/example/content The biggest thing I have learned is that it doesn't need to be the exact right place, and all I'm trying to do is avoid 404s. Next after that I...


Drupal 7: Installing and Configuring Date iCal to work with Events

First let's start by downloading and installing the module: Date iCal I did this using drush, but you can do it anyway to please. Now, with the version I was using (7.x-1.1) the timezone handling wasn't working properly so I applied this patch to correct timezone handling. Hopefully that get's permanently fixed in the module soon, and you won't have to apply the patch anymore. Next, we need to configure the content type that we want to use the iCal settings. I all ready have a content type setup with a date field, called "Events".  If you don't have one, then you're going to have to create...


Drupal: Making Media: YouTube more user friendly

I have a client that needs their editors to be able to quickly embed YouTube videos into posts.  Usually one can just do this by copying and pasting embed codes into the source. However in this case, the client required that the user not touch the source code.  Enter Media: YouTube, in conjunction with the Media module this allows the user to paste a YouTube link into the plugin and have the embed code be generated for the user.  Perfect! However, I find that it's usability is a little off and needed to be retouched for my purposes.  My two problems: The icon needs to be changed to a...


Share: 26 Free Retro Fonts

There are some great free fonts in this post, check it out if you are interested - www.demilked.com/free-retro-fonts/


Drupal 7: WYSIWYG YouTube Embed Tutorial (Media_YouTube)

Why would you need a YouTube plugin for Drupal? Can't you just use the embed code? Yes, yes you can. However, you may run into a client where copying and pasting the embed code becomes too technical.  So lets forget about why we need this and I'll explain how to get it set up. Foreword After switching over to Drupal 7, I decided to use the WYSIWYG module to implement text editors instead of custom built modules for text editors.  This now allows us to keep up to date with the latest release of editors like CKEditor, TinyMCE, etc.  Since you just drop them into the libraries folder and they...


Github Release: CiviCRM-PPI-PayMover-Payment-Plugin

For work, I had to develop a payment processor plugin for CiviCRM to integrate PPI PayMover into the eCommerce / CRM / Drupal system. I'm not sure the need for this, because when I first built this, I couldn't find a single thing on the Internet related to this project.  That is why I am releasing my code on github. CiviCRM-PPI-PayMover-Payment-Plugin on Github The project takes a little it of setting up.  You need the PHP SDK from PPI, those aren't my files to share but you can get them if you have an account with PayMover. Then you need to insert the payment process into the database,...


Github Release: TwitterRSS-Enhancer

Github page for TwitterRSS-Enhancer My first release for Github, ever. Hooray! A need came along for me to have an RSS for twitter status updates.  That was a tough enough challenge as Twitter decided to hide this feature.  After so digging I found you can get a Twitter RSS feed using this link: http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=cvanderlinden As you can see by that twitter provided RSS, it includes the screen name at the front, and also doesn't have any "twitter syntax highlighting." All my code does is, strip the first characters with the username because they...


Our SVN Development/Release Process

I've been working with my team to create a new development and release process for our Moodle 2.x code.  We've been using SVN for a number of years, so we can save the SVN Vs. GIT argument until another date.  For now, this process is based on SVN. We developed a new two-week release process, in which every two weeks we have a new production release.  This makes our turn around time for releasing new features, bug fixes and enhancements quite quick, or at least quicker than it used to be.  I've created a graphic to show how our process works but that can actually be more confusing than me...


PHP, Perl, Python, Ruby

Just saw this article, and needed to share it. http://hyperpolyglot.org/scripting A side by side reference sheet for PHP, Perl, Python, and Ruby.  Definitely useful since I know a lot more PHP than Ruby.  Easy to look up equivalents for each language.