Welcome to Code

Code.colostate.edu is a site created for CSU web developers. This is a community supported site; it's success relies upon your contributions. 

Some content within this site requires a valid eID login to access.  To add/edit articles, please contact Shaun in order to obtain the necessary privileges.

-Shaun

Contact Us

Need to contact me?  Please feel free to utilize the contact information below...

Name Title Email Phone
Shaun Geisert Assistant Director of Web Development
Division of Student Affairs
shau...@colostate.edu (970) 491-0736

 

Web Ramblings

Preparing Your MojoPortal Site For Upgrading 

Posted by Shaun Geisert Thursday, August 22, 2013 11:12:00 AM Categories: General MojoPortal
For reference purposes, I wanted to document every change that I make to the stock version of mojoPortal before I execute an upgrade using my PowerShell script. You may want to check out this blog post in case any new features require CSS ... read more
 

Preparing Your MojoPortal Site For Upgrading 

Posted by Shaun Geisert Thursday, August 22, 2013 11:12:00 AM Categories: General MojoPortal
For reference purposes, I wanted to document every change that I make to the stock version of mojoPortal before I execute an upgrade using my PowerShell script. You may want to check out this blog post in case any new features require CSS ... read more
 

MojoPortal + Sign In Event Handler: Automatically Granting Departmental Users Content Admin Role 

Posted by Shaun Geisert Wednesday, June 19, 2013 12:40:00 PM Categories: ASP.NET WebForms General MojoPortal
I thought I'd add pass along some code to automatically grant LDAP users some role on their respective sites upon a successful login. Please see http://www.mojoportal.com/user-sign-in-event-handlers.aspx for more information on how to create a... read more
 

MojoPortal + Sign In Event Handler: Automatically Granting Departmental Users Content Admin Role 

Posted by Shaun Geisert Wednesday, June 19, 2013 12:40:00 PM Categories: ASP.NET WebForms General MojoPortal
I thought I'd add pass along some code to automatically grant LDAP users some role on their respective sites upon a successful login. Please see http://www.mojoportal.com/user-sign-in-event-handlers.aspx for more information on how to create a... read more
 

MojoPortal: Creating a Simple Quiz Using Form Wizard Pro And jQuery 

Posted by Shaun Geisert Tuesday, March 26, 2013 5:28:00 PM Categories: General jQuery MojoPortal
Recently I was asked by a client to create a quiz that would not allow someone to submit it until all the answers were correct. This is what I whipped up for them today. You'll get the idea by viewing the source below; obviously it's not... read more
 

MojoPortal: Creating a Simple Quiz Using Form Wizard Pro And jQuery 

Posted by Shaun Geisert Tuesday, March 26, 2013 5:28:00 PM Categories: General jQuery MojoPortal
Recently I was asked by a client to create a quiz that would not allow someone to submit it until all the answers were correct. This is what I whipped up for them today. You'll get the idea by viewing the source below; obviously it's not... read more
 

Form Wizard Pro: Validating At Least One Drop Down Is Not Empty 

