Hey all! haven't posted here in a while... good to be back.

So, i've been blessed with the task to create a somewhat sophisticated video player...

Here is a quicky example of something I have now:

http://www.vmatrix.com/clients/welcome/

Ok, so thats a shitty example. But, what it DOES do (or should do) is automatically detect your connection speed and video player availible - then stream you the appropriate file.

Anywho, im revamping the entire thing and creating an all new system. Clients will be able to login to an interface and create their own players. There will be a templating system involved. Its going to be all PHP/MySQL. Im not 100% sure about all the specs yet because im a poor planner. I just tend to start writing a module, and then go from there. Usually I try to write my code well enough so I can make alot of design changes without wasting coding time.

Anyways, the first thing I wanna figure out is the templating system. There will be an ability for the client to 'skin' the player however they want. So, I need to write a VERY SIMPLE and scalable templating system. I don't need anything really fancy... i don't think.

Now... I've read a few docs on some different templating systems. Have given smarty a look and all that. But, I can't use opensource software this time. I'm just going to write my own customized one. So, I was curious if anyone had some good information (http/webpage/etc) on making templating systems. Or maybe, someone has a direction they can point me in, or maybe I need to be giving more info?

Currently, im thinking... Store the HTML for the template in the MySQL database, and its associated data in the same table....

Any help appreciated, thanks!