<?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>akeller's world &#187; Wordpress</title>
	<atom:link href="http://akeller.eu/en/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://akeller.eu</link>
	<description>Was ich unbedingt mitteilen muß! Weblog von Andreas Keller</description>
	<lastBuildDate>Mon, 16 May 2011 17:30:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WP-PTViewer: Solution for 404 and new Function auto</title>
		<link>http://akeller.eu/en/wp-ptviewer-loesung-fuer-404-und-neue-funktion-auto/</link>
		<comments>http://akeller.eu/en/wp-ptviewer-loesung-fuer-404-und-neue-funktion-auto/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 16:47:32 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[PTViewer]]></category>

		<guid isPermaLink="false">http://akeller.eu/?p=32</guid>
		<description><![CDATA[The WP Plugin PTViewer generates an 404 error because ptviewer.jar is looking for a file named PTdef.html. How to avoid this and how to add the function auto-rotated you can find here.]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>As written, the reason for the 404 error is caused by the applet ptviewer.jar.</p>
<p>This error message the user didn’t see because the applet is running without any problems. Nevertheless, 404 messages are not satisfactory.</p>
<p>Finally, I find a solution by redirecting via .htaccess.</p>
<p><span id="more-32"></span>The following line must be inserted into the file .htaccess:</p>
<pre>RedirectMatch 301 ^(.*)/PTDefault.html$ XXX/PTDef.html</pre>
<p>The XXXX you have to adjust to the correct path, for example http://meinblog.de/panos/PTDef.html. In addition, there must exist of course also a file with the name PTDef.html. Just create a blank file and upload it.</p>
<p>Further information on RedirectMatch can be found on <a title="Info Redirectmatch" href="http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch">apache.org</a>.</p>
<p>After all, requests for PTDefault.html are now forwarded to one single file, it is not longer possible to use different default start values for different instances. Especially the auto-rotate function I would like to assign to each panorama separately. For this reason I made some small modifications in the script plugin-class.php of <a title="WP Plugin WP PTViewer" href="http://www.vincentprat.info/dev/wordpress-plugins/wp-ptviewer/">WP PTViewer</a>.</p>
<p>The file &#8220;plugin-class.php&#8221; is located in the directory includes:</p>
<p>Line 115 &#8216;auto&#8217; =&gt; &#8220;, insert:</p>
<pre>'horizon' =&gt; '',
'hfov' =&gt; '',
'auto' =&gt; '',
'width' =&gt; $this-&gt;options['default_applet_width'],
'height' =&gt; $this-&gt;options['default_applet_height'],</pre>
<p>Line 148, $auto add:</p>
<pre>if ($errors=='') {
$output .= $this-&gt;get_applet_html($width, $height, $image_url,
$imagewidth, $imageheight, $horizon, $hfov, $auto);
}</pre>
<p>Line 173 $output .= &#8220;&lt;li&gt;Auto: &#8221; . $auto . &#8220;&lt;/li&gt;&#8221;; insert:</p>
<pre>$output .= "&lt;li&gt;Horizontal FOV: " . $hfov . "&lt;/li&gt;";
$output .= "&lt;li&gt;Auto: " . $auto . "&lt;/li&gt;";
$output .= "&lt;li&gt;CSS class: " . $cssclass . "&lt;/li&gt;";</pre>
<p>Line 189, $auto add:</p>
<pre>function get_applet_html($applet_width, $applet_height,
$image_url, $image_width, $image_height, $horizon, $hfov , $auto) {</pre>
<p>Line 220 and Line 235 insert</p>
<p>$htmlCode .= &#8216;&lt;param name=&#8221;auto&#8221;    value=&#8221;&#8216; . $auto . &#8216;&#8221;&gt;&lt;/param&gt;&#8217;;:</p>
<pre>$htmlCode .= '&lt;param name="tiltmax" value="' . $tiltmax . '"&gt;&lt;/param&gt;';
$htmlCode .= '&lt;param name="auto"    value="' . $auto . '"&gt;&lt;/param&gt;';
$htmlCode .= '&lt;/applet&gt;';</pre>
<p>You can also download my modified <a title="Download modified plugin-class.php" href="/wp-content/uploads/plugin-class.txt">plugin-class.txt</a>. After downloading rename this file to plugin-class.php and place it in the directory …/plugins/wp-ptviewer/includes. It is maybe a good idea to rename the original file first or save it somewhere.</p>
<p>Now a new parameter (auto) is available.</p>
<p>Example:</p>
<pre>ptviewer href="http://meinblog.de/.../panorama.jpg"
imagewidth="x" imageheight="y" horizon="z" hfov="h" auto="0.1"]
Beschreibung [/ptviewer]</pre>
<p><a title="Auto-rotate in action" href="./panoramen-mit-dem-plugin-wp-ptviewer/">Here</a> you can see it in action.</p>
<p>A negative value for auto means a move to the left side at startup, a positive value to the right. The speed depends on the value.</p>
<p>If this article helped you, please refer to it or write a comment. As you can see, this weblog is quite young and I welcome any feedback. <img src='http://akeller.eu/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Thanks to <a title="Vinvent Prat" href="http://www.vincentprat.info/">Vincent Prat</a> for making WP-PTViewer.</p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://akeller.eu/en/wp-ptviewer-loesung-fuer-404-und-neue-funktion-auto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PTViewer: 404 PTDefault.hmtl not found</title>
		<link>http://akeller.eu/en/ptviewer-404-ptdefaulthmtl-not-found/</link>
		<comments>http://akeller.eu/en/ptviewer-404-ptdefaulthmtl-not-found/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 21:23:49 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Panorama]]></category>
		<category><![CDATA[PTViewer]]></category>

		<guid isPermaLink="false">http://akeller.eu/?p=31</guid>
		<description><![CDATA[

This article is only available in German, but you can find my solution for the 404-probleme here.


]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>This article is only available in German, but you can find my solution for the 404-probleme <a href="/en/wp-ptviewer-loesung-fuer-404-und-neue-funktion-auto/">here</a>.</p>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://akeller.eu/en/ptviewer-404-ptdefaulthmtl-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

