Viviti Navigation Component Hover Menus

Posted on April 16, 2009 at 03:25PM

Recently there have been some customers that have been asking if there's anyway to have javascript hover menus for their navigation on their Viviti websites. During the last release we've made the jQuery Superfish plugin available on your websites so that it's easy to get it working with as little work as possible.

In order to activate the hover menus for all of your navigation components you'll need to follow the directions below:

  1. Go to the My Website toolbar menu, and click on Edit Theme Source Code.
  2. Click on the default.html in the table that lists your theme files.
  3. Add the following code below code inside of the <head> element.    
    <script type="text/javascript" src="/extras/js/superfish.js"></script>
    <script type="text/javascript"> $j(function(){ $j("ul.navigation").superfish() });</script>
    
  4. Click the Save button at the bottom of the dialog.

The page should reload and any nested menus in your Navigation Component will now be activated when the mouse hovers overtop of the label.

If you just want the hover menu activated on one specific Navigation Component, you'll first need to get the CSS ID of the component. To do this, you'll need to:

  1. Click the collapse component button in the Viviti status bar, so that the components ID are displayed.
  2. Select and copy the ID into your clipboard (it should look similar to #component_0000)
  3. Go to the My Website toolbar menu, and click on Edit Theme Source Code.
  4. Click on the default.html in the table that lists your theme files.
  5. You'll now need to add the following code inside of the <head> element:
    <script type="text/javascript" src="/extras/js/superfish.js"></script>
    <script type="text/javascript"> $j(function(){ $j("#component_0000 .navigation").superfish() });</script>
    
  6. The second line of the above code needs to have #component_0000 replaced with whatever you copied as the components CSS ID.
  7. Click the Save button at the bottom of the dialog.

Superfish also has a variety of options that can be tweaked. A list of these options are available on the Superfish documentation page.

Any questions, comments, problems can posted on our Viviti forum, to keep things organized.

Markaby and Rails 2.3.2

Posted on April 16, 2009 at 10:08AM

I just pushed up some fixes to my Github repo for use with 2.3.2.

The changes made are not backwards compatible with older versions of rails. If you're using an older version of rails and are following my repository you should not upgrade to this version unless you're updating to the latest version of rails.

http://github.com/dinsley/markaby/tree/master

If anyone finds any problems, just let me know.

SWFUpload and Flash 10

Posted on October 20, 2008 at 09:39AM

With the recent release of Flash 10 by Adobe, a change in security regarding FileReference.browse broken SWFUpload. The details of the security changes are out lined at the following address: 

http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html#head3

Any existing content that invokes a browse dialog box using FileReference.browse or File Reference.download outside of an event triggered by user interaction will need to be updated. The dialog box now has to be invoked directly through a button, keyboard shortcut, or another event directly initiated by the user on the flash video.

If you're using a image button for your 'File selection' link, you'll need to add the following to your SWFUpload instance settings:

      button_image_url: "../images/buttons/add_files.png",
      button_width: "80",
      button_height: "30",
      button_placeholder_id: "swfuploadContainer"

The button image should be formatted as Active, Hover, Click, and Disabled states. An example is included in the samples/buttons directory from SWFUpload trunk:

If you're just using a text link for triggering the selectFiles dialog, you can just use the following settings:

      button_text: "Select files for upload",
      button_placeholder_id: "swfuploadContainer"

The button_placeholder_id specified will be replaced with the flash object that is not the selectFiles link.

You'll need the latest version of SWFUpload in order to make these changes. You can checkout the latest version by issuing the following command:

svn checkout http://swfupload.googlecode.com/svn/swfupload/trunk/ swfupload

Native OS X gitk clone

Posted on September 12, 2008 at 01:47PM

Github is currently featuring an awesome native OS X gitk clone. The application matches most of the feature set of gitk as far as I can see, and it also loads up the repositories quite a bit faster.

Gitx

I'll definitely be using this instead of gitk from now on. You can download the latest stable release by clicking here, or take a look at the project page on by visiting http://github.com/pieter/gitx/wikis.

Markaby in Rails 2.1 RC1

Posted on May 29, 2008 at 05:26PM

If you're needing to use Markaby with the latest Rails release candidate, you can clone my git repository by issuing the following command:

git clone git://github.com/dinsley/markaby.git

This repository is a fork of James Golick's fixes for Rails 2.0.2. If you're interested in what changes were made to fix it, you can check out the project page at: http://github.com/dinsley/markaby/tree/master

Enjoy!

View older posts »

Music

OH MYby Sweatshop UnionPlayed on 2009/03/24 at 05:26PM
Goldrushby Sweatshop UnionPlayed on 2009/03/24 at 05:23PM
Nowby Sweatshop UnionPlayed on 2009/03/24 at 05:20PM
Digital Loveby Daft PunkPlayed on 2009/03/10 at 03:26PM
Insomniaby FaithlessPlayed on 2009/03/10 at 03:17PM