<?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; Tutorials</title>
	<atom:link href="http://www.adammer.com/blog/tag/tutorials/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>Adammer NavMenu Documentation</title>
		<link>http://www.adammer.com/blog/2011/10/adammer-navmenu-documentation/</link>
		<comments>http://www.adammer.com/blog/2011/10/adammer-navmenu-documentation/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 19:40:08 +0000</pubDate>
		<dc:creator>Adam Humphrey</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[DNN skins]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.adammer.com/blog/?p=369</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.adammer.com/blog/2011/10/adammer-navmenu-documentation/' addthis:title='Adammer NavMenu Documentation' ><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>Complete documentation for the Adammer NavMenu DNN skin object.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2011/10/adammer-navmenu-documentation/' addthis:title='Adammer NavMenu Documentation ' ><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/2011/10/adammer-navmenu-documentation/' addthis:title='Adammer NavMenu Documentation' ><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><h4>Overview</h4>
<p>The Adammer CSS NavMenu creates unordered lists that are styled entirely by CSS for displaying navigation within our custom and commercial DotNetNuke skins.</p>
<p>The hover/fly-out solution is modeled after &#8220;Son of Suckerfish&#8221; using embedded unordered lists. This solution does not require any external JavaScript. Set <code>navType="Hover"</code> for this type of menu.<br />
<span id="more-369"></span></p>
<h4>Using the NavMenu in Our Skins</h4>
<p>To use the Adammer NavMenu skin object in our skins you need only register it and include the tag that calls it in the skin .ascx file:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;%@ Register TagPrefix<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Adammer&quot;</span> Namespace<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Adammer.DNN.Skins&quot;</span> Assembly <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;Adammer.DNN.NavMenu&quot;</span> %&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;Adammer:NavMenu <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nav&quot;</span> Level<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0-0&quot;</span> <span style="color: #000066;">Type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Tabs&quot;</span> ExcludeTabs<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Admin,Host&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>The two lines above will display the top-level (parent) tabs from the portal. To include additional levels, you add additional properties that identify the levels and feature you want displayed.</p>
<p>The line below will display the first through third level under the parent tabs (which are at level zero):</p>
<p><code>&lt;Adammer:NavMenu id="nav" Level="1-3" Type="Tabs" ExcludeTabs="Admin,Host" runat="server" /&gt;</code></p>
<p>Always specify the <code><strong>Level</strong></code> with a starting and ending range, even if it is only one level that you want to display. Along with the Level property, there are additional properties to control the <code><strong>NavType</strong></code> of the menu, along with <code><strong>ExcludeTabs</strong></code> and <code><strong>IncludeTabs</strong></code>, which will assist in keeping only the tabs that you want to be rendered on a specific menu instance.</p>
<h4>Property Definitions</h4>
<p><code><strong>ID</strong></code> &#8211; Set this property to place an ID on the rendered control. This is needed to reference the different instances of the control in the CSS file.</p>
<p><code><strong>Level</strong></code> &#8211; A number from 0 to n to identify what level of tabs should be displayed. Specify this setting with a starting and ending level. Level=&#8221;0-0&#8243; will only display the root tabs. Level=&#8221;1-3&#8243; will display the 1st through 3rd levels.</p>
<p><code><strong>NavType</strong></code> -</p>
<p style="padding-left: 30px;"><code><strong>Tabs</strong></code> &#8211; Will display a list of your links that can be configured to look like tabs that are defined in the CSS file. The vertical or horizontal orientations are accomplished through CSS mostly by setting a width on the main container.</p>
<p style="padding-left: 30px;"><code><strong>ActiveChildTabs</strong></code> &#8211; Used for displaying a list of tabs that has the currently active tab as a parent.</p>
<p style="padding-left: 30px;"><code><strong>Hover</strong></code> &#8211; Used if you want to set the menu to use embedded Unordered Lists with detection to add the mouse-overs for IE browsers.</p>
<p style="padding-left: 30px;"><code><strong>SelectList</strong></code> &#8211; Can be used to display all of the tabs in a single select box.</p>
<p style="padding-left: 30px;"><code><strong>Template</strong></code> &#8211; The template type of menu allows you to specify an external template file so that you can completely configure the output of the menu including layout, styles, etc.</p>
<p><code><strong>IncludeTabs</strong></code> &#8211; A list of tab names separated by commas that would be the only ones loaded in this instance of the control.</p>
<p><code><strong>ExcludeTabs</strong></code> &#8211; A list of tab names separated by commas that will be excluded from all the other tabs that are loaded in this instance of the control.</p>
<p><strong>Note:</strong> you can also use regular expressions to define includes and excludes for your menus.</p>
<p><code><strong>CacheTabs</strong></code> &#8211; If set to true will cache the tab generation process so that the menu does not have to be rebuilt on every request. Set this to true after you have your menu working like you want.</p>
<p><code><strong>DisplayIcon</strong></code> &#8211; If set to true it will use the Icon file that is assigned to the Page in Page Settings.</p>
<p><code><strong>HideTabName</strong></code> &#8211; If set to true, this property will hide the name of the tab. This is usually used in conjunction with the <code>DisplayIcon</code> setting to make image type menus.</p>
<p><code><strong>HideTabNamesByLevel</strong></code> &#8211; Set this to a range of levels that you want to hide tab names on. This is useful for displaying images on the parent, and still showing the names on child menus.</p>
<p><code><strong>ShowHiden</strong></code> &#8211; If set to true, this property will also include tabs/pages in the menu that have been set to hidden in the Page Settings.</p>
<p><code><strong>OnlyExpandActive</strong></code> &#8211; Set this to true if you want the child items in a single instance to only be shown after the parent is clicked. This is usually used in a vertical navigation to give the navigation the feel of an expanding type tree.</p>
<p><code><strong>DisplayRoles</strong></code> &#8211; A list of security role names separated by commas that will be allowed to see this instance of the menu. This allows you to display different menus for different roles. This property can also use RegEx wildcards.</p>
<p>Example: <code>DisplayRoles="IT_.*"</code> will display the menu instance for any user in a Role that begins with &#8220;IT_&#8221;.</p>
<p><code><strong>DisplayPaths</strong></code> &#8211; A list of URL paths separated by commas that will be allowed to see this instance of the menu. This allows you to display different menus for different URLs. This property can also use RegEx.</p>
<p>Example: <code>"forums.*"</code>, will allow this instance of the menu to only be displayed if the URL has &#8220;Forums&#8221; in it).</p>
<p><code><strong>Replacements</strong></code> &#8211; A comma separated list of search=replace pairs. This is useful if you don&#8217;t like something about the output of the menu, but don&#8217;t have access to change it through some other property. This property can also use RegEx.</p>
<p>Example: If you wanted to replace the word Home with the word Start you would use <code>Replacements="Home=Start"</code>.</p>
<p><code><strong>TemplateFile</strong></code> &#8211; Specify the Filename of the Template to be used for this instance.</p>
<p><code><strong>ShowType</strong></code> &#8211; This property was added to support using two instances of the menus on the same page as in the case when you want to display root navigation in one instance and child navigation in another, with the child instance only displaying the links for the currently active root.</p>
<p>Note: This setting is only valid when using the <code>"Tabs"</code> NavType.</p>
<p style="padding-left: 30px;"><code><strong>WithActiveParent</strong></code> &#8211; This value will render all the active children of the currently active tab. If you are using two instances of the menu (one for parent and one for child, then you will most likely set <code>ShowType="WithActiveParent"</code> on your child menu.</p>
<p style="padding-left: 30px;"><code><strong>ChildrenOnly</strong></code> &#8211; This value will make the menu show only the children of the tabs specified in the <code>IncludedTabs</code> property. It is useful if you want to target a specific section of the tab hierarchy.</p>
<p style="padding-left: 30px;"><code><strong>Always</strong></code> &#8211; This will make the menu always render whatever levels are specified. It is the default and is not normally set explicitly.</p>
<h4>Creating Hover Fly-out Navigation (Suckerfish)</h4>
<p>Example CSS Used in Hover Type Menu:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*-- Set bottom margin and color of menu that does not contain menu items --*/</span>
<span style="color: #cc00cc;">#nav</span> ul <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Set line height --*/</span>
<span style="color: #cc00cc;">#nav</span> li <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">transparent</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Font for top menu items --*/</span>
<span style="color: #cc00cc;">#nav</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Verdana</span><span style="color: #00AA00;">,</span> Geneva<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CCC</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">graphics/menu_divide.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #993333;">center</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">26px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Second-level list container --*/</span>
<span style="color: #cc00cc;">#nav</span> li ul <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-999em</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">167px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1000</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Second-level menu items --*/</span>
<span style="color: #cc00cc;">#nav</span> li li a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">150px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">11px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#E6E6E6</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Verdana</span><span style="color: #00AA00;">,</span> Geneva<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Hover style for menu items --*/</span>
<span style="color: #cc00cc;">#nav</span> li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FAFAFA</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Top-level selected menu items --*/</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #6666ff;">.SelectedTab</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Second-level selected menu items --*/</span>
<span style="color: #cc00cc;">#nav</span> li li<span style="color: #6666ff;">.SelectedTab</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CCC</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Third-level selected menu items --*/</span>
<span style="color: #cc00cc;">#nav</span> li li li<span style="color: #6666ff;">.SelectedTab</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#CCC</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Hover style for selected menu items --*/</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #6666ff;">.SelectedTab</span> a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FAFAFA</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Font color for disabled tabs --*/</span>
<span style="color: #cc00cc;">#nav</span> <span style="color: #6666ff;">.DisabledTab</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- No need to change these hover classes unless you need more than 4 levels --*/</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #3333ff;">:hover </span>ul ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #3333ff;">:hover </span>ul ul ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #3333ff;">:hover </span>ul ul ul ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #6666ff;">.iehover</span> ul ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #6666ff;">.iehover</span> ul ul ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #6666ff;">.iehover</span> ul ul ul ul<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-999em</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Set where the first drop-down hover menu starts along the y axis --*/</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #3333ff;">:hover </span>ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #6666ff;">.iehover</span> ul <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">26px</span><span style="color: #00AA00;">;</span>left<span style="color: #00AA00;">:</span><span style="color: #933;">-1px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*-- Set where the first drop-down hover menu starts along the x axis --*/</span>
<span style="color: #cc00cc;">#nav</span> li li<span style="color: #3333ff;">:hover </span>ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li li li<span style="color: #3333ff;">:hover </span>ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li li<span style="color: #6666ff;">.iehover</span> ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#nav</span> li li li<span style="color: #6666ff;">.iehover</span> ul <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>left<span style="color: #00AA00;">:</span><span style="color: #933;">166px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>The Adammer CSS NavMenu is licensed through <a title="Snapsis Software" href="http://www.snapsis.com/">Snapsis Software</a>.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.adammer.com/blog/2011/10/adammer-navmenu-documentation/' addthis:title='Adammer NavMenu Documentation ' ><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/2011/10/adammer-navmenu-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>

