<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adammer &#045; Blog &#187; DNN Tips</title>
	<atom:link href="http://www.adammer.com/blog/tag/dnn-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adammer.com/blog</link>
	<description>Official Adammer Blog</description>
	<lastBuildDate>Mon, 19 Dec 2011 23:54:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Empty Search Results in DNN 4.x</title>
		<link>http://www.adammer.com/blog/2009/07/empty-search-results-in-dnn-4-x/</link>
		<comments>http://www.adammer.com/blog/2009/07/empty-search-results-in-dnn-4-x/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 16:30:08 +0000</pubDate>
		<dc:creator>Adam Humphrey</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[DNN Tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.adammer.com/blog/?p=206</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/07/empty-search-results-in-dnn-4-x/' addthis:title='Empty Search Results in DNN 4.x' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div>When using the DotNetNuke 4.x search and no results are returned (search didn&#8217;t find content that matched the search criteria), this code will display &#8220;No Search Results Found&#8221; instead of the displaying an empty search results page. We&#8217;ve also modified the search result item layout to make the page easier to read. NOTE: DNN 4.x [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/07/empty-search-results-in-dnn-4-x/' addthis:title='Empty Search Results in DNN 4.x ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/07/empty-search-results-in-dnn-4-x/' addthis:title='Empty Search Results in DNN 4.x' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div><p>When using the DotNetNuke 4.x search and no results are returned (search didn&#8217;t find content that matched the search criteria), this code will display &#8220;No Search Results Found&#8221; instead of the displaying an empty search results page.</p>
<p>We&#8217;ve also modified the search result item layout to make the page easier to read.</p>
<p><strong>NOTE:</strong> DNN 4.x ONLY, not compatible with DNN 5.x.</p>
<ol>
<li>Download our custom <a href="/dnn/tips/searchresults/SearchResults.aspx">SearchResults.aspx</a> file.</li>
<li>Create a backup copy of you current file <code>DNNROOT\Admin\Search\SearchResults.aspx</code></li>
<li>Overwrite existing file with the downloaded file <code>DNNROOT\Admin\Search\SearchResults.aspx</code></li>
<li>Give it a try!</li>
</ol>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/07/empty-search-results-in-dnn-4-x/' addthis:title='Empty Search Results in DNN 4.x ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.adammer.com/blog/2009/07/empty-search-results-in-dnn-4-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full width DNN events calendar with 12px font</title>
		<link>http://www.adammer.com/blog/2009/07/full-width-dnn-events-calendar-with-12px-font/</link>
		<comments>http://www.adammer.com/blog/2009/07/full-width-dnn-events-calendar-with-12px-font/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 17:43:52 +0000</pubDate>
		<dc:creator>Adam Humphrey</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[DNN Tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.adammer.com/blog/?p=117</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/07/full-width-dnn-events-calendar-with-12px-font/' addthis:title='Full width DNN events calendar with 12px font' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div>We&#8217;ve noticed that most or our clients find the default DNN calendar font too small. That&#8217;s why we usually add our own Events Theme for use with our custom DNN skins. You can download it for free and see if it works for you. Leave a comment if you have any suggestions for improvement or [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/07/full-width-dnn-events-calendar-with-12px-font/' addthis:title='Full width DNN events calendar with 12px font ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/07/full-width-dnn-events-calendar-with-12px-font/' addthis:title='Full width DNN events calendar with 12px font' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div><p>We&#8217;ve noticed that most or our clients find the default DNN calendar font too small. That&#8217;s why we usually add our own Events Theme for use with our custom <a href="http://www.adammer.com/dnn/skins/">DNN skins</a>. You can <a href="http://www.adammer.com/blog/wp-content/uploads/2009/07/FullWidthLg.zip">download</a> it for free and see if it works for you.</p>
<p>Leave a comment if you have any suggestions for improvement or just want to say how much you liked it.</p>
<p><strong>Installation Instructions</strong><span id="more-117"></span></p>
<ol>
<li><a href="http://www.adammer.com/blog/wp-content/uploads/2009/07/FullWidthLg.zip">Dowload</a> our Custom Events Theme.</li>
<li>Extract downloaded file into  directory: DNNROOT\DesktopModules\Events\Themes\<br />
You should now have a new directory named FullWidthLg in the Events\Themes directory.<br />
The FullWidthLg directory should contain a file named FullWidthLg.css<br />
e.g. <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">DNNROOT\DesktopModules\Events\Themes\FullWidthLg\FullWidthLg.css</span></li>
<li>Apply the new theme to your Events Module.
<ol>
<li>Select <img src="/graphics/v.1.0.0/btn_settings.gif" alt="Settings" width="14" height="16" /> Settings from your Events Module.</li>
<li>Expand the Events Module Settings.</li>
<li>From the Theme/Skin select box, select FullWidthLg.</li>
<li>Click Update.</li>
</ol>
</li>
</ol>
<p>Leave a comment if you have any suggestions for improvement or just want to say how much you liked it.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/07/full-width-dnn-events-calendar-with-12px-font/' addthis:title='Full width DNN events calendar with 12px font ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.adammer.com/blog/2009/07/full-width-dnn-events-calendar-with-12px-font/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to add Flash Video (.flv) with controller to the Text/HTML Module in DNN</title>
		<link>http://www.adammer.com/blog/2009/07/how-to-add-flash-video-flv-with-controller-to-the-texthtml-module-in-dnn/</link>
		<comments>http://www.adammer.com/blog/2009/07/how-to-add-flash-video-flv-with-controller-to-the-texthtml-module-in-dnn/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 16:32:15 +0000</pubDate>
		<dc:creator>Adam Humphrey</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[DNN Tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.adammer.com/blog/?p=95</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/07/how-to-add-flash-video-flv-with-controller-to-the-texthtml-module-in-dnn/' addthis:title='How to add Flash Video (.flv) with controller to the Text/HTML Module in DNN' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div>This tutorial describes one of the many ways to add a Flash Video (.flv file) with video controller to the Text/HTML Module in DNN. We will use 5 files for this tutorial. FLVPlayer_Progressive.swf This is an Adobe created Flash file that will load our flash video and the video controller. Corona_Skin_2.swf This is the video [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/07/how-to-add-flash-video-flv-with-controller-to-the-texthtml-module-in-dnn/' addthis:title='How to add Flash Video (.flv) with controller to the Text/HTML Module in DNN ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/07/how-to-add-flash-video-flv-with-controller-to-the-texthtml-module-in-dnn/' addthis:title='How to add Flash Video (.flv) with controller to the Text/HTML Module in DNN' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div><p><a href="http://www.adammer.com/blog/wp-content/uploads/2009/07/FLVicon2.gif"><img class="alignright size-full wp-image-110" title="Flash Video Icon" src="http://www.adammer.com/blog/wp-content/uploads/2009/07/FLVicon2.gif" alt="Flash Video Icon" width="122" height="125" /></a>This tutorial describes one of the many ways to add a Flash Video (.flv file) with video controller to the Text/HTML Module in DNN.</p>
<p>We will use 5 files for this tutorial.<span id="more-95"></span></p>
<ol>
<li><a href="http://www.adammer.com/blog/wp-content/uploads/2009/07/FLVPlayer_Progressive.swf">FLVPlayer_Progressive.swf</a><br />
This is an Adobe created Flash file that will load our flash video and the video controller.</li>
<li><a href="http://www.adammer.com/blog/wp-content/uploads/2009/07/Corona_Skin_2.swf">Corona_Skin_2.swf</a><br />
This is the video controller Flash file that will overlay our video to allow users to Play/Pause, Seek, and Mute the Flash video</li>
<li><a href="http://www.adammer.com/blog/wp-content/uploads/2009/07/expressInstall.swf">expressInstall.swf</a><br />
This is another Adobe created Flash file that will communicate with the Adobe servers to install a Flash plugin if missing from the user&#8217;s browser.</li>
<li><a href="http://www.adammer.com/blog/wp-content/uploads/2009/07/swfobject.js">swfobject.js</a><br />
This is a JavaScript file that will write the code necessary for the object include. Developed by Geoff Stearns, Michael Williams, and Bobby van der Sluis. <a href="http://code.google.com/p/swfobject/" target="_self">http://code.google.com/p/swfobject/</a></li>
<li><a href="http://www.adammer.com/blog/wp-content/uploads/2009/07/OurVideo.flv">OurVideo.flv</a><br />
This is our Flash video. We used Adobe Media Encoder to convert from Quicktime (.mov) to Flash Video (.flv) but there are many applications that can do this video conversion</li>
</ol>
<p><strong>Prerequisite:</strong><br />
If you are using a brand new install if IIS, you will need to enable the .flv mime type. If your site is hosted by a 3rd party this step may not be necessary as they have most likely added the mime type for Flash video to your web server already.</p>
<p><strong>Adding .flv MIME type in IIS</strong></p>
<ol>
<li>Select the site to configure in IIS, right click and select &#8220;Properties&#8221;</li>
<li>Under HTTP Headers Tab, select &#8220;File Types&#8221; under the MIME Map section and select &#8220;New Type&#8221;</li>
<li>Type &#8220;.flv&#8221; as the associated extension and &#8220;video/x-flv&#8221; as the content type.</li>
<li>Select &#8220;OK&#8221; and you&#8217;re ready to fly! </li>
</ol>
<p><strong>STEP 1:</strong><br />
We need to upload the 5 files to our DNN server. By default DNN does not allow the upload of .flv and .js files using the DNN File Manager. You can add these extensions to the &#8220;File Upload Extensions&#8221; list at Host &gt; Host Settings &gt; Advanced Settings &gt; Other Settings &gt; File Upload Extensions, or you can FTP these files to your server.</p>
<ol>
<li>We will create a new folder DNNROOT\Portals\0\includes and upload swfobject.js into it.</li>
<li>We will create a new folder DNNROOT\Portals\0\videos and upload FLVPlayer_Progressive.swf, Corona_Skin_2.swf, expressInstall.swf, and OurVideo.flv into it.</li>
</ol>
<p><strong>STEP 2:</strong><br />
We will add the HTML code to the HTML/Text Module to play the Flash Video</p>
<ol>
<li>Create a new HTML/Text module on a DNN Page</li>
<li>Click &#8220;Edit Text&#8221; link</li>
<li>Click the &#8220;Source&#8221; button on the Editor. Located in the upper left-hand corner</li>
<li>Cut and Paste the following code into the Editor</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/Portals/0/includes/swfobject.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">object</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;400&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FLVPlayer&quot;</span> <span style="color: #000066;">classid</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;movie&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/Portals/0/videos/FLVPlayer_Progressive.swf&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;quality&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wmode&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;opaque&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;scale&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;noscale&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;salign&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lt&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FlashVars&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&amp;amp;MM_ComponentVersion=1&amp;amp;skinName=/Portals/0/videos/Corona_Skin_2&amp;amp;streamName=/Portals/0/videos/OurVideo&amp;amp;autoPlay=false&amp;amp;autoRewind=false&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;swfversion&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;8,0,0,0&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;expressinstall&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/Portals/0/videos/expressInstall.swf&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!--[if !IE]&gt;--&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">object</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;400&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;application/x-shockwave-flash&quot;</span> <span style="color: #000066;">data</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/Portals/0/videos/FLVPlayer_Progressive.swf&quot;</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;quality&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wmode&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;opaque&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;scale&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;noscale&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;salign&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lt&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FlashVars&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&amp;amp;MM_ComponentVersion=1&amp;amp;skinName=/Portals/0/videos/Corona_Skin_2&amp;amp;streamName=/Portals/0/videos/OurVideo&amp;amp;autoPlay=false&amp;amp;autoRewind=false&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;swfversion&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;8,0,0,0&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;expressinstall&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/Portals/0/videos/expressInstall.swf&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;</span>Content on this page requires a newer version of Adobe Flash Player.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.adobe.com/go/getflashplayer&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Get Adobe Flash player&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!--[if !IE]&gt;--&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">object</span>&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">object</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">swfobject.registerObject(&quot;FLVPlayer&quot;);</span>
<span style="color: #808080; font-style: italic;">//--&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<ol start="5">
<li>Click &#8220;Update&#8221; link</li>
</ol>
<p>That should be all you need. You should now see the Flash video with controller on your DNN page. The code should be fairly easy to modify if you need to change the location or your files or text that is displayed if the user does not have Flash installed.</p>
<p>Please leave a comment if you have any additional questions.</p>
<p><strong>UPDATE:</strong><br />
<strong>Hosting the .swf and .flv files on another server</strong></p>
<p>Below are instruction to host your flash video on another server but behave like it&#8217;s hosted on your server.</p>
<p><strong>Example:</strong><br />
www.OurServer.com (our DNN server)<br />
www.RemoteServer.com (some other server such as Amazon S3)</p>
<p>In this example we created a directory on www.RemoteServer.com named <code>/videos</code> and upload FLVPlayer_Progressive.swf, Corona_Skin_2.swf, expressInstall.swf, and OurVideo.flv</p>
<p>We kept the <code>swfobject.js</code> file on www.OurServer.com.</p>
<p>The update code will now look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/Portals/0/includes/swfobject.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">object</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;400&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FLVPlayer&quot;</span> <span style="color: #000066;">classid</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;movie&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.RemoteServer.com/videos/FLVPlayer_Progressive.swf&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;quality&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wmode&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;opaque&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;scale&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;noscale&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;salign&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lt&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FlashVars&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&amp;amp;MM_ComponentVersion=1&amp;amp;skinName=http://www.RemoteServer.com/videos/Corona_Skin_2&amp;amp;streamName=http://www.RemoteServer.com/videos/OurVideo&amp;amp;autoPlay=false&amp;amp;autoRewind=false&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;swfversion&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;8,0,0,0&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;expressinstall&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.RemoteServer.com/videos/expressInstall.swf&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!--[if !IE]&gt;--&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">object</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;400&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;application/x-shockwave-flash&quot;</span> <span style="color: #000066;">data</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.RemoteServer.com/videos/FLVPlayer_Progressive.swf&quot;</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;quality&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wmode&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;opaque&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;scale&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;noscale&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;salign&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lt&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FlashVars&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&amp;amp;MM_ComponentVersion=1&amp;amp;skinName=http://www.RemoteServer.com/videos/Corona_Skin_2&amp;amp;streamName=http://www.RemoteServer.com/videos/OurVideo&amp;amp;autoPlay=false&amp;amp;autoRewind=false&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;swfversion&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;8,0,0,0&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">param</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;expressinstall&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.RemoteServer.com/videos/expressInstall.swf&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;</span>Content on this page requires a newer version of Adobe Flash Player.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.adobe.com/go/getflashplayer&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Get Adobe Flash player&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!--[if !IE]&gt;--&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">object</span>&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">object</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">swfobject.registerObject(&quot;FLVPlayer&quot;);</span>
<span style="color: #808080; font-style: italic;">//--&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>Notice we have fully qualified the URI for the .swf and .flv files.</p>
<p>This should be all you need to host your Flash video on another server and have it look as though it is hosted on your server.</p>
<p><strong>Note:</strong> On some servers (due to their configuration), you may need to add a <a href="http://kb2.adobe.com/cps/142/tn_14213.html">crossdomain.xml</a> file to the root of the remote server to allow cross-domain access to your flash content.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/07/how-to-add-flash-video-flv-with-controller-to-the-texthtml-module-in-dnn/' addthis:title='How to add Flash Video (.flv) with controller to the Text/HTML Module in DNN ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.adammer.com/blog/2009/07/how-to-add-flash-video-flv-with-controller-to-the-texthtml-module-in-dnn/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>SQL code lists email addresses of all members of DNN security role by name</title>
		<link>http://www.adammer.com/blog/2009/06/sql-code-lists-email-addresses-of-all-members-of-dnn-security-role-by-name/</link>
		<comments>http://www.adammer.com/blog/2009/06/sql-code-lists-email-addresses-of-all-members-of-dnn-security-role-by-name/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 22:44:20 +0000</pubDate>
		<dc:creator>Adam Humphrey</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[DNN Tips]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.adammer.com/blog/?p=65</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/06/sql-code-lists-email-addresses-of-all-members-of-dnn-security-role-by-name/' addthis:title='SQL code lists email addresses of all members of DNN security role by name' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div>This is a very simple (and portable) SQL statement that will list the email addresses of all members of a DNN security role by the security role name. This is useful if you use 3rd party newsletter or email listserv software and need the email addresses of all members of a DNN security role. SELECT [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/06/sql-code-lists-email-addresses-of-all-members-of-dnn-security-role-by-name/' addthis:title='SQL code lists email addresses of all members of DNN security role by name ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/06/sql-code-lists-email-addresses-of-all-members-of-dnn-security-role-by-name/' addthis:title='SQL code lists email addresses of all members of DNN security role by name' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div><p>This is a very simple (and portable) SQL statement that will list the email addresses of all members of a DNN security role by the security role name.</p>
<p>This is useful if you use 3rd party newsletter or email listserv software and need the email addresses of all members of a DNN security role.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> u<span style="color: #66cc66;">.</span>Email <span style="color: #993333; font-weight: bold;">FROM</span> Users u<span style="color: #66cc66;">,</span> UserRoles ur<span style="color: #66cc66;">,</span> Roles r
<span style="color: #993333; font-weight: bold;">WHERE</span> r<span style="color: #66cc66;">.</span>RoleID <span style="color: #66cc66;">=</span> ur<span style="color: #66cc66;">.</span>RoleID <span style="color: #993333; font-weight: bold;">AND</span>
ur<span style="color: #66cc66;">.</span>UserID <span style="color: #66cc66;">=</span> u<span style="color: #66cc66;">.</span>UserID <span style="color: #993333; font-weight: bold;">AND</span>
r<span style="color: #66cc66;">.</span>RoleName <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Registered Users'</span></pre></div></div>

<p>You can replace <code>'Registered Users'</code> with any Security Role name.</p>
<p>This can be executed from the Host>SQL page or using the Microsoft SQL Server Management Studio.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/06/sql-code-lists-email-addresses-of-all-members-of-dnn-security-role-by-name/' addthis:title='SQL code lists email addresses of all members of DNN security role by name ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.adammer.com/blog/2009/06/sql-code-lists-email-addresses-of-all-members-of-dnn-security-role-by-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding HTML Form Submission to the Text/HTML module in DNN</title>
		<link>http://www.adammer.com/blog/2009/06/adding-html-form-submission-to-the-texthtml-module-in-dnn/</link>
		<comments>http://www.adammer.com/blog/2009/06/adding-html-form-submission-to-the-texthtml-module-in-dnn/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 16:10:41 +0000</pubDate>
		<dc:creator>Adam Humphrey</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[DNN Tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.adammer.com/blog/?p=38</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/06/adding-html-form-submission-to-the-texthtml-module-in-dnn/' addthis:title='Adding HTML Form Submission to the Text/HTML module in DNN' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div>Question: How can I add an HTML &#60;form&#62; element to the Text/HTML module in DNN? Problem: When editors add a &#60;form&#62;&#60;/form&#62; tag to the Source of the Text/HTML module, the &#60;form&#62; tags are removed after they click the Update link on the &#8220;Edit Text/HTML&#8221; form. Cause: ASP.NET only allows one form per page and by [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/06/adding-html-form-submission-to-the-texthtml-module-in-dnn/' addthis:title='Adding HTML Form Submission to the Text/HTML module in DNN ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2009/06/adding-html-form-submission-to-the-texthtml-module-in-dnn/' addthis:title='Adding HTML Form Submission to the Text/HTML module in DNN' ><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_google"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_evernote"></a><a class="addthis_button_favorites"></a><a class="addthis_button_compact"></a></div><p><strong>Question:</strong> How can I add an HTML <code>&lt;form&gt;</code> element to the Text/HTML module in DNN?</p>
<p><strong>Problem:</strong> When editors add a <code>&lt;form&gt;&lt;/form&gt;</code> tag to the Source of the Text/HTML module, the <code>&lt;form&gt;</code> tags are removed after they click the Update link on the &#8220;Edit Text/HTML&#8221; form.</p>
<p><strong>Cause:</strong> ASP.NET only allows one form per page and by default creates its own form just inside the  <code>&lt;body&gt;&lt;/body&gt;</code> tags.</p>
<p><strong>Solution:</strong> Here&#8217;s an example form we will add to our Text/HTML module.</p>
<p><span id="more-38"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://someURL.com&quot;</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;firstName&quot;</span>&gt;</span>Your First Name<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;firstName&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your First Name&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your First Name&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lasttName&quot;</span>&gt;</span>Your Last Name<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lasttName&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your Last Name&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your Last Name&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Submit Form&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Submit Form&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></div></div>

<p>Take note of the Form <code>method</code> and <code>action</code> values.</p>
<p>Locate your submit button input. In our example it is</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Submit Form&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Submit Form&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>Add the <code>onclick</code> method using the method and action values like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Send Form&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;this.form.method='post'; this.form.action='http://SomeURL.com/';this.form.submit(); /&gt;</span></span></pre></div></div>

<p>Next we remove the opening and closing <code>&lt;form&gt;&lt;/form&gt;</code>tags so we are left with the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;firstName&quot;</span>&gt;</span>Your First Name<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;firstName&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your First Name&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your First Name&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lasttName&quot;</span>&gt;</span>Your Last Name<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lasttName&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your Last Name&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your Last Name&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Send Form&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;this.form.method='post'; this.form.action='http://SomeURL.com/';this.form.submit();&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>We cut and paste this code into the Text/HTML Editor making sure to be in &#8220;Source&#8221; mode. (Make sure the &#8220;Source&#8221; button in the upper left-hand corner of the Editor is highlighted.)</p>
<p>If you need your action to be <code>get</code> not <code>post</code> you can change  <code>this.form.method='get'</code>. This will add the form values as URL parameters.</p>
<p>If you want your form to open a new window on submit you can add <code>this.form.target='blank'</code> as well.</p>
<p>Special thanks to Mitchel Sellers for his <a href="http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/45/allowing-html-form-submissions-from-dnn.aspx">blog about this subject</a>.</p>
<p><strong><span style="color:#900;">Update:</span></strong><br />
A word about <code>this.form.method='get'</code><br />
Some browsers (we&#8217;re not naming names but you know who you are), can&#8217;t handle the length of the <code>__VIEWSTATE</code> URL parameter which is sent when using the get method. In cases where we have to use the get method for forms, we add the following JavaScript code at the top of our form to clear the <code>__VIEWSTATE</code> value. This is not &#8220;best practices&#8221; but allows the solution above to work when using some &#8220;popular&#8221; browsers.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #006600; font-style: italic;">//&lt;![CDATA[</span>
document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;__VIEWSTATE&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #339933;">=</span><span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//]]&gt;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2009/06/adding-html-form-submission-to-the-texthtml-module-in-dnn/' addthis:title='Adding HTML Form Submission to the Text/HTML module in DNN ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.adammer.com/blog/2009/06/adding-html-form-submission-to-the-texthtml-module-in-dnn/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

