<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>Last 10 Submissions RSS Feed</title>
	<link><![CDATA[http://www.etomite.com/index.php?app=downloads&module=search&section=search&do=last_ten]]></link>
	<pubDate>Fri, 03 Sep 2010 05:06:38 +0000</pubDate>
	<ttl>1800</ttl>
	<description>This is the RSS feed of the last ten file submissions accepted into our database.  This RSS feed is always up to date as it is dynamically updated.</description>
	<item>
		<title>Twitter tweetssnippet</title>
		<link>http://www.etomite.com/files/file/337-twitter-tweetssnippet/</link>
		<description><![CDATA[Another Twitter tweet snippet.<br />
<br />
Using twitters own scripts.<br />
<br />
Just a simple one, nothing fancy ; <br />
<br />
demo output: <a href='http://etomite.vitusware.com/twitter' class='bbc_url' title='External link' rel='nofollow external'>http://etomite.vitusware.com/twitter</a>]]></description>
		<pubDate>Fri, 20 Aug 2010 12:56:05 +0000</pubDate>
		<guid isPermaLink="false">337</guid>
	</item>
	<item>
		<title>RTE Editor</title>
		<link>http://www.etomite.com/files/file/336-rte-editor/</link>
		<description>This release fixes the problem of the  erroneous style code being inserted into a document on load.</description>
		<pubDate>Wed, 11 Aug 2010 17:08:47 +0000</pubDate>
		<guid isPermaLink="false">336</guid>
	</item>
	<item>
		<title>mv_findorphans</title>
		<link>http://www.etomite.com/files/file/335-mv-findorphans/</link>
		<description><![CDATA[Snippet name: mv_findorphans<br />
Snippet description: Finds and reattachs orphaned pages<br />
Revision: 1.0<br />
Date: 2010-04-03<br />
by Mario A. Valdez-Ramirez<br />
<br />
With Etomite 1.1 you can accidentally detach a branch (subtree) from the document tree by setting a descendant page as the parent of the current page. Common symptoms of this problem are disappearing pages (they no longer appears in the menus or in the Etomite manager), frozen sites (they take several seconds or even minutes to load and finally only display a "Fatal error: Allowed memory size of XXXXX bytes exhausted" message or a "Fatal error: maximum execution time of XXXX seconds exceeded").<br />
<br />
Add this snippet to any page (to a test page not listed in the site), with [!mv_findorphans!], then load the page, click the search button, select what orphan pages to reattach to the test page, and then click the attach button. <br />
<br />
You should reattach only the pages that look like the main document for each orphaned subtree. For example, if the documents are: 5-&gt;20, 6-&gt;20, 7-&gt;20, 20-&gt;21, 21-&gt;22, 22-&gt;5, then it looks like the root of the orphaned tree was 22, so that is the only node you should reattach (the other pages in the subtree are already attached to the document 22). When finished, remove the snippet (or unpublish the page), as its security has not been fully tested.<br />
<br />
This snippet has been tested with orphaned pages created while editing pages in Etomite 1.1. It has not been tested with corrupted page trees created by database server crashes or manual manipulation. This snippet assumes that the orphaned subtrees are caused by simple circular references (a page having a descendant as parent) and that there is at least one page attached to the root (with parent 0).]]></description>
		<pubDate>Thu, 22 Apr 2010 22:20:41 +0000</pubDate>
		<guid isPermaLink="false">335</guid>
	</item>
	<item>
		<title>MobileDetect</title>
		<link>http://www.etomite.com/files/file/334-mobiledetect/</link>
		<description><![CDATA[<pre class='prettyprint'>/* Thanks to http&#58;//www.russellbeattie.com/blog/mobile-browser-detection-in-php */
/* There are no options, just call the snippet in your template header in place of your css link. */
/* The detection is not 100% foolproof but should work on most devices. */

$websiteCSS = "website-css/web-design.css";	/* Your css file for mobile phones */
$mobileCSS = "website-css/mobile-design.css";	/* Your normal css file link */


$output = '';

/* Start of detection code */
$isMobile = false;
$isBot = false;

$op = strtolower($_SERVER&#91;'HTTP_X_OPERAMINI_PHONE'&#93;);
$ua = strtolower($_SERVER&#91;'HTTP_USER_AGENT'&#93;);
$ac = strtolower($_SERVER&#91;'HTTP_ACCEPT'&#93;);
$ip = $_SERVER&#91;'REMOTE_ADDR'&#93;;

$isMobile = strpos($ac, 'application/vnd.wap.xhtml+xml') !== false
        || $op != ''
        || strpos($ua, 'sony') !== false 
        || strpos($ua, 'symbian') !== false 
        || strpos($ua, 'nokia') !== false 
        || strpos($ua, 'samsung') !== false 
        || strpos($ua, 'mobile') !== false
        || strpos($ua, 'windows ce') !== false
        || strpos($ua, 'epoc') !== false
        || strpos($ua, 'opera mini') !== false
        || strpos($ua, 'nitro') !== false
        || strpos($ua, 'j2me') !== false
        || strpos($ua, 'midp-') !== false
        || strpos($ua, 'cldc-') !== false
        || strpos($ua, 'netfront') !== false
        || strpos($ua, 'mot') !== false
        || strpos($ua, 'up.browser') !== false
        || strpos($ua, 'up.link') !== false
        || strpos($ua, 'audiovox') !== false
        || strpos($ua, 'blackberry') !== false
        || strpos($ua, 'ericsson,') !== false
        || strpos($ua, 'panasonic') !== false
        || strpos($ua, 'philips') !== false
        || strpos($ua, 'sanyo') !== false
        || strpos($ua, 'sharp') !== false
        || strpos($ua, 'sie-') !== false
        || strpos($ua, 'portalmmm') !== false
        || strpos($ua, 'blazer') !== false
        || strpos($ua, 'avantgo') !== false
        || strpos($ua, 'danger') !== false
        || strpos($ua, 'palm') !== false
        || strpos($ua, 'series60') !== false
        || strpos($ua, 'palmsource') !== false
        || strpos($ua, 'pocketpc') !== false
        || strpos($ua, 'smartphone') !== false
        || strpos($ua, 'rover') !== false
        || strpos($ua, 'ipaq') !== false
        || strpos($ua, 'au-mic,') !== false
        || strpos($ua, 'alcatel') !== false
        || strpos($ua, 'ericy') !== false
        || strpos($ua, 'up.link') !== false
        || strpos($ua, 'vodafone/') !== false
        || strpos($ua, 'wap1.') !== false
        || strpos($ua, 'wap2.') !== false;

/* end of detection */

if($isMobile)	{
	$output = '	&lt;link rel="stylesheet" type="text/css" href="'.$mobileCSS.'" /&gt;';
	}
else 	{
	$output = '	&lt;link rel="stylesheet" type="text/css" href="'.$websiteCSS.'" /&gt;';
	}

return $output;
</pre>]]></description>
		<pubDate>Wed, 17 Mar 2010 21:31:55 +0000</pubDate>
		<guid isPermaLink="false">334</guid>
	</item>
	<item>
		<title>YouTubeImage</title>
		<link>http://www.etomite.com/files/file/333-youtubeimage/</link>
		<description><![CDATA[#by Sylwester K. sever2/at/o2.pl<br />
<br />
## inserts &lt;img&gt; with thumbnail generated by YouTube<br />
# related with YouTubeList and YouTubeVideo<br />
<br />
## example<br />
# [[YouTubeImage?v=VIDEO_ID]] thumbnail for any video<br />
# [[YouTubeImage?id=11]] thumbnail video used in Description of Document(11)<br />
# size - check by yourself<br />
<br />
# sizes ??? - sometimes are difrent<br />
<br />
# 0		- 480x360 or 120x90<br />
# 1,2,3		- 120x90<br />
# deault	- 480x360 or 120x90<br />
# hqdeault 	- 480x360<br />
# hq1, hq2, hq3 - 480x360]]></description>
		<pubDate>Fri, 18 Dec 2009 15:33:39 +0000</pubDate>
		<guid isPermaLink="false">333</guid>
	</item>
	<item>
		<title>YouTubeList</title>
		<link>http://www.etomite.com/files/file/332-youtubelist/</link>
		<description><![CDATA[## by Sylwester K. sever2/at/o2.pl<br />
<br />
## YouTubeImage snippet needed<br />
<br />
## This snippet makes &lt;table&gt; of titles and links for your YouTube videos published on separate Document with YouTubeVideo snippet<br />
# example: [[YouTubeList?cols=1&size=hqdefault]]<br />
# id - Document ID whose children are used to build list<br />
# cols - number of columns in table default 4 for vertical list use 1<br />
# limit - number of document to use<br />
# size - size of thumbnails (see YouTubeImage for more info)]]></description>
		<pubDate>Fri, 18 Dec 2009 15:25:16 +0000</pubDate>
		<guid isPermaLink="false">332</guid>
	</item>
	<item>
		<title>YouTubeVideo</title>
		<link>http://www.etomite.com/files/file/331-youtubevideo/</link>
		<description><![CDATA[## by Sylwester K. sever2/at/o2.pl<br />
<br />
## usage<br />
# post YouTube's VIDEO_ID in snippet call [[YouTubeVideo?v=VIDEO_ID]]<br />
# or publish whole YouTube's video URL as Document Description<br />
# you can also call this snippet with id of document witch have VIDEO_ID in Description<br />
# instead of using ID of Document where it was called<br />
# all parameters are optional<br />
# links id Decripton are used to build YouTubeList<br />
<br />
## examples:<br />
# [[YouTubeVideo?v=VIDEO_ID]] any video<br />
# [[YouTubeVideo]] video from this Document's Description<br />
# [[YouTubeVideo?id=11]] video from Description of Document(11)<br />
<br />
<br />
## parameters description:<br />
# <a href='http://code.google.com/intl/en/apis/youtube/player_parameters.html' class='bbc_url' title='External link' rel='nofollow external'>http://code.google.c...parameters.html</a>]]></description>
		<pubDate>Fri, 18 Dec 2009 15:10:28 +0000</pubDate>
		<guid isPermaLink="false">331</guid>
	</item>
	<item>
		<title>PDF writer</title>
		<link>http://www.etomite.com/files/file/329-pdf-writer/</link>
		<description><![CDATA[/************<br />
PDFWriter V1.0 <br />
Use: A snippet to export etomite pages as PDF<br />
Cris D 2009-11-17<br />
Etomite 1.1<br />
based on the FreePDF class <a href='http://fpdf.com' class='bbc_url' title='External link' rel='nofollow external'>http://fpdf.com</a><br />
*****/<br />
<br />
<strong class='bbc'>Installation instructions:</strong><br />
<ul class='bbc'><li>Unzip the contents of this zip archive.</li><li>Create a folder called "pdf" in the root of your site.</li><li>Upload the fpdf.php file to this folder.</li><li>Upload the folders "images" and "font" to this site also.</li></ul><br />
<ul class='bbc'><li>Now you should have:</li></ul><pre class='prettyprint'>
siteroot &gt; pdf &gt; fpdf.php
siteroot &gt; pdf &gt; images &gt; logo.gif
siteroot &gt; pdf &gt; images&gt; pdficon.jpg
 siteroot &gt; pdf &gt; font &gt; &#91;contents of font folder&#93;</pre><br />
<br />
The other files and folders in the fpdf16 are for reference only <br />
and it contains many really good tutorials and samples of how to use it.<br />
<br />
<ul class='bbc'><li>Copy the contents of the pdfwriter.txt file and save it as a snippet in your etomite snippet library.</li><li>Call the snippet in a page or in your site template.</li></ul><br />
There are 2 optional configurations:<br />
<ul class='bbc'><li>$image [0] || [1] (Default 1) : A switch to show an icon or a text link to get the PDF.</li><li>$linkMessage = "Export to PDF";</li></ul>In addition, there are many ways you can lay out the page - I will not be providing support for this - it's up to you. <br />
There's enouogh help included in the tutorials and samples for you to work this out yourself.<br />
<br />
Enjoy.<br />
<br />
[updated snippet documentation to clarify the uploaded file structure]]]></description>
		<pubDate>Tue, 17 Nov 2009 16:49:47 +0000</pubDate>
		<guid isPermaLink="false">329</guid>
	</item>
	<item>
		<title>Etomite Prelude (Russian Language for v1.1)</title>
		<link>http://www.etomite.com/files/file/328-etomite-prelude-russian-language-for-v11/</link>
		<description><![CDATA[&#1040;&#1088;&#1093;&#1080;&#1074; &#1089;&#1086;&#1076;&#1077;&#1088;&#1078;&#1080;&#1090; &#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081; &#1103;&#1079;&#1099;&#1082;&#1086;&#1074;&#1086;&#1081; &#1092;&#1072;&#1081;&#1083;. <br />
&#1060;&#1072;&#1081;&#1083; &#1089;&#1086;&#1076;&#1077;&#1088;&#1078;&#1080;&#1090;&#1089;&#1103; &#1074; &#1087;&#1072;&#1087;&#1082;&#1077; manager/includes/lang/russian.inc.php<br />
&#1050;&#1086;&#1076;&#1080;&#1088;&#1086;&#1074;&#1082;&#1072; win-1251]]></description>
		<pubDate>Thu, 05 Nov 2009 22:30:33 +0000</pubDate>
		<guid isPermaLink="false">328</guid>
	</item>
	<item>
		<title>siteErrorHandler</title>
		<link>http://www.etomite.com/files/file/327-siteerrorhandler/</link>
		<description><![CDATA[/*************<br />
<strong class='bbc'>Snippet:</strong> siteErrorHandler V1.0<br />
<br />
<strong class='bbc'>Author: </strong>Cris D 2009-10-31 (acknowledements to plaincart for the concept).<br />
<br />
<strong class='bbc'>Use:</strong> Allows etomite users to manage errors for a site in a centralised manner by using sessions.<br />
<br />
<strong class='bbc'>Dependancies:</strong> Nill- will work on any etomite installation with sessions configured (a requirement to installing etomite in the first place).<br />
<br />
<strong class='bbc'>Installation:</strong><br />
Copy the contents of the snippet and save it as a new snippet called "siteErrorHandler"<br />
Call the snippet in the template of your site before any other snippets <br />
(in the head or above the html is OK) like this:<br />
[!siteErrorHandler!]<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;/head&gt;<br />
<br />
<strong class='bbc'>Snippet output:</strong><br />
The snippet itself does not actually output anything- it just loads the functions into the working memory for your code to use. <br />
<br />
It provides a user-friendly way to store, markup and retrieve errors centrally.<br />
<br />
There are 2 functions to use it:<br />
<br />
1) <strong class='bbc'>setError('error message');</strong> loads an error to the session.<br />
<br />
2)<strong class='bbc'> displayError();</strong> gets the session errors, runs them through a mark-up routine and sends them back to display for the user.<br />
<br />
<span class='bbc_underline'>A note on checking if an error is currently stored:</span><br />
Once displayError(); is called, the session errors are cleared until the next time displayError(); is called. Therefore, to test if errors are stored, you must either set another local variable like:<br />
<br />
$error=true; <br />
<br />
or check the session errors explicity by using something like:<br />
<br />
count($_SESSION['site_error']);<br />
<br />
See examples below for more on this.<br />
<br />
<strong class='bbc'>DON"T PANIC:</strong> the amount of writing below is not an indication of how complex this is to use, I have just provided a lot of examples and documentation so it is easy to apply to your site. It's actually really easy to implement.<br />
<br />
<strong class='bbc'>Uses of siteErrorHandler 1) </strong>Centralised display of errors in a page or template:<strong class='bbc'><br />
<br />
</strong>If you have a central location in your site or template where you want errors to occur, <br />
you can call a snippet in that section of your template that is used to display any errors,<br />
for example:<br />
<pre class='prettyprint'>//Snippet: showErrors V1.0 Cris D 2009-10-31

return displayError();

//end snippet showErrors</pre><br />
in this case, if there are no errors, nothing will be displayed.<br />
<br />
<strong class='bbc'>Uses of siteErrorHandler 2)</strong> Setting and displaying errors conditionally<br />
<br />
You may like to choose where and when errors display during code at runtime,<br />
then you can just call the function and add the errors to the output of the snippet,<br />
for example:<br />
<br />
<p class='citation'>Quote</p><div class="blockquote"><div class='quote'>//sample code using setError() and displayError()<br />
<br />
setError("You have made a boo boo!"); $error = true;<br />
<br />
if(!$error)<br />
{<br />
	&lt;...runcode...&gt;<br />
<br />
} else {<br />
<br />
 $out = displayError();<br />
<br />
}<br />
 $out .= "&lt;html and other output code here&gt;";<br />
return $out;</div></div><br />
<br />
<span class='bbc_underline'><strong class='bbc'>Using siteErrorHandler:</strong></span><br />
<br />
setError can take the error messages in a number of ways, the most common will be as text, <br />
but it will take a number of methods, for example:<br />
<pre class='prettyprint'>
setError("Error message."); //as text
setError($error_message.$user.$date); // as variables
setError($language&#91;'message1'&#93;); // as an array item
setError($localErrorArray&#91;&#93; = $message); // build a local array of errors to interact with at runtime
</pre><br />
These error messages that are set can be retrieved and interacted with by using:<br />
<br />
$_SESSION['site_error'][$i]; <br />
<br />
or if a local array is built:<br />
<br />
$localErrorArray[$i];<br />
<br />
Example of use:<br />
<p class='citation'>Quote</p><div class="blockquote"><div class='quote'>setError('text');<br />
setError($arr[] ='Message 1');<br />
setError($arr[] = 'Message 2');<br />
setError($arr2=('1'=&gt;'one', '2'=&gt;'two');<br />
<br />
print_r($_SESSION['site_error]);<br />
Array<br />
(<br />
	[0] =&gt; text<br />
	[1] =&gt; Message 1<br />
	[2] =&gt; Message 2<br />
	[3] =&gt; Array<br />
 	(<br />
 	[1] =&gt; one<br />
 	[2] =&gt; two<br />
 	)<br />
<br />
print_r($arr);<br />
Array<br />
(<br />
	[0] =&gt; Message 1<br />
	[1] =&gt; Message 2<br />
)<br />
<br />
return displayError();</div></div><br />
will return:<br />
<pre class='prettyprint'> 
&lt;div id="errorMessage"&gt;
 &lt;ul class="ul_errorMessage"&gt;
	&lt;li class="li_errorMessage"&gt;text
	&lt;/li&gt;
	&lt;li class="li_errorMessage"&gt;Message 1
	&lt;/li&gt;
	&lt;li class="li_errorMessage"&gt;Message 2
	&lt;/li&gt;
	&lt;li class="li_errorMessage"&gt;Array
	&lt;/li&gt;
 &lt;/ul&gt;
&lt;/div&gt;</pre><br />
Note that passing a whole array to setError will not return array elements as error messages.<br />
<br />
/*************<br />
Examples of use including error checking logic embedded in etomite code:<br />
<pre class='prettyprint'>
//check for existing errors from previous pages
$currentErrors = count($_SESSION&#91;'site_error'&#93;);

if($currentErrors &gt; = 1) 
{
return "You have existing errors to resolve before you can do your email bit";
}

if( $_POST&#91;'email'&#93; == null )
{
setError('You must enter your email address.'); $localerror = true;
}

if(!$localerror){

$output = "&lt;p&gt;Your email address is: &lt;strong&gt;".$_POST&#91;'email'&#93;."&lt;/strong&gt;.&lt;/p&gt;";

}else{

//show all errors so far if there are any
$output = displayError();

}

//default view- show the form
$output .= "
&lt;form action='".$etomite-&gt;makeURL($etomite-&gt;documentIdentifier,'','')."' id='email_field' method='post'&gt;
&lt;input type='text' name='email' value='' /&gt;
&lt;input type='submit' id='submit' value='Submit email' /&gt;
&lt;/form&gt;";

return $output;</pre>]]></description>
		<pubDate>Sat, 31 Oct 2009 03:33:20 +0000</pubDate>
		<guid isPermaLink="false">327</guid>
	</item>
</channel>
</rss>