<?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>Codrops &#187; chadking</title>
	<atom:link href="http://tympanus.net/codrops/author/chadking/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Mon, 06 Feb 2012 07:30:10 +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>PHP/MySQL Contact Form with jQuery</title>
		<link>http://tympanus.net/codrops/2010/03/12/php-mysql-contact-form-with-jquery/</link>
		<comments>http://tympanus.net/codrops/2010/03/12/php-mysql-contact-form-with-jquery/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 17:37:08 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=1666</guid>
		<description><![CDATA[View demoDownload source Here&#8217;s an implementation of a contact form with PHP and jQuery. Usually, one would only want the message posted by the user to be sent to an email address. This script does that and also saves all these messages in the database for the admin to keep track of them. The table [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Tutorials/ContactForm/index1.php" target="_blank"><img class="aligncenter size-full wp-image-1670" title="ContactForm" src="http://tympanus.net/codrops/wp-content/uploads/2010/03/ContactForm1.png" alt="ContactForm" width="580" height="362" /></a></p>
<p><a class="demo" href="http://tympanus.net/Tutorials/ContactForm/index1.php" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Tutorials/ContactForm/ContactForm.zip">Download source</a></p>
<p>Here&#8217;s an implementation of a contact form with PHP and jQuery. Usually, one would only want the message posted by the user to be sent to an email address. This script does that and also saves all these messages in the database for the admin to keep track of them.</p>
<p>The table to store this data is the following:</p>
<pre class="brush:sql">CREATE TABLE CONTACT(
pk_contact 	INT UNSIGNED NOT NULL auto_increment,
name			VARCHAR(120) NOT NULL,
email 			VARCHAR(120) NOT NULL,
website		VARCHAR(120) NOT NULL DEFAULT "",
message		VARCHAR(300) NOT NULL,
added_date 	TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
primary key(pk_contact)
)type=innodb DEFAULT CHARACTER SET utf8	COLLATE utf8_general_ci;</pre>
<p>We will keep track of the name, email, website (optional), the message, and the date when the message was sent. Feel free to change the limits of the fields, but don&#8217;t forget to change them as well in the PHP files.</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<p>We use jQuery for the front end, and AJAX for submitting the form. All the validations are done on the server side, and the user will be notified when one of the fields is not correct. If the message is inserted into the database, an email is sent to the admin, notifying him about a new message.<br />
We provide two CSS templates for the contact form.</p>
<p>Concerning the installation, all you need to do is run the database script (db_main_script.sql) and configure your database connection in config.php:</p>
<pre class="brush:php">define('DB_SERVER', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'ContactForm');</pre>
<p>You can also configure the email parameters in this file, like the Email Message Subject.</p>
<p><a class="demo" href="http://tympanus.net/Tutorials/ContactForm/index1.php" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Tutorials/ContactForm/ContactForm.zip">Download source</a></p>
<p><!-- wp_ad_camp_1 --></p>
<div class="partner_section_post"><span>Message from Testking</span>Sing up for  <a href="http://www.pass4sure.com/642-436.html">642-436</a>  online course to become IT  expert. Pass your <a href="http://www.pass4sure.com/CompTIA-A-plus.html">a+ certification</a>  exam on first  attempt  using <a href="http://www.pass4sure.com/SCBCD.html">scbcd</a> prep material.</div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2010/03/12/php-mysql-contact-form-with-jquery/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Find Your First Twitter Follower</title>
		<link>http://tympanus.net/codrops/2010/01/09/find-your-first-twitter-follower/</link>
		<comments>http://tympanus.net/codrops/2010/01/09/find-your-first-twitter-follower/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 08:49:00 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter api]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=1184</guid>
		<description><![CDATA[This application aims to show you who your first follower was in twitter. It&#8217;s done with PHP and jQuery and of course it uses the twitter API. Two of the available API methods are used : statuses/show and followers/ids. Note that the rate limit is 150 requests per hour (you can increase this) so it [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1189" title="firstFollow" src="http://tympanus.net/codrops/wp-content/uploads/2010/01/firstFollow.png" alt="firstFollow" width="500" height="357" /></p>
<p>This application aims to show you who your first follower was in twitter. It&#8217;s done with PHP and jQuery and of course it uses the twitter API. Two of the available API methods are used :<em> statuses/show</em> and <em>followers/ids. </em>Note that the rate limit is 150 requests per hour (you can increase this) so it might happen that it stops working in some point of time :( For this reason I don&#8217;t provide a demo page, but you can download the application, and install it locally or in your web site and give it a try. Anyway, the purpose of this post is just to show you how to do it!</p>
<p><a class="download" href="http://www.tympanus.net/FirstFollower/FirstFollower.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2010/01/09/find-your-first-twitter-follower/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Easy PHP Site Translation</title>
		<link>http://tympanus.net/codrops/2009/12/30/easy-php-site-translation/</link>
		<comments>http://tympanus.net/codrops/2009/12/30/easy-php-site-translation/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 12:14:31 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=1059</guid>
		<description><![CDATA[Here&#8217;s an easy way to translate your web site using PHP. The idea is to have several files for each language you want to provide. Each one of these files have the name of the ISO code and the txt extension. For this demo I only use the german language as an alternative to the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1062" title="PhpTranslate" src="http://tympanus.net/codrops/wp-content/uploads/2009/12/PhpTranslate1.png" alt="PhpTranslate" width="500" height="341" /></p>
<p>Here&#8217;s an easy way to translate your web site using PHP. The idea is to have several files for each language you want to provide. Each one of these files have the name of the ISO code and the txt extension. For this demo I only use the german language as an alternative to the default language of the site &#8211; english. The content of these files are the words / sentences with their translation in the form:</p>
<p>word=translation</p>
<p>The PHP class provided will parse this file, create an array which maps both word and it&#8217;s translation pair. You just need to insert the following in your php code :</p>
<pre class="brush:php">$translate = new Translator($outputlanguage);//$outputlanguage: ISO code (example: de,en,...) --&gt; these are the names of each file

$translate-&gt;__('word to translate');
</pre>
<p>An example:</p>
<pre class="brush:html">&lt;h2&gt;&lt;?php $translate-&gt;__('Registration'); ?&gt;&lt;/h2&gt;</pre>
<p>and in your de.txt file we would have:</p>
<p>Registration=Registrierung</p>
<p><a class="demo" href="http://tympanus.net/translation/register.php" target="_blank">View demo</a><a class="download" href="http://tympanus.net/translation/translation.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/12/30/easy-php-site-translation/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>URL Image Getter/Uploader/Resizer</title>
		<link>http://tympanus.net/codrops/2009/12/06/url-image-getteruploaderresizer/</link>
		<comments>http://tympanus.net/codrops/2009/12/06/url-image-getteruploaderresizer/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 20:56:43 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dom parser]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=995</guid>
		<description><![CDATA[I was wondering how to get images from a site the same way like Digg or Facebook do, where it is only necessary to provide a link, and images get automatically uploaded to your server and resized. So, I decided to create a script that does exactly that and share it here. This PHP script [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1000" title="urlImage" src="http://tympanus.net/codrops/wp-content/uploads/2009/12/urlImage.jpg" alt="urlImage" width="510" height="334" /></p>
<p>I was wondering how to get images from a site the same way like Digg or Facebook do, where it is only necessary to provide a link, and images get automatically uploaded to your server and resized. So, I decided to create a script that does exactly that and share it here.</p>
<p>This PHP script uses two php classes that I found on the web. One of them I have already used before in the &#8220;<a href="http://tympanus.net/codrops/2009/10/17/jquery-image-cropper-with-uploader/" target="_blank">jQuery Image Cropper with Uploader</a>&#8221; and the &#8220;<a href="http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/" target="_blank">Dynamic jQuery Image Gallery with Uploader</a>&#8220;, the class.upload from <a href="http://www.verot.net" target="_blank">verot</a> . The other is a PHP html DOM Parser that can be found <a href="http://simplehtmldom.sourceforge.net/" target="_blank">here</a>.</p>
<p>In order to make this work, I had to change some few lines of code in verot&#8217;s class, so that URLs can be used to get images.  The DOM Parser is untouched. I also created a file (index.php) where both scripts are called. I first parse the URL, search for images and pass the url of the image to the class.upload script, which then uploads the image to a local directory (images/) and resizes it. In this script, the image size is changed to a width of 150 pixels but the ratio is kept. However, you can change these values and configure it the way you want. Take a look at the <a href="http://www.verot.net/res/sources/class.upload.html" target="_blank">documentation</a> of the class.upload so that you know what you can change. Also, you can specify how many images you want to save / display per request.</p>
<p>For the demo which has this blog as &#8220;target&#8221;, I have configured that only a restricted amount of images are saved and shown. Besides, you might notice that sometimes it displays more images than other times. This is caused by the limited amount of memory configured in the php.ini file (memory_limit), so you might wanna change this value to a proper one if you want to use this script. Again, on verot&#8217;s web site, in the forums,  there are some good calculations giving an idea of a suitable value.</p>
<p><a class="demo" href="http://tympanus.net/urlimages/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/urlimages/urlimages.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/12/06/url-image-getteruploaderresizer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>TweetTheme: Color Theme Inspiration from Twitter Themes</title>
		<link>http://tympanus.net/codrops/2009/12/02/tweettheme/</link>
		<comments>http://tympanus.net/codrops/2009/12/02/tweettheme/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 22:37:22 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter api]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=954</guid>
		<description><![CDATA[My next Twitter API experiment: Get the theme&#8217;s colors from any Twitter account! With this PHP and jQuery code you can call the Twitter API and request the RGB color and the background image from a given user. In the provided demonstration you just have to input the username and hit enter &#8211; the theme [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-955" title="TweetTheme" src="http://tympanus.net/codrops/wp-content/uploads/2009/12/TweetTheme.png" alt="TweetTheme" width="512" height="343" /></p>
<p>My next Twitter API experiment: Get the theme&#8217;s colors from any Twitter account!</p>
<p>With this PHP and jQuery code you can call the Twitter API and request the RGB color and the background image from a given user. In the provided demonstration you just have to input the username and hit enter &#8211; the theme will get loaded. Hover over the color rows to obtain the hexadecimal color values.</p>
<p>Not much said:</p>
<p><a class="demo" href="http://tympanus.net/TweetTheme/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/TweetTheme/TweetTheme.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/12/02/tweettheme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Twitter API and jQuery Showcase: Display your Followers or Friends</title>
		<link>http://tympanus.net/codrops/2009/12/02/twitter-api-and-jquery-showcase-display-your-followers-or-friends/</link>
		<comments>http://tympanus.net/codrops/2009/12/02/twitter-api-and-jquery-showcase-display-your-followers-or-friends/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 11:47:42 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter api]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=952</guid>
		<description><![CDATA[Today I was playing around with the Twitter API and created this little &#8220;widget&#8221; using jQuery and PHP. I know, there are already plenty of them, but I wanted to improve some details. Some of the features are: You can get your most recent 100 followers or friends Followers or friends are shown in sets [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-953" title="twitterconn" src="http://tympanus.net/codrops/wp-content/uploads/2009/12/twitterconn.png" alt="twitterconn" width="518" height="322" /></p>
<p>Today I was playing around with the Twitter API and created this little &#8220;widget&#8221; using jQuery and PHP. I know, there are already plenty of them, but I wanted to improve some details.</p>
<p>Some of the features are:</p>
<p><span id="more-952"></span></p>
<ul>
<li>You can get your most recent 100 followers or friends</li>
<li>Followers or friends are shown in sets of 25 per widget page</li>
<li>The images of the users are preloaded (unlike in Twitter)</li>
<li>You can navigate through the set</li>
<li>You can refresh the entire set</li>
<li>More information on the user can be seen using a tooltip when hovering over his picture</li>
</ul>
<p>You can configure and use this in your website to show your followers or friends with some interesting information about them (name, number of followers, number of friends).</p>
<p>A reason why 100 followers or friends are loaded in the beginning is the restriction the Twitter API is giving in the number of results per request. So, in order not to make several requests which would take quite some time, I just get 100. However, you can always click the link to the entire list in the end of the pagination.</p>
<p>The tooltip is created using <a href="http://craigsworks.com/projects/qtip/" target="_blank">qTip</a>.</p>
<p><a class="demo" href="http://tympanus.net/TwitterConnections/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/TwitterConnections/TwitterConnections.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/12/02/twitter-api-and-jquery-showcase-display-your-followers-or-friends/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>jQuery Image Cropper with Uploader v1.1</title>
		<link>http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/</link>
		<comments>http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 01:03:58 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[crop]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=773</guid>
		<description><![CDATA[Here&#8217;s an updated version of the Image Cropper. The upload button was replaced by an overlay on the image. There are also some extra functionalities : invert the picture colors rotate the image sepia transforms an image into greyscale see the DEMO download the source code here]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-785 aligncenter" title="crop1_1" src="http://tympanus.net/codrops/wp-content/uploads/2009/11/crop1_11.png" alt="crop1_1" width="470" height="320" /></p>
<p>Here&#8217;s an updated version of the Image Cropper. The upload button was replaced by an overlay on the image. There are also some extra functionalities :</p>
<p><span id="more-773"></span></p>
<ul>
<li>invert the picture colors</li>
<li>rotate the image</li>
<li>sepia</li>
<li>transforms an image into greyscale</li>
</ul>
<p>see the <a href="http://tympanus.net/crop1.1/" target="_blank">DEMO</a><br />
download the source code <a href="http://tympanus.net/codrops/wp-content/uploads/2009/10/crop1.1.zip">here</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>jQuery Image Cropper with Uploader</title>
		<link>http://tympanus.net/codrops/2009/10/17/jquery-image-cropper-with-uploader/</link>
		<comments>http://tympanus.net/codrops/2009/10/17/jquery-image-cropper-with-uploader/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 16:49:52 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[crop]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=692</guid>
		<description><![CDATA[Please check the updated version here! Some time ago I posted the Dynamic jQuery Image Gallery with Uploader which uses the class.upload, uploadify and ad-gallery scripts. This time I want to show how to integrate the class.upload and uploadify with the Jcrop script. The idea is that the user uploads a picture,  selects which area [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-694" title="jquery_cropper" src="http://tympanus.net/codrops/wp-content/uploads/2009/10/jquery_cropper1.jpg" alt="jquery_cropper" width="533" height="266" /></p>
<p style="text-align: center;"><strong>Please check the updated version <a href="http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/" target="_blank">here</a>!</strong></p>
<p>Some time ago I posted the <a href="http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/#more-426" target="_blank">Dynamic jQuery Image Gallery with Uploader</a> which uses the class.upload, uploadify and ad-gallery scripts. This time I want to show how to integrate the class.upload and uploadify with the <a href="http://deepliquid.com/content/Jcrop.html" target="_blank">Jcrop</a> script.</p>
<p>The idea is that the user uploads a picture,  selects which area to crop and saves it under a specific directory.<br />
The process then creates two images, one 100&#215;100 and a thumbnail of 50&#215;50. You can easly change the script to create the amount of pictures and sizes you need!</p>
<p><span id="more-692"></span>The example here is limited to .jpg images and no more than 800 kb. If you want to add more file types and increase the size, you can configure it when you call the uploadify script (index.php):</p>
<p><code>'fileExt'         : '*.jpg',<br />
'sizeLimit'      : '819200',//max size bytes - 800kb</code></p>
<p>and in upload.php:</p>
<p><code>$handle-&gt;file_max_size 			 = '819200'; // max size</code></p>
<p>Note that an usual error is due to the configuration of the &#8220;memory_limit&#8221; in php.ini. You should increase this value if you expect to upload larger images.</p>
<p>see the <a href="http://tympanus.net/crop/" target="_blank">DEMO</a><br />
download the source code <a href="http://tympanus.net/codrops/wp-content/uploads/2009/10/crop.zip">here</a><br />
<strong>Please check the updated version <a href="http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/" target="_blank">here</a>!</strong></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/10/17/jquery-image-cropper-with-uploader/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>PHP Login System Reloaded v1.1</title>
		<link>http://tympanus.net/codrops/2009/09/16/php-login-system-reloaded-v1-1/</link>
		<comments>http://tympanus.net/codrops/2009/09/16/php-login-system-reloaded-v1-1/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 23:48:30 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[loginsystem]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[user management]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=510</guid>
		<description><![CDATA[Here&#8217;s an updated version of the PHP Login System. You can check the old version here. The following was added: 1. Registration fields: email confirmation password confirmation country recaptcha Email confirmation and password confirmation are configurable fields. By default they are shown, but if you wish to remove one or both of them you have [...]]]></description>
			<content:encoded><![CDATA[<p><!-- google_ad_section_start --><br />
<img class="alignnone size-full wp-image-511" title="PHP Login System" src="http://tympanus.net/codrops/wp-content/uploads/2009/09/loginsystem.png" alt="PHP Login System" width="500" height="337" /></p>
<p>Here&#8217;s an updated version of the PHP Login System. You can check the old version <a href="http://tympanus.net/codrops/2009/09/03/php-login-system-reloaded/" target="_blank">here</a>.</p>
<p>The following was added:</p>
<p><span id="more-510"></span></p>
<p><strong>1. Registration fields:</strong></p>
<ul>
<li>email confirmation</li>
<li>password confirmation</li>
<li>country</li>
<li>recaptcha</li>
</ul>
<p>Email confirmation and password confirmation are configurable fields. By default they are shown, but if you wish to remove one or both of them you have to set it in the file constants.php:</p>
<p><code>define("REPEAT_EMAIL",true);<br />
define("REPEAT_PASSWORD",true);</code></p>
<p><strong>2. Table fields:</strong></p>
<ul>
<li>the user ip,</li>
<li>number of logins of a user,</li>
<li>flag is_admin</li>
<li>flag is_blocked</li>
<li>new table &#8211; Country table</li>
</ul>
<p><strong>3. dbcontroller class sanitizes user input data</strong></p>
<p><strong>4. Edit Account Area</strong></p>
<p><strong>5. Admin Area &#8211; incomplete (for next version)</strong></p>
<p>For now just the list of users is shown and a world map indicating where the users come from.  You can delete Users and set them as Admins. If there are no users to list, no map is shown. Also the User seeing the panel is not shown.<br />
Note that in the demo you will not be able to see the admin part &#8211; for admin reasons :)</p>
<p><strong>6. New CSS</strong></p>
<p><strong>7. Some other small details in the php code.</strong></p>
<p>For the next version I am planning to :</p>
<ul>
<li>add all admin functions</li>
<li>improve and improve &#8230;.</li>
</ul>
<p>To use the recaptcha you need to get a public/private key <a href="https://admin.recaptcha.net/accounts/login/?next=/recaptcha/createsite/" target="_blank">here </a>. Then you need to define them in constants.php:</p>
<p><code>define("PUBLICKEY","XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");<br />
define("PRIVATEKEY","XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");</code></p>
<p>In order to use the demo for those who have registered in the previous version&#8217;s demo, you need to register again (in the demo login system), since I had to set up another database for it.</p>
<p>Hope you like it. Any suggestions or improvements are welcome!</p>
<p><a href="http://tympanus.net/loginsystem2/public_html/index.php" target="_blank">DEMO</a></p>
<p>Download the source code <a href="http://tympanus.net/codrops/wp-content/uploads/2009/09/loginsystem1_1.zip">here</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/09/16/php-login-system-reloaded-v1-1/feed/</wfw:commentRss>
		<slash:comments>287</slash:comments>
		</item>
		<item>
		<title>Dynamic jQuery Image Gallery with Uploader</title>
		<link>http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/</link>
		<comments>http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 13:30:26 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=426</guid>
		<description><![CDATA[Here&#8217;s a jQuery Image Gallery script with a multi file Uploader, that was implemented using three resources that I found on the web: uploadify ad-gallery class.upload.php click on the image to see a demo It&#8217;s easy to find a lot of good image galleries out there, a lot of upload scripts and thumbnail generators. But [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a jQuery Image Gallery script with a multi file Uploader, that was implemented using three resources that I found on the web:</p>
<ol>
<li><a href="http://www.uploadify.com/" target="_blank">uploadify</a></li>
<li><a href="http://coffeescripter.com/2009/07/ad-gallery-a-jquery-gallery-plugin/" target="_blank">ad-gallery </a></li>
<li><a href="http://www.verot.net/php_class_upload.htm" target="_blank">class.upload.php</a></li>
</ol>
<p><a href="http://tympanus.net/gallery/" target="_blank"><img class="alignnone size-full wp-image-429" src="http://tympanus.net/codrops/wp-content/uploads/2009/09/gallery.gif" alt="" width="600" height="379" /></a></p>
<p>click on the image to see a demo</p>
<p><span id="more-426"></span><br />
It&#8217;s easy to find a lot of good image galleries out there, a lot of upload scripts and thumbnail generators. But I found it hard to find one script that includes them all, so I decided to try to integrate them in one, which is actually what is interesting to have in a site. I basically put them together and added one or two functions to the whole thing, and added some Ajax script to load the pictures.<br />
So now, besides being able to see the gallery, which is pretty cool by the way, you can upload multiple image files (for this demo just jpg and gif, although you can configure what you want) next to it and have them added to the gallery on the fly, after the upload is finished (you can click on &#8220;last uploads&#8221; in the demo to see the last images). If you don&#8217;t want that the images are loaded immediatly after you upload them, then just remove the onAllComplete option in the innitialization of the uploadify plugin, in index.html.<br />
Because this is a demo I limited the pictures size that you can upload to 500kb, and you can just upload 5 at a time. Of course then you can configure this as you like.<br />
For the thumbs and images generator, I use the class.upload.php script  (very nice work), and I call it in the file uploadify.php. There you can configure the way you want your pictures to be generated, both original and thumbnail (for example the sizes, the filenames, the maximum size, if you want that pictures with the same name are replaced &#8230;). For this script I generate a hash for the name of the files, which will be always different. You can change that if you want&#8230; Remember that the folder where the pictures are stored (images and images/thumbs) should have the right permissions in order for you to upload your files.</p>
<p>I would suggest that you take a look at the possible configurations for each one of the scripts that I used:</p>
<ul>
<li>for the class.upload.php <a href="http://www.verot.net/res/sources/class.upload.html" target="_blank">here </a></li>
<li>for the uploadify <a href="http://www.uploadify.com/documentation/" target="_blank">here</a></li>
<li>for the ad-gallery <a href="http://coffeescripter.com/code/ad-gallery/" target="_blank">here</a></li>
</ul>
<p>see the <a href="http://tympanus.net/gallery/" target="_blank">DEMO</a></p>
<p>download source code <a href="http://tympanus.net/codrops/wp-content/uploads/2009/09/gallery.zip">here</a></p>
<p>You can find more jQuery Image Galleries <a href="http://tympanus.net/codrops/2009/09/07/42-jquery-image-gallery-plugins/" target="_blank">here</a></p>
<p>If you have any suggestions for this script, or if you find some bugs please let me know.</p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/author/chadking/feed/ ) in 0.25031 seconds, on Feb 8th, 2012 at 5:51 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 6:51 pm UTC -->