Posted by Shaun Geisert Tuesday, August 21, 2012 10:10:00 AM
There is no built-in functionality in mojoPortal's Form Wizard Pro to require at least one item (of many) be required. Here's one way to do it with jQuery, though: <script type="text/javascript"> $(document).ready(function() { //... read more
 

Form Wizard Pro: Validating At Least One Drop Down Is Not Empty 

Posted by Shaun Geisert Tuesday, August 21, 2012 10:10:00 AM
There is no built-in functionality in mojoPortal's Form Wizard Pro to require at least one item (of many) be required. Here's one way to do it with jQuery, though: <script type="text/javascript"> $(document).ready(function() { //... read more
 

Creating Unique Constraint in MS SQL While Allowing Multiple NULL values 

Posted by Shaun Geisert Friday, June 29, 2012 9:44:00 AM Categories: General SQL
For future reference: create unique nonclustered index uniqueEmail on dbo.trk_Person(Email) where Email is not null; create unique nonclustered index uniqueCustomId on dbo.trk_Person(CustomId) where CustomId is not... read more
 

Creating Unique Constraint in MS SQL While Allowing Multiple NULL values 

Posted by Shaun Geisert Friday, June 29, 2012 9:44:00 AM Categories: General SQL
For future reference: create unique nonclustered index uniqueEmail on dbo.trk_Person(Email) where Email is not null; create unique nonclustered index uniqueCustomId on dbo.trk_Person(CustomId) where CustomId is not... read more
 

Extending MojoPortal's Form Wizard Pro to Support Authorize.NET SIM – Version 2.0 

Posted by Shaun Geisert Thursday, May 31, 2012 5:17:00 PM
Download Visual Studio solution file I see there have been some individuals who are interested in integrating Authorize.NET SIM with MojoPortal’s Form Wizard Pro. To make this integration simpler, this is a means whereby you can... read more
 

Extending MojoPortal's Form Wizard Pro to Support Authorize.NET SIM – Version 2.0 

Posted by Shaun Geisert Thursday, May 31, 2012 5:17:00 PM
Download Visual Studio solution file I see there have been some individuals who are interested in integrating Authorize.NET SIM with MojoPortal’s Form Wizard Pro. To make this integration simpler, this is a means whereby you can... read more
 

WebGoat / AppSec Links Relating to SQL Injection 

Posted by Shaun Geisert Wednesday, May 16, 2012 11:17:00 AM Categories: .NET Tools General SQL
WebGoat – Purposefully insecure OWASP Application that’s a great tool for learning about SQL injection as well as numerous other security vulnerabilities. There are both Java and ASP.NET versions of the program, although the Java... read more
 

WebGoat / AppSec Links Relating to SQL Injection 

Posted by Shaun Geisert Wednesday, May 16, 2012 11:17:00 AM Categories: .NET Tools General SQL
WebGoat – Purposefully insecure OWASP Application that’s a great tool for learning about SQL injection as well as numerous other security vulnerabilities. There are both Java and ASP.NET versions of the program, although the Java... read more
 

Form Wizard Pro And JQuery Word Count 

Posted by Shaun Geisert Friday, March 23, 2012 4:46:00 PM Categories: CSS jQuery MojoPortal
Here’s a quick n’ dirty example of how to do a friendly word counter within mojoPortal using a plugin I’ve used in the past: http://themeforest.s3.amazonaws.com/67_wordCounter/index.htm. The jQuery as it is on that page needed minor alterations... read more
 

Form Wizard Pro And JQuery Word Count 

Posted by Shaun Geisert Friday, March 23, 2012 4:46:00 PM Categories: CSS jQuery MojoPortal
Here’s a quick n’ dirty example of how to do a friendly word counter within mojoPortal using a plugin I’ve used in the past: http://themeforest.s3.amazonaws.com/67_wordCounter/index.htm. The jQuery as it is on that page needed minor alterations... read more
 

Extending Formwizard Pro CSS 

Posted by Steve Railsback Monday, March 19, 2012 3:22:00 PM Categories: CSS MojoPortal
Clients often ask me if there's a way to add style to their web forms. Rather than handle their formatting requests on a case by case basis I created some quick and simple CSS class rules that all my clients may choose to use when building their... read more
 

How to Save Form State 

Posted by Steve Railsback Friday, March 09, 2012 10:31:00 AM
Remember the story of Sisyphus the Greek King. I will spare you the mythology lesson, but let's just say he wasn't a pleasant guy. For his crimes the Greek gods punished him to role a huge boulder up a steep hill, only to have it role back to the ... read more
 

2013 Conference Opportunities 

Posted by Shaun Geisert Tuesday, February 28, 2012 11:54:00 AM Categories: ASP.NET MVC ASP.NET WebForms General
(function ($) { $.fn.styleTable = function (options) { var defaults = { css: 'dataTable' }; options = $.extend(defaults, options); return this.each(function () { input = $(this); ... read more
 

2013 Conference Opportunities 

Posted by Shaun Geisert Tuesday, February 28, 2012 11:54:00 AM Categories: ASP.NET MVC ASP.NET WebForms General
(function ($) { $.fn.styleTable = function (options) { var defaults = { css: 'dataTable' }; options = $.extend(defaults, options); return this.each(function () { input = $(this); ... read more
 

Send Snazzy Email Confirmations using Form Wizard Pro 

Posted by Steve Railsback Sunday, January 29, 2012 5:00:00 PM Categories: MojoPortal

Since the mojoPortal Team released support for Form Submission Handlers I've been in programming heaven. Form submission handlers have changed the way my clients do business on their sites. I've written handlers to send confirmation emails, receive applications and push data to other databases, and even schedule events in mojoPortals Event Calendar Pro. I really see the possibilities of form submission handlers as endless and one of the best attributes of mojoPortal. This article will demonstrate how I use form submission handlers along with mojoPortal's Newsletter tool to send HTML formatted email confirmations.

... read more
 

Know When Your Site Goes Down Before Your Clients Do 

Posted by Shaun Geisert Friday, January 20, 2012 5:47:00 PM Categories: Development Philosophy General
I'm not too happy when a site I am responsible for goes down. I especially don't like it when a client alerts me to this fact, when I should have known/fixed the issue myself well before their knowledge of the issue. So, here's how to prevent... read more
 

Know When Your Site Goes Down Before Your Clients Do 

Posted by Shaun Geisert Friday, January 20, 2012 5:47:00 PM Categories: Development Philosophy General
I'm not too happy when a site I am responsible for goes down. I especially don't like it when a client alerts me to this fact, when I should have known/fixed the issue myself well before their knowledge of the issue. So, here's how to prevent... read more
 

MS SQL Calculate Number of Orders per Day 

Posted by Steve Railsback Wednesday, January 11, 2012 11:19:00 AM
The Bookstore approached me wanting to know how many textbook orders they received each day for Spring semester. With some quick experimentation I came up with the following query:SELECT        DATEADD(day,... read more
 

Form Wizard Pro View-Only Module 

Posted by Shaun Geisert Tuesday, January 03, 2012 3:29:00 PM Categories: MojoPortal
Here's a simple module designed to display all the submissions in a given instance of Form Wizard Pro, similar to the "View Submissions Grid" within the admin area of the module itself.  I had to create this because I needed a way to display... read more
 

Form Wizard Pro View-Only Module 

Posted by Shaun Geisert Tuesday, January 03, 2012 3:29:00 PM Categories: MojoPortal
Here's a simple module designed to display all the submissions in a given instance of Form Wizard Pro, similar to the "View Submissions Grid" within the admin area of the module itself.  I had to create this because I needed a way to display... read more
 

Extending MojoPortal's Form Wizard Pro to Support Authorize.NET SIM 

Posted by Shaun Geisert Friday, November 25, 2011 10:59:00 AM Categories: ASP.NET WebForms MojoPortal
Note: I have recently updated this entire project so as to not need a controller application at all (ie, the logic is all self-contained in the FWP submission handler).  Please contact me if you are interested.--> NOTE: I have updated... read more
 

Extending MojoPortal's Form Wizard Pro to Support Authorize.NET SIM 

Posted by Shaun Geisert Friday, November 25, 2011 10:59:00 AM Categories: ASP.NET WebForms MojoPortal
Note: I have recently updated this entire project so as to not need a controller application at all (ie, the logic is all self-contained in the FWP submission handler).  Please contact me if you are interested.--> NOTE: I have updated... read more
 

Automatically Upgrading MojoPortal Using PowerShell 

Posted by Shaun Geisert Monday, October 31, 2011 10:18:00 AM Categories: MojoPortal
After originally creating a Java-based auto-upgrader to handle upgrading my installations of mojoPortal, I had heard about something called PowerShell. PowerShell is sort of like command prompt on steroids, and it is already integrated into... read more
 

Automatically Upgrading MojoPortal Using PowerShell 

Posted by Shaun Geisert Monday, October 31, 2011 10:18:00 AM Categories: MojoPortal
After originally creating a Java-based auto-upgrader to handle upgrading my installations of mojoPortal, I had heard about something called PowerShell. PowerShell is sort of like command prompt on steroids, and it is already integrated into... read more
 

Google Weather .NET User Control 

Posted by Shaun Geisert Wednesday, October 19, 2011 12:22:00 PM
UPDATE: Google has shut down its weather API (iGoogle) for good, so the code below no longer functions. I personally recommend trying a jQuery-based solution.... read more
 

Google Weather .NET User Control 

Posted by Shaun Geisert Wednesday, October 19, 2011 12:22:00 PM
UPDATE: Google has shut down its weather API (iGoogle) for good, so the code below no longer functions. I personally recommend trying a jQuery-based solution.... read more
 

Creating a Mega Menu with mojoPortal 

Posted by Steve Railsback Monday, August 08, 2011 4:05:00 PM Categories: CSS MojoPortal Skins

Mega Menus are fast becoming the new design trend. They are a new spin on the traditional drop-down menu. These big two-dimensional menus group information by category and eliminate the need to drill though the traditional drop-down menu levels to find a particular page. Use of mega menus reduces site complexity and improves usability.

... read more
 

Automating Extensionless Urls in MojoPortal 

Posted by Shaun Geisert Wednesday, August 03, 2011 10:19:00 AM Categories: .NET Tools MojoPortal
Yesterday i put together some code to convert all of my sites to use friendly-urls for all pages (including those pages generated by Event Calendar Pro).  The code iterates through every entry in mp_FriendlyUrls, updating the urls there and... read more
 

Automating Extensionless Urls in MojoPortal 

Posted by Shaun Geisert Wednesday, August 03, 2011 10:19:00 AM Categories: .NET Tools MojoPortal
Yesterday i put together some code to convert all of my sites to use friendly-urls for all pages (including those pages generated by Event Calendar Pro).  The code iterates through every entry in mp_FriendlyUrls, updating the urls there and... read more
 

My Favorite Rounded Corner Solutions 

Posted by Shaun Geisert Friday, July 29, 2011 10:20:00 AM Categories: CSS jQuery
I like being able to round corners without using images. To me, it just keeps things simpler and the markup cleaner.  Here are my 3 favorite ways to accomplish rounded corners without images, even in earlier versions of IE (eg, 6 in some... read more
 

My Favorite Rounded Corner Solutions 

Posted by Shaun Geisert Friday, July 29, 2011 10:20:00 AM Categories: CSS jQuery
I like being able to round corners without using images. To me, it just keeps things simpler and the markup cleaner.  Here are my 3 favorite ways to accomplish rounded corners without images, even in earlier versions of IE (eg, 6 in some... read more
 

Admissions MojoPortal Presentation 

Posted by Shaun Geisert Wednesday, July 27, 2011 9:08:00 AM Categories: MojoPortal
Here's the PowerPoint from my 7/26/2011 presentation of what mojo can do.  Alternatively, I pulled out the important links/info from the presentation and pasted below: CMS Review: http://www.cmsmatrix.org Developers on campus... read more
 

Admissions MojoPortal Presentation 

Posted by Shaun Geisert Wednesday, July 27, 2011 9:08:00 AM Categories: MojoPortal
Here's the PowerPoint from my 7/26/2011 presentation of what mojo can do.  Alternatively, I pulled out the important links/info from the presentation and pasted below: CMS Review: http://www.cmsmatrix.org Developers on campus... read more
 

Prettifying MojoPortal's Form Wizard Pro w/ Jquery 

Posted by Shaun Geisert Wednesday, July 20, 2011 4:12:00 PM Categories: CSS jQuery MojoPortal
Thought I'd share a quick example of one way in which you can "pretty-ify" form wizard pro: http://hsdc.colostate.edu/old-registration This is a bit of a hack in that I created an instance of FWP which I then hid/overlaid with my own user inputs.... read more
 

Prettifying MojoPortal's Form Wizard Pro w/ Jquery 

Posted by Shaun Geisert Wednesday, July 20, 2011 4:12:00 PM Categories: CSS jQuery MojoPortal
Thought I'd share a quick example of one way in which you can "pretty-ify" form wizard pro: http://hsdc.colostate.edu/old-registration This is a bit of a hack in that I created an instance of FWP which I then hid/overlaid with my own user inputs.... read more
 

CSU Mobile for MojoPortal 

Posted by Shaun Geisert Monday, July 18, 2011 9:28:00 AM Categories: MojoPortal Skins
If you have mobile kit pro installed, you may want to avail yourself of the following CSU-branded skin.  A few notes: Because my work is a derivative of the skin that ships with Mobile Kit Pro, you must either own a license to MKP or be... read more
 

CSU Mobile for MojoPortal 

Posted by Shaun Geisert Monday, July 18, 2011 9:28:00 AM Categories: MojoPortal Skins
If you have mobile kit pro installed, you may want to avail yourself of the following CSU-branded skin.  A few notes: Because my work is a derivative of the skin that ships with Mobile Kit Pro, you must either own a license to MKP or be... read more
 

My Own Web Page Centric Approach To Feature Driven Development and Scrum 

Posted by Shaun Geisert Wednesday, July 13, 2011 8:56:00 AM Categories: Development Philosophy General
Every now and then I hear about some development methodology that tends to alter the way i think about designing web applications.  Two in particular are scrum and feature driven development.  Lately I've been experimenting with my own... read more
 

My Own Web Page Centric Approach To Feature Driven Development and Scrum 

Posted by Shaun Geisert Wednesday, July 13, 2011 8:56:00 AM Categories: Development Philosophy General
Every now and then I hear about some development methodology that tends to alter the way i think about designing web applications.  Two in particular are scrum and feature driven development.  Lately I've been experimenting with my own... read more
 
Page 1 of 3 1 2 3 > >>