<?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>Tue, 16 Mar 2010 04:42:59 +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>YouTubeImage</title>
		<link><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=333]]></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><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=332]]></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><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=331]]></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><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=329]]></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><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=328]]></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><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=327]]></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>
	<item>
		<title>twitterSuite v1.0</title>
		<link><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=326]]></link>
		<description><![CDATA[twitterSuite v1.0 pulls various bits of data from your <a href='http://www.twitter.com/Twitter'>@Twitter</a> account.<br />
It's very basic at the moment, and is still a work-in-progress. The next version hopes to implement caching (so that you don't hit the twitter API limit).<br />
<br />
<pre class='prettyprint'>// twitterSuite v1.0
// Snippet Code (c) 2009, Dean Clinton.
//
// How To Use
// ========================================
// Call the snippet on the relevant page / template.
//
// Variables
// ========================================
// ?twitterID=etomite - this is your twitter username
// &tweetNo=1 - this is the number of tweets returned
// &showImag=no - show the user image
// &showName=no - show the full name
// &showWebs=no - show the website
// &showLocn=no - show the location
// &showFlwr=no - show the number of followers
// &showFlwg=no - show the number of following
// &showDesc=no - show the description
// &showCoun=no - show the twitter count
// &showTwts=yes - show the tweets (number defined by &tweetNo=1)
// &showTime=yes - show the time that the tweet was made
// 
// For example, the snippet could be called by
// &#91; !twitterStatus?twitterID=etomite&tweetNo=1&langstarttweets=&lt;p&gt;&langbreaktweets=&langendtweets=&lt;/p&gt;! &#93;
// which will only show the latest twitter status, surrounded in &lt;p&gt;&lt;/p&gt; tags.</pre>]]></description>
		<pubDate>Tue, 13 Oct 2009 15:13:21 +0000</pubDate>
		<guid isPermaLink="false">326</guid>
	</item>
	<item>
		<title>twitterStatus v1.0</title>
		<link><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=325]]></link>
		<description><![CDATA[Displays latest status of a specified Twitter account.<br />
Unformatted, so will need styling with your CSS.<br />
<br />
<br />
<strong class='bbc'>VERY</strong> basic.<br />
<br />
<pre class='prettyprint'>// twitterStatus v1.0
// Snippet Code (c) 2009, Dean Clinton.
//
// How To Use
// ========
// Call the snippet on the relevant page / template.
// 
// Variables
// ========
// ?twitterID=etomite - this is your twitter username, defaulting to 'etomite'
// </pre>]]></description>
		<pubDate>Mon, 12 Oct 2009 19:13:33 +0000</pubDate>
		<guid isPermaLink="false">325</guid>
	</item>
	<item>
		<title>thumbsUp v1.0</title>
		<link><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=324]]></link>
		<description><![CDATA[ThumbsUp allows you to let your site’s visitors vote/rate anything you want.<br />
<br />
<strong class='bbc'>Warning!</strong><br />
This is not a stand-alone snippet. It requires the purchase of the ThumbsUp script from <a href='http://bit.ly/buythumbsup' class='bbc_url' title='External link' rel='nofollow external'>here</a>.<br />
<br />
<pre class='prettyprint'>// thumbsUp v1.0
// Snippet Code (c) 2009, Dean Clinton.
// ThumbsUp Code (c) 2009, Geert De Deckere.
// Requires Purchase of ThumbsUp PHP Code - http://bit.ly/buythumbsup
//
// How To Use
// ========
// Upload the thumbsup folder to the assets folder.
// Install as per the readme for thumbsup.
// Call the snippet on the relevant page / template.
// 
// Variables
// ========
// ?thumbID=uniquetext - this is the unique identifier that each thumbs up is known by within the admin interface
// ?thumbType=mini-thumbs - use one of the known thumbs up types for the poll, preset to mini-thumbs if you
// don't change via snippet call. Check the documentation for types.
// </pre>]]></description>
		<pubDate>Mon, 12 Oct 2009 17:31:34 +0000</pubDate>
		<guid isPermaLink="false">324</guid>
	</item>
	<item>
		<title>Etomite 1.1</title>
		<link><![CDATA[http://www.etomite.com/index.php?app=downloads&showfile=323]]></link>
		<description>Etomite Version 1.1</description>
		<pubDate>Sun, 13 Sep 2009 14:30:49 +0000</pubDate>
		<guid isPermaLink="false">323</guid>
	</item>
</channel>
</rss>