…track some of the various activities on the site. Remember we're navigating to viget.com which already loads jQuery:
src/rules.js
(function($) { // Track clicks on outbound links $("body").delegate("a", "click", function(e) { if (this.hostname === ' viget.com') return;
e.preventDefault(); _gaq.push([ '_trackEvent', 'Outbound Links', 'Click', …
…track some of the various activities on the site. Remember we're navigating to viget.com which already loads jQuery:
src/rules.js
(function($) { // Track clicks on outbound links $("body").delegate("a", "click", function(e) { if (this.hostname === ' viget.com') return;
e.preventDefault(); _gaq.push([ '_trackEvent', 'Outbound Links', 'Click', …
…track some of the various activities on the site. Remember we're navigating to viget.com which already loads jQuery:
src/rules.js
(function($) { // Track clicks on outbound links $("body").delegate("a", "click", function(e) { if (this.hostname === ' viget.com') return;
e.preventDefault(); _gaq.push([ '_trackEvent', 'Outbound Links', 'Click', …
I've already talked about the EE setup for the new viget.com, but now I want to talk about the code. It took a little longer than I wanted to get to it, but let's finally talk templates and custom addon development.
Templates
Here is what our template structure looks like:
about
careers
index
team
_blog_entries
core
404
author-rss
blogs
careers_feed
index
rss
advance
index
extend
index
flourish
index
inspire
index
work
Switch the old viget.com to use Disqus comments
Recreate the old viget.com locally
Upgrade to EE 2.4
Create new channel structure
Migrate the blogs from 5 weblogs, to 1 channel with a category for each of the 4 blogs (we dropped 1 blog)
Build all the templates
Add all the new content
Right before launch, manually insert the new blog posts (since we were using Disqus and it was tied to the entry ID)
Why Disqus?
A couple of reasons:
We liked the social integration.
Let's look at a sample (made up) bug report. First, the bad versions: "The Viget.com Extend blog is not working," or "The links on Extend blog posts are broken."
Now here's a more helpful version of these bug reports:
Overview: The headlines on all posts on the Viget.com Extend blog index page appear to be linked to www.viget.com rather than to the individual blog post page.
Tested browser and OS: Chrome 16.0.912.63, Mac OSX
Steps to reproduce:
Went …