Need help with generating previews of templates...

Pixovee

Up-and-Coming Sensation
Joined
Jul 4, 2009
Messages
462
Reaction score
0
FP$
6
I am currently coding a Templates website, but I notice all other CSS Template sites have the option for live previews of EVERY template. I figure, they can't unzip and be making new directories and stuff for each template MANUALLY, how do I do this? Here's how my members are doing this:

The member goes into a page and fills out all the information about the template which goes into a database, as well as they pick the file to upload. The file then goes into a directory called /uploads/ . How do I take their .zip file and give a preview of the template? The file in each template is index.html .
 
They just make a link to their demo site.

The demo site they upload all of the web templates they are hosting and normally have a switcher at the top or bottom.
 
Back
Top Bottom