• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Free/Paid Template Download Script

FaithBowie

New Member
Hey everybody!

I'm hoping someone can help me with this. I'm currently re-working my design site to once again offer free and paid templates, the rub is that I'm lazy and I'm hoping to find a script to automate upload, preview & download of these templates. Basically what I want to do is be able to upload the template & a preview image from an admin panel or page, and have the template show up for download in the user-end of the script. I'd love to be able to use catagories to sort these, and maybe file-download stats ( this file was downloaded XXX times ), and possibly make some of the templates available for a small fee but those features are really not neccesary.

If anyone knows of a script that fits any of these requirements, I'd be forever grateful! I know I'm asking a lot, but I've done searches, and looked for literally months before breaking down and begging for help lol.

I'm hoping to find something for free, but if you know of a paid solution I'd gladly take a few weeks/months to save up for it. Thanks so much in advance! :)
 
What kind of template files will you be putting up? (tpl? htm/html? others?)

Do you want MySQL or no database with this?
 
FaithBowie said:
Ack, did I post in the wrong forum? Sorry!
No worries, it happens. ;)

It almost sounds like what your looking for is an image gallery type script. You could probably tweak one to do what you want...
 
It was moved to the programming forum I believe.

You want an ACP for that, right? Well I can't do that right now, but here's something you can start already: file listing script for the directory (Provided by PHP.net Documentation: Readdir Function)

PHP:
<?php
// Note that !== did not exist until 4.0.0-RC2

if ($handle = opendir('/path/to/files')) {
   echo "Directory handle: $handle\n";
   echo "Files:\n";

   /* This is the correct way to loop over the directory. */
   while (false !== ($file = readdir($handle))) {
       echo "$file\n";
   }

   closedir($handle);
}
?>

/path/to/files - This is where you specify the directory you wish to get the files from. If the folder doesn't exist, you won't get any files and may get an error. If you reference to a single file with this, it WILL give an error.

I can edit this code to have the filesize and type of file (type of file will be just DIR or FILE unfortunately.)
 
Back
Top