<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<rss version="2.0">
<channel>
<title>AdXpansion Frequently Asked Questions - The latest articles:</title>
<description>AdXpansion Frequently Asked Questions</description>
<link>http://help.adxpansion.com/faq</link>	<item>
		<title><![CDATA[How can I get invoices?]]></title>
		<description><![CDATA[Advertisers can access their own invoices from the Transaction History page. Simply click on the icon in the Invoice column next to the transaction that you want view or print.
]]></description>
		<link>http://help.adxpansion.com/faq/content/3/35/en/how-can-i-get-invoices.html</link>
		<pubDate>Tue, 13 Jul 2010 20:06:00 GMT</pubDate>
	</item>
	<item>
		<title><![CDATA[How to become an Affiliate?]]></title>
		<description><![CDATA[<p>
Affiliates can earn revenue for accounts referred to adXpansion.
</p>
<p>
Get paid for Advertiser deposits and Publisher payouts from the accounts you refer.
</p>
<p>
 
</p>
<p>
To become an Affiliate:
</p>
<p>
1 - You must have an account with AdXpansion.
</p>
<p>
2 - You must click on this link <a href="http://www.adxpansion.com/profile/become-affiliate" class="ext-link"><span class="icon">http://www.adxpansion.com/profile/<span class="searchword0">become</span>-<span class="searchword1">affiliate</span></span></a> to become an affiliate
</p>
<p>
3 - From the AdXpansion interface, click Affiliate located in the top-left menu
</p>
<p>
4 - Click MANAGE REFERRALS from the REFERRAL section. From here you will have your referral id and link which will look like: <em>http://www.adxpansion.com?<font size="2" style="background-color: #ffff00">rid=9999 </font></em>(9999 will be replaced by your actual referer id).
</p>
<p>
5 - Promote AdXpansion using your referral link.
</p>
<p>
 
</p>
<p>
For the period of 12 months - Affiliates earn 2% of Advertiser deposits 20% of our commission (6% gross) of Publisher payouts for each account referred to AdXpansion using their referral link.  
</p>
<p>
 
</p>
<p>
Coming Soon: 
</p>
<p>
1 - Creatives to use for promoting AdXpansion
</p>
<p>
2 - Reporting section to show your earnings from referalls.
</p>
<p>
 
</p>
]]></description>
		<link>http://help.adxpansion.com/faq/content/7/34/en/how-to-become-an-affiliate.html</link>
		<pubDate>Fri, 18 Jun 2010 19:16:00 GMT</pubDate>
	</item>
	<item>
		<title><![CDATA[AdultVideoScript How to setup FlowPlayer and show video player ads ?]]></title>
		<description><![CDATA[<p>
 
</p>
<h1>Setting Up FlowPlayer in AVS (<a href="http://www.adultvideoscript.com/products/avs/overview/">AdultVideoScript</a> )<br />
</h1>
<p>
 
</p>
<p>
Adult Video Script is easy to setup with an alternative video player. Here’s is a simple howto on how to integrate the FlowPlayer with Adult 
Video Script (removing the AVS flash player). 
</p>
<p>
 
</p>
<h3>Installing the FlowPlayer files on the server </h3>
<p>
 
</p>
<p>
First, get the latest version of the player from <a href="http://flowplayer.org/download/index.html">FlowPlayer website</a> . 
</p>
<p>
Upload the files in those locations:
</p>
<p>
<strong>/WHERE/AVS/IS/INSTALLED/media/player/flowplayer-3.2.2.swf</strong>
</p>
<p>
<strong>/WHERE/AVS/IS/INSTALLED/media/player/flowplayer.controls-3.2.1.swf 
</strong>(optional)
</p>
<p>
<strong>/WHERE/AVS/IS/INSTALLED/media/player/js/flowplayer-3.2.2.min.js</strong>
</p>
<p>
If you are using lighttpd pseaudo-streaming module, also install the pluigin for flowplayer. You can <a href="http://flowplayer.org/plugins/streaming/pseudostreaming.html">download it here</a>. Upload the file:
</p>
<p>
<strong>/WHERE/AVS/IS/INSTALLED/media/player/flowplayer.pseudostreaming-3.2.2.swf 
</strong>(optional) 
</p>
<p>
 
</p>
<h3>Create the Video Player template</h3>
<p>
 
</p>
<p>
In the directory  <strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/</strong> , create the file <strong>video_flowadx.tpl</strong> and add these lines:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			<p>
			&lt;script type=&#39;text/javascript&#39; src="{$baseurl}/media/player/js/flowplayer-3.2.0.min.js"&gt;&lt;/script&gt;<br />
			<br />
			&lt;a href="{$baseurl}/media/videos/flv/{$video.VID}.flv"<br />
			style="display: block; width: {$player_width}px; height:500px;" id="flowplay"&gt; &lt;/a&gt; <br />
			<br />
			&lt;script type=&#39;text/javascript&#39;&gt;<br />
			{literal}flowplayer("flowplay", { {/literal}<br />
			src: &#39;{$relative}/media/player/flowplayer-3.2.1.swf&#39;,<br />
			{literal}<br />
			wmode: &#39;transparent&#39;<br />
			},<br />
			{<br />
			clip:  {<br />
			autoPlay: true,   <br />
			autoBuffering: true <br />
			} <br />
			<br />
			});{/literal}<br />
			&lt;/script&gt;<br />
			</p>
			</td>
		</tr>
	</tbody>
</table>
<p>
If you modified your template, don&#39;t forget to configure the proper dimension for the flash player. Also, if you are using the lighttpd module to protect your content, follow the plugin instructions to setup the pseudostreaming properly. 
</p>
<p>
 
</p>
<h3>Setup your template to use the new player</h3>
<p>
 
</p>
<p>
Edit 
<strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/video.tpl</strong>
and<br />
replace following line:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			{include file=&#39;video_vplayer.tpl&#39;}<br />
			</td>
		</tr>
	</tbody>
</table>
<p>
with (look for <strong>all instances</strong>):
</p>
<table border="0" width="224" height="33" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			{include file=&#39;video_flowadx.tpl&#39;}<br />
			</td>
		</tr>
	</tbody>
</table>
<br />
<br />
<h3>Test your site to confirm the new player work</h3>
<p>
 
</p>
<p>
The FlowPlayer should now be used to display your movies. Make sure everything works the way you expect before continuing to the next step.
</p>
<p>
 
</p>
<h3>Configure AdXpansion video ads to display in your player</h3>
<p>
 
</p>
<p>
Once you are certain the video player works properly, you can make the necessary changes to the file <strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/video_flowadx.tpl</strong> , you can<a href="content/5/25/en/jwplayer-how-to-embed-ads-in-my-player.html"> refer to the instruction given in the other tutorial</a>  to get the proper code to add to your template. 
</p>
<p>
 
</p>
<p>
 
</p>
<h2>
Advanced Usage:
</h2>
<p>
 
</p>
<h3>Using mod_secdownload with flowplayer and AVS <br />
</h3>
<p>
If you are using mod_secdownload, you need to install and run a special flowplayer plugin called Secure Streaming.
</p>
<p>
First, <a href="http://releases.flowplayer.org/flowplayer.securestreaming/flowplayer.securestreaming-3.2.0.swf" target="_blank">download the pluging</a> and place it at the same location then the flowplayer flash file. <strong>/WHERE/AVS/IS/INSTALLED/media/player/flowplayer.rtmp-3.2.1.swf</strong>
</p>
<p>
 
</p>
<p>
Next, modify your video template <strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/video_flowadx.tpl</strong> . You will need to configure the token to be the same thing then what is configured in your lighttpd configuration.
</p>
<p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			<p>
			&lt;script type=&#39;text/javascript&#39; src="{$baseurl}/media/player/js/flowplayer-3.2.0.min.js"&gt;&lt;/script&gt;<br />
			&lt;script type=&#39;text/javascript&#39;<br />
			src=&#39;http://ads.adxpansion.com/public/js/showads.php?zone_id=65&amp;type=flowplayer&#39;&gt;&lt;/script&gt;<br />
			<br />
			&lt;a href="{$baseurl}/media/videos/flv/{$video.VID}.flv"<br />
			style="display: block; width: {$player_width}px; height:500px;" id="flowplay"&gt; &lt;/a&gt;<br />
			<br />
			&lt;script type=&#39;text/javascript&#39;&gt;<br />
			var tstamp={$smarty.now};
			</p>
			<p>
			{literal}flowplayer("flowplay", { {/literal}<br />
			src: &#39;{$relative}/media/player/flowplayer-3.2.1.swf&#39;,<br />
			{literal}<br />
			wmode: &#39;transparent&#39;<br />
			},<br />
			{<br />
			<strong>   plugins: {<br />
			secure: {<br />
			url: &#39;flowplayer.securestreaming-3.2.0.swf&#39;,<br />
			timestamp: tstamp.toString(16).toUpperCase(),<br />
			<font color="#ff0000"><span style="background-color: #ffff00">token: &#39;simplek&#39;</span></font><br />
			}<br />
			},</strong><br />
			<br />
			clip:  {<br />
			autoPlay: true,<br />
			autoBuffering: true<strong>,<br />
			urlResolvers: &#39;secure&#39;</strong><br />
			}<br />
			<br />
			});<br />
			$f().adxpansion();<br />
			{/literal}<br />
			&lt;/script&gt;<br />
			</p>
			</td>
		</tr>
	</tbody>
</table>
</p>
<p>
 
</p>
<h3>Using PseudoStreaming with lighttpd </h3>
<p>
 
</p>
<p>
If you want to allow your surfers to seek anywhere in yoru movies and have lighttpd configured accordingly, here&#39;s how t oconfigure the plugin properly:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			<p>
			&lt;script type=&#39;text/javascript&#39; src="{$baseurl}/media/player/js/flowplayer-3.2.0.min.js"&gt;&lt;/script&gt;<br />
			&lt;script type=&#39;text/javascript&#39;<br />
			src=&#39;http://ads.adxpansion.com/public/js/showads.php?zone_id=65&amp;type=flowplayer&#39;&gt;&lt;/script&gt;<br />
			<br />
			&lt;a href="{$baseurl}/media/videos/flv/{$video.VID}.flv"<br />
			style="display: block; width: {$player_width}px; height:500px;" id="flowplay"&gt; &lt;/a&gt;<br />
			<br />
			&lt;script type=&#39;text/javascript&#39;&gt;<br />
			{literal}flowplayer("flowplay", { {/literal}<br />
			src: &#39;{$relative}/media/player/flowplayer-3.2.1.swf&#39;,<br />
			{literal}<br />
			wmode: &#39;transparent&#39;<br />
			},<br />
			{<br />
			<strong>   plugins: {<br />
			      lighttpd: {        <br />
			              url: &#39;flowplayer.pseudostreaming-3.2.2.swf&#39;        <br />
			              }<br />
			},</strong><br />
			<br />
			clip:  {<br />
			autoPlay: true,<br />
			autoBuffering: true<strong>,<br />
			provider: &#39;lighttpd&#39;</strong><br />
			}<br />
			<br />
			});<br />
			$f().adxpansion();<br />
			{/literal}<br />
			&lt;/script&gt;<br />
			</p>
			</td>
		</tr>
	</tbody>
</table>
<p>
 
</p>
]]></description>
		<link>http://help.adxpansion.com/faq/content/5/31/en/adultvideoscript-how-to-setup-flowplayer-and-show-video-player-ads-.html</link>
		<pubDate>Wed, 16 Jun 2010 13:02:00 GMT</pubDate>
	</item>
	<item>
		<title><![CDATA[FlowPlayer: How to embed ads in my player?]]></title>
		<description><![CDATA[<p>
` 
</p>
<h1> FlowPlayer: How to embed ads in my player?</h1>
<p>
 
</p>
<h2>Adxpansion has made it very easy for publishers that use FlowPlayer to embed ads into their players.</h2>
<pre>
  
</pre>
<h2><font size="4">See a <a href="http://avs.sxx.com/video/3/test4" target="_blank">Demo Here</a></font><br />
</h2>
<p>
 
</p>
<h3>Step 1: Create a new 300x250 ad zone: </h3>
<p>
From the publisher interface, go through every step to obtain the proper linking code for a new 300x250 zone. 
</p>
<p>
 
</p>
<h3>Step 2: Obtain the zone_id from your generated ad zone code:<br />
</h3>
<p>
You will later on need the <strong>zone_id</strong> that is specified in the generated code. So take note of the zone_id to use it in Step 3.
</p>
<blockquote>
	<blockquote>
		<blockquote>
			<table border="0">
				<tbody>
					<tr style="background-color: #ffffcc">
						<td>&lt;!-- Generated by AdXpansion --&gt;<br />
						&lt;script type="text/javascript"  src="http://ads.adxpansion.com/public/js/showads.php?<font face="arial,helvetica,sans-serif" size="3"><font face="arial,helvetica,sans-serif" size="3" style="background-color: #ffff99" color="#ff0000">zone_id=9999</font></font>&amp;ver=1
						&lt;br&gt;&lt;a target="_top" href="http://www.adxpansion.com/" 
						style="background-color:#FFFFFF;color:#000000;font-size:9px;border:none;font-family:verdana,
						sans-serif;padding:0;margin:0;"&gt;ads by AdXpansion&lt;/a&gt;<br />
						&lt;!-- End of AdXpansion code --&gt; 
						<font face="arial,helvetica,sans-serif" size="3"><font face="arial,helvetica,sans-serif" size="3"><br />
						</font></font></td>
					</tr>
				</tbody>
			</table>
		</blockquote>
	</blockquote>
</blockquote>
<br />
<h3> Step 3: Insert the following javascript line on your website pages, before your player, but after loading the flowplayer javascript: </h3>
<p>
You need to insert this code and insert the zone_id obtained in step 2. Make sure you insert this code AFTER loading the flowplayer javascript:
</p>
<table border="0">
	<tbody>
		<tr style="background-color: #ffffcc">
			<td> <font face="arial,helvetica,sans-serif" size="3">&lt;script 
			type="text/javascript"   src="http://ads.adxpansion.com/public/js/showads.php?<font face="arial,helvetica,sans-serif" size="3" style="background-color: #ffff99" color="#ff0000">zone_id=9999</font>&amp;ver=1&amp;type=flowplayer"&gt;
			</font></td>
		</tr>
	</tbody>
</table>
<p>
 
</p>
<h3> Step 4: Make sure that your flowplayer code is set to make the flash player transparent: </h3>
<p>
 
</p>
<table border="0" width="100%" style="background-color: #ffffcc">
	<tbody>
		<tr>
			<td>flowplayer("player", { src: "http://dev.sxx.com/temp/jwp/flowplayer/flowplayer-3.2.1.swf",<strong> wmode: &#39;transparent&#39;</strong> });<br />
			<br />
			</td>
		</tr>
	</tbody>
</table>
<p>
 
</p>
<h3>Step 5: Tell flowplayer to load up the AdXpansion plugin: </h3>
<p>
Right after your flowplayer invocation code, tell flowplayer to load the adxpansion plugin. 
</p>
<table border="0" style="background-color: #ffffcc">
	<tbody>
		<tr>
			<td>$f().adxpansion();<br />
			</td>
		</tr>
	</tbody>
</table>
<table border="0" style="background-color: #ffffcc">
	<tbody>
		<tr>
		</tr>
	</tbody>
</table>
<p>
 
</p>
<br />
<h3>Complete Example:</h3>
<p>
 
</p>
<p>
Here&#39;s what a working code would look like 
</p>
<table border="0" style="background-color: #ffffcc">
	<tbody>
		<tr>
			<td>&lt;head&gt;<br />
			&lt;script type="text/javascript"<br />
			src="http://dev.sxx.com/temp/jwp/flowplayer/example/flowplayer-3.2.0.min.js"&gt;&lt;/script&gt;<br />
			<strong>&lt;script type=&#39;text/javascript&#39;<br />
			src=&#39;http://ads.adxpansion.com/public/js/showads.php?zone_id=65&amp;type=flowplayer&#39;&gt;&lt;/script&gt;</strong><br />
			&lt;/head&gt;<br />
			&lt;body&gt;<br />
			&lt;a href="http://vod01.netdna.com/vod/demo.flowplayer/flowplayer-700.flv"<br />
			style="display: block; width: 630px; height: 500px;" id="player"&gt; <br />
			&lt;/a&gt;<br />
			&lt;script type="text/javascript"&gt;<br />
			flowplayer("player", { src: "http://dev.sxx.com/temp/jwp/flowplayer/flowplayer-3.2.1.swf", <strong>wmode: &#39;transparent&#39;</strong> },{ <br />
			clip: {autoPlay: true}<br />
			});<br />
			<strong>$f().adxpansion();</strong><br />
			&lt;/script&gt;<br />
			&lt;/body&gt;<br />
			</td>
		</tr>
	</tbody>
</table>
<table border="0" style="background-color: #ffffcc">
	<tbody>
		<tr>
		</tr>
	</tbody>
</table>
<p>
 
</p>
<h2><strong>Advanced Usage:</strong></h2>
<p>
 
</p>
<h3>Using Flowplayer with mod_secdownload:</h3>
<p>
If you are using lighttpd with mod_secdownload, you need a special flowplayer plugin called Secure Streaming. You can download and read the setup instructions on this page:
</p>
<p>
<a href="http://flowplayer.org/plugins/streaming/secure.html" target="_blank">http://flowplayer.org/plugins/streaming/secure.html</a>  
</p>
<p>
 
</p>
<h3>Customizing the AdXpansion plugin:<br />
</h3>
<p>
It&#39;s possible to customize how the adxpansion plugin will display the ad inside your player. The syntaxt is: 
</p>
<p>
 
</p>
<table border="0" width="100%" style="background-color: #ffffcc">
	<tbody>
		<tr>
			<td>
			<p>
			$f().adxpansion({
			</p>
			<p>
			offsetx: POSITIVE_OR_NEGATIVE_NUMBER_OF_PIXEL,
			</p>
			<p>
			offsety: POSITIVE_OR_NEGATIVE_NUMBER_OF_PIXEL,
			</p>
			<p>
			displayonload: TRUE_OR_FALSE,
			</p>
			<p>
			header: &#39;HTML_OF_CUSTOM_AD_HEADER&#39;,
			</p>
			<p>
			footer: &#39;HTML_OF_CUSTOM_AD_FOOTER&#39; 
			</p>
			<p>
			});
			</p>
			<p>
			 
			</p>
			</td>
		</tr>
	</tbody>
</table>
<p>
 
</p>
<p>
Here&#39;s a brief explanation of each option:
</p>
<ul>
	<li>ofssetx: will move the ad in the player either left or right. Use negative number to move toward the left.</li>
	<li>offsety: will move the ad in the player either toward the top or the bottom. Use negative numbe to move up.</li>
	<li>displayonload: if set to true, the ad will get displayed before the movie start. This is not recommanded if your movie autostart.</li>
	<li>header: customize the look of the ad container. Be careful when setting this as you can really screw things up.</li>
	<li>footer: customize the footer of the ad container. Also be careful and talk with your account manager to approve changes you make to both footer and header. </li>
</ul>
<p>
 
</p>
<p>
Known Problem:
</p>
<p>
If you set your clip to not autostart and don&#39;t use a default splash image, the transparent player will cause the player to be ugly and not to display the first frame of the movie. The solution is to <a href="http://flowplayer.org/demos/installation/splash-image.html">use a splash imag</a> e. 
</p>
]]></description>
		<link>http://help.adxpansion.com/faq/content/5/32/en/flowplayer-how-to-embed-ads-in-my-player.html</link>
		<pubDate>Mon, 14 Jun 2010 18:28:00 GMT</pubDate>
	</item>
	<item>
		<title><![CDATA[AdultVideoScript How to setup JWPlayer and show video player ads in AVS?]]></title>
		<description><![CDATA[<p>
 
</p>
<h1>Setting Up JWPlayer in AVS (<a href="http://www.adultvideoscript.com/products/avs/overview/">AdultVideoScript</a> )<br />
</h1>
<p>
 
</p>
<p>
Adult Video Script 2.1 comes with JWPlayer3 as an alternative video player, but it&#39;s not setup as default. Here’s is a simple howto on how to integrate the JW Player with Adult 
Video Script (removing the AVS flash player). 
</p>
<p>
 
</p>
<p>
IF YOU ARE USING <strong>MOD_SECDOWNLOAD</strong> AND LIGHTTPD, READ ADVANCED CONFIGURATION AT THE END.
</p>
<p>
 
</p>
<h3>Confirm that the JWPlayer file is on the server </h3>
<p>
 
</p>
<p>
You can verify if the file is were it should be. Look for the file <strong> /WHERE/AVS/IS/INSTALLED/media/player/player_adv.swf
</strong>
</p>
<p>
If the file is not there, you can get the player from http://www.longtailvideo.com/players/jw-flv-player and place the flash player file on your server.
</p>
<p>
 
</p>
<h3>Create the Video Player template</h3>
<p>
 
</p>
<p>
In the directory  <strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/</strong> , create the file <strong>video_jwadx.tpl</strong> and add these lines:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			&lt;script type=&#39;text/javascript&#39; src="{$relative_tpl}/js/swfobject.js"&gt;&lt;/script&gt;<br />
			&lt;script type=&#39;text/javascript&#39;&gt;<br />
			var s1 = new SWFObject(&#39;{$relative}/media/player<br />
			/player_adv.swf&#39;,&#39;player&#39;,&#39;630&#39;,&#39;500&#39;,&#39;9&#39;);
			s1.addParam(&#39;allowfullscreen&#39;,&#39;true&#39;);<br />
			s1.addParam(&#39;allowscriptaccess&#39;,&#39;always&#39;);<br />
			s1.addParam(&#39;wmode&#39;,&#39;transparent&#39;);<br />
			s1.addVariable(&#39;autostart&#39;,&#39;true&#39;);<br />
			s1.addVariable(&#39;bufferlength&#39;, &#39;3&#39;);<br />
			s1.addVariable(&#39;file&#39;, &#39;{$baseurl}/media/videos/flv/{$video.VID}.flv&#39;);<br />
			s1.addVariable(&#39;streamer&#39;, &#39;lighttpd&#39;);<br />
			s1.addVariable(&#39;id&#39;, &#39;player&#39;);<br />
			s1.addVariable(&#39;token&#39;, &#39;K49sS9q0&#39;);<br />
			s1.addVariable("stretching", "uniform");<br />
			s1.addVariable(&#39;javascriptid&#39;,&#39;player&#39;);<br />
			s1.addVariable(&#39;enablejs&#39;,&#39;true&#39;);<br />
			s1.write(&#39;player&#39;);<br />
			&lt;/script&gt;<br />
			</td>
		</tr>
	</tbody>
</table>
<p>
If you modified your template, don&#39;t forget to configure the proper dimension for the flash player. Also, if you are using the lighttpd module to protect your content, you need to update the token. 
</p>
<p>
 
</p>
<h3>Setup your template to use the new player</h3>
<p>
 
</p>
<p>
Edit 
<strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/video.tpl</strong>
and<br />
replace following line:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			{include file=&#39;video_vplayer.tpl&#39;}<br />
			</td>
		</tr>
	</tbody>
</table>
<p>
with (look for all instances):
</p>
<table border="0" width="224" height="33" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			{include file=&#39;video_jwadx.tpl&#39;}<br />
			</td>
		</tr>
	</tbody>
</table>
<br />
<br />
<h3>Test your site to confirm new player work</h3>
<p>
 
</p>
<p>
The JwPlayer should now be used to display your movies. Make sure everything works the way you expect.
</p>
<p>
 
</p>
<h3>Configure AdXpansion video ads to display in your player</h3>
<p>
 
</p>
<p>
Once you are certain the video player works properly, you can make the necessary changes to the file <strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/video_jwadx.tpl</strong> , you can<a href="content/5/25/en/jwplayer-how-to-embed-ads-in-my-player.html"> refer to the instruction given in the other tutorial</a>  to get the proper code to add to your template. The final file should look like this:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			&lt;script type=&#39;text/javascript&#39; src=&#39;<br />
			http://ads.adxpansion.com/public/js/showads.php?<font style="background-color: #ffff99" color="#ff0000">zone_id=9999</font>&amp;ver=1&amp;type=jwplayer"&gt;<br />
			<br />
			&lt;script type=&#39;text/javascript&#39; src="{$relative_tpl}/js/swfobject.js"&gt;&lt;/script&gt;<br />
			&lt;script type=&#39;text/javascript&#39;&gt;<br />
			var s1 = new SWFObject(&#39;{$relative}/media/player/player_adv.swf&#39;,&#39;player&#39;,&#39;630&#39;,&#39;500&#39;,&#39;9&#39;);<br />
			s1.addParam(&#39;allowfullscreen&#39;,&#39;true&#39;);<br />
			s1.addParam(&#39;allowscriptaccess&#39;,&#39;always&#39;);<br />
			s1.addParam(&#39;wmode&#39;,&#39;transparent&#39;);<br />
			s1.addVariable(&#39;autostart&#39;,&#39;true&#39;);<br />
			s1.addVariable(&#39;bufferlength&#39;, &#39;3&#39;);<br />
			s1.addVariable(&#39;file&#39;, &#39;{$baseurl}/media/videos/flv/{$video.VID}.flv&#39;);<br />
			s1.addVariable(&#39;streamer&#39;, &#39;lighttpd&#39;);<br />
			s1.addVariable(&#39;id&#39;, &#39;player&#39;);<br />
			s1.addVariable(&#39;token&#39;, &#39;K49sS9q0&#39;);<br />
			s1.addVariable("stretching", "uniform");<br />
			s1.addVariable(&#39;javascriptid&#39;,&#39;player&#39;);<br />
			s1.addVariable(&#39;enablejs&#39;,&#39;true&#39;);<br />
			s1.write(&#39;player&#39;);<br />
			&lt;/script&gt;<br />
			</td>
		</tr>
	</tbody>
</table>
<p>
 
</p>
<h3>Advanced Configuration with mod_secdownlaod and lighttpd</h3>
<p>
 
</p>
<p>
If you are using mod_secdownload to prevent htlinking of your movies, you need to create a new configuration file. That can be done easily. You need to copy the file <strong>/WHERE/AVS/IS/INSTALLED/MEDIA/PLAYER/config.php</strong> to <strong>configjw.php</strong>
</p>
<p>
Edit the new file configjw.php, replace toward the end everything that start with &lt;xml&gt; and end with &lt;/xml&gt; with:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td> &lt;config&gt;<br />
			&lt;file&gt;&lt;?php echo $SD_URL; ?&gt;&lt;/file&gt;<br />
			&lt;image&gt;&lt;?php echo $config[&#39;TMB_URL&#39;]. &#39;/&#39; .$video_id. &#39;/default.jpg&#39; ?&gt;&lt;/image&gt;<br />
			&lt;autostart&gt;&lt;?php echo $player[&#39;autorun&#39;]; ?&gt;&lt;/autostart&gt;<br />
			&lt;bufferlength&gt;&lt;?php echo $player[&#39;buffertime&#39;]; ?&gt;&lt;/bufferlength&gt;<br />
			&lt;?php if ($config[&#39;lighttpd&#39;] == &#39;1&#39;): ;?&gt;               <br />
			&lt;streamer&gt;lighttpd&lt;/streamer&gt;<br />
			&lt;?php endif; ?&gt;<br />
			&lt;stretching&gt;uniform&lt;/stretching&gt;<br />
			&lt;/config&gt;</td>
		</tr>
	</tbody>
</table>
<p>
 
</p>
<p>
In the directory  <strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/</strong>
, create the file <strong>video_jwadx.tpl</strong> and add these lines:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			&lt;script type=&#39;text/javascript&#39; src=&#39;<br />
			http://ads.adxpansion.com/public/js/showads.php?<font style="background-color: #ffff99" color="#ff0000">zone_id=9999</font>&amp;ver=1&amp;type=jwplayer"&gt;<br />
			<br />
			&lt;script type=&#39;text/javascript&#39;  src="{$relative_tpl}/js/swfobject.js"&gt;&lt;/script&gt;<br />
			&lt;script type=&#39;text/javascript&#39;&gt;<br />
			var s1 = new 
			SWFObject(&#39;{$relative}/media/player/player_adv.swf&#39;,&#39;player&#39;,&#39;630&#39;,&#39;500&#39;,&#39;9&#39;);<br />
			s1.addParam(&#39;allowfullscreen&#39;,&#39;true&#39;);<br />
			s1.addParam(&#39;allowscriptaccess&#39;,&#39;always&#39;);<br />
			s1.addParam(&#39;wmode&#39;,&#39;transparent&#39;);<br />
			s1.addVariable(&#39;config&#39;, &#39;{$baseurl}/media/player/configjw.php?vkey={$video.VID}&#39;);<br />
			s1.addVariable(&#39;id&#39;, &#39;playeradx&#39;);<br />
			<em>s1.addVariable(&#39;javascriptid&#39;,&#39;playeradx&#39;);<br />
			s1.addVariable(&#39;enablejs&#39;,&#39;true&#39;);</em><br />
			&lt;/script&gt;
			</td>
		</tr>
	</tbody>
</table>
<p>
<em> The lines in italic are only required for jwplayer 3.</em>
</p>
<p>
 
</p>
<p>
Edit 
<strong>/WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/video.tpl</strong>
and<br />
replace following line:
</p>
<table border="0" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			{include file=&#39;video_vplayer.tpl&#39;}<br />
			</td>
		</tr>
	</tbody>
</table>
<p>
with (look for all instances):
</p>
<table border="0" width="224" height="33" style="background-color: #ffff99">
	<tbody>
		<tr>
			<td>
			{include file=&#39;video_jwadx.tpl&#39;}<br />
			</td>
		</tr>
	</tbody>
</table>
<p>
 
</p>
<p>
 
</p>
]]></description>
		<link>http://help.adxpansion.com/faq/content/5/30/en/adultvideoscript-how-to-setup-jwplayer-and-show-video-player-ads-in-avs.html</link>
		<pubDate>Fri, 11 Jun 2010 16:46:00 GMT</pubDate>
	</item>
</channel>
</rss>