Widget Installation

1. Unzip file MoviesForMyBlog.zip

2. Copy the scripts directory to the root of the blog site that contains easySlider1.5.js and jquery.js. Make sure to use these files because I have updated them to use the no conflict variable below.

3. Open up th site.master.cs file for the theme to add the jquery reference in the page load method at the top.

      HtmlGenericControl js = new HtmlGenericControl("script");
      js.Attributes["type"] = "text/javascript";
      js.Attributes["src"] = Request.ApplicationPath + "/scripts/jquery.js";
      Page.Header.Controls.Add(js);

      HtmlGenericControl js1 = new HtmlGenericControl("script");
      js1.Attributes["type"] = "text/javascript";
      js1.Attributes["src"] = Request.ApplicationPath + "/scripts/easySlider1.5.js";
      Page.Header.Controls.Add(js1);

      HtmlGenericControl js2 = new HtmlGenericControl("script");
      js2.Attributes["type"] = "text/javascript";
      js2.InnerText = "$j = jQuery.noConflict();";
      Page.Header.Controls.Add(js2);
     


4. Copy the App_WebReferences to the root directory of the blog or if it already exists copy the sub-folder moviesformyblognetflix into that folder. This web references directory contains the settings for the web service that MoviesForMyBlog plugin will pull from on moviesformyblog.com.

5. The other directory "Movies For My Blog" needs to be copied into the widgets directory.

6. Copy MoviesForMyBlog.cs file to “App_Code\Controls” Folder. This is a shared class and the plugin will not work without it.

7. After copying those 2 directories and 1 Class to your blog site the Movies For My Blog plugin will be available to add to your site.

8. You need to edit the web.config file to change this line and enable the SessionState in this web application.

   Old:
   <pages enableSessionState="false" enableViewStateMac="true" enableEventValidation="true">

   New: 
   <pages enableSessionState="true" enableViewStateMac="true" enableEventValidation="true">

All of the data for this application is stored in XML in the App_Data folder and is updated greater than 1 hour old or more based on settings to help lower the load on our servers.

Widget Configuration

After you add this widget to your blog you will need to go to the edit page to enable its functionality.

1. Click the “Get Login Tokens” link to get your Login Tokens. This enables the initial security to generate your authentication tokens for secure access to your Netflix Account.

2. Click the “Authorize Token” that will open a new browser and link you to Netflix to approve the MoviesForMyBlog application to query your account and response back your last movies you have watched. After authorizing it will send you to a blank browser screen to close out.

3. Last click the “Get Access Tokens” link to get the 3 components of all of the network calls this application will make on your behalf.

4. After this the plugin will work with default settings.

5. If the other settings are confusing let me know and I will post content about what each does.

For more information on the security protocol that this application uses in conjunction with Netflix please refer to http://oauth.net/ .If there is any additional information that you are requesting in regards to this application please post your questions on codeplex or email me at jason@indiefp.com.

MoviesForMyBlog utilizes the API from Netflix to bring data to your blog in real-time.

Last edited Jul 2, 2010 at 4:17 AM by jasond727, version 7

Comments

No comments yet.