Launched New Online Presence for Family Optical Centre Powered by ColdFusion + Mura CMS

Family Optical Centre, Inc. has officially launched their first ever online presence at www.familyopticalcentre.com. Family Optical Centre has been a part of the Rockford-area community for over forty-five years and currently operates three locations throughout the area. If you're in the market for some new frames and/or lenses, you might be interested in taking advantage of some of their Special Offers too.

The site is powered by Adobe® ColdFusion® and Microsoft® SQL Server with online content management provided via Mura CMS. Talented artist and designer Greg L. provided an elegant, yet simple design which I quickly and easily converted into HTML, CSS and Mura CMS templates.

Congratulations to the team at Family Optical Centre on your new online presence. Best wishes for continued success!

Family Optical Centre
Designer: Greg L. | Developer: Steve Withington

MuraMediaPlayer Plugin Released for ColdFusion-Powered Mura CMS

I was finally able to finish up my MuraMediaPlayer plugin for Mura CMS. This plugin uses JW Player™, the Internet's most popular and flexible media player. It supports playback of any format the Adobe Flash Player can handle (FLV, MP4, MP3 and AAC). It also supports RTMP, HTTP, live streaming, a wide range of settings and more.

This plugin is available in the Mura CMS App Store under plugins. Since the primary guts of the plugin are driven by my cfMediaPlayer project hosted on RIAForge (a ColdFusion wrapper of the JW Player™), I'm posting a copy of the license here just so there's no confusion.

License

By using MuraMediaPlayer, you agree to the 'non-commercial' license found at https://creativecommons.org/licenses/by-nc-sa/3.0/. For corporate use or if you're planning to generate revenue from your site (e.g., by running advertisements on the page, selling anything, etc.) you will need to buy a license for JW Player™. To obtain a commercial license of the JW Player™, please visit https://longtailvideo.com/players/jw-flv-player/commercial-license/

Installation

Installing the plugin is pretty simple. I've created a brief video tutorial and also included an outline of some simple steps to follow:

Installing MuraMediaPlayer

  1. Download the plugin from the Mura CMS App Store's plugins section
  2. Note the location of the 'muramediaplayer.zip' file that you downloaded
  3. Log in to your Mura CMS Admin area
  4. Click 'Site Settings' found on the top-right portion of the screen on the yellow bar
  5. Select the 'Plugins' tab
  6. 'Browse' to the location of the 'muramediaplayer.zip' file and select it
  7. Click 'Deploy' and the 'Plugin Settings' form should appear
  8. If you want to change the 'Plugin Name,' feel free to do so
  9. You can simply leave the 'Load Priority' alone or change it to anything you want to be if you have other plugins that require loading ahead of it
  10. If you're Mura CMS install is using Amazon S3 for file storage and you've set up an Amazon CloudFront, you can enter the 'Cloud URL.' Otherwise, leave it blank.
  11. If you're Mura CMS install is using Amazon S3 for file storage, you have an Amazon CloudFront set up and you've setup a Streaming Distribution to deliver content to end users in real time, you can enter the 'Streaming URL.' Otherwise, leave it blank.
  12. Under 'Site Assignments,' select the site(s) you wish to enable the plugin to run on.
  13. Click 'Update' when finished.
  14. That's it! You're ready to create MuraMediaPlayer pages and/or use a new [mura] tag method that is now available to you.

Please visit Amazon for more information about their S3 and CloudFront services.

Usage/Instructions

Detailed instructions for using the plugin are available at https://www.getmura.com/index.cfm/app-store/plugins/muramediaplayer/documentation/. In addition, instructions can be found after you install the plugin simply by logging into the Admin area, click 'Plugins' (or go to 'Site Settings', then select 'Plugins' tab), then click the 'MuraMediaPlayer' link.

How to Strip/Remove the SiteID From the URL in Mura CMS

The first step in removing the SiteID from the URL in Mura CMS is to edit the file located at /config/settings.ini.cfm. Find the 'siteidinurls' attribute and set it to read siteidinurls=0. If you don't see this attribute, you might be using an older version of Mura, and you should probably upgrade your install. If for some reason, you cannot upgrade your install, then read this Mura blog posting titled Removing the SiteID from URLs in Mura.

Once this is done, you're usually pretty good to go. However, you can still actually navigate to your pages with the SiteID in the URL. In fact, when you preview your site from the Admin area, it usually includes the SiteID and someone expressed a desire to "fix" this for search engine optimzation (SEO), analytics, etc.

This is actually pretty easy to do by adding a few lines of code to your Mura CMS templates. The easiest thing to do would be to probably just add this to your 'html_head.cfm' file if you use it.


<cfscript>
    hasSiteIDinURL = false;
    if ( not application.configBean.getSiteIDinURLs() ) {
        urlstr = getPageContext().getRequest().getRequestURL();
        idx = listFindNoCase(getPageContext().getRequest().getRequestURL(), event.getSite().getSiteID(), '/');
        if ( idx gt 0 ) {
            hasSiteIDinURL = true;
            urlstr = listDeleteAt(urlstr, idx, '/');
            if ( len(trim(cgi.query_string)) ) {
                urlstr = urlstr & '?' & cgi.query_string;
            };
        };
    };
</cfscript>
<cfif hasSiteIDinURL><cflocation url="#urlstr#" addtoken="false" statuscode="301" /></cfif>

Hope this helps!

More Entries

© 2026, Stephen J. Withington, Jr.  |  Hosted by Hostek.com

Creative Commons License   |   This work is licensed under a Creative Commons Attribution 3.0 Unported License.