This is the first post in a line of uses for jTube. In this post I will show the basics of getting a users upload list and using the info. Before we start make sure that you have included the latest jQuery and latest jTube.
For jTube to work you must tell it what feed to grab by passing the info to the correct option. The only one we need to worry about today is `user`. Using the users feed has an option that accompanies it. The option userType tells what info about the user to retrieve. By default jTube loads the users uploads. Lets take a look at that.
1
2
3
4
5
| <script>
$.jTube({
user: 'defvayne23'
});
</script> |
Read More…
If you ever want to see the variables being passed to Smarty just add `?SMARTY_DEBUG` to the end of your URL. This will create a popup with all the variables and their values, any templates that where included with load times, and any variables set in the config if you use one. The arrays are not pretty, but usable.

Find more info about the debug console and debug control.
Had an issue come up today with a site that offers the service to pull in data to your site using an iframe. Apparently IE has a security feature where it does not accept sessions from external sites using iframe. Sounds great, but the way to make it work is to simply send a header with the request.
header('P3P: CP="CAO PSA OUR"');
So how does this add security? Find more info here.
Post is a little late, but finally have my list. These are my goals for the year.
- Better testing
- Learn python threw django
- Go to more hockey games next season (season tickets)
- Post alot/more
- Better UI & design skills
This is the first in a series of accepting a users image, selecting the area, and cropping it. First we will start with the guts of the process and build on top of that.
When letting users upload images for a site, you normally would like the images to be the same ratio and size. To do this we need to crop the image. To get things started lets select the image.

Now that we have the image we need to load the image into GD before we can do anything with it. You can find all the GD functions we use here.
Read More…