welo
08-26-2005, 10:00 PM
This is something I've been meaning to do for a long time :ninja:. How many hours have I spent going through a couple hundred VB images and trying to remember which ones I've changed and already uploaded? This script solves that. :up:
What It Does:
This is a simple directory listing script I grabbed from elsewhere (credits in the file) and have modified to show all the images in the directory it occupies, and also in any child directory. Also added a JS page color selector preloaded with 9 VB default background colors to make it easier to see what the images look like on various backgrounds. Just switch the colors to your own.
How To Use It:
Simply upload it to your vb /images directory and point your browser to it.
For instance: yoursite.com/forums/images/imagelist.php
If you only want to list images in one of the child directories, load it there instead. As you upload replacement images, refresh the page to see them. Once you're finished, delete the file from your website.
Considerations:
* Since this thing is going to display every image file in your /images directory all on one page (over 200Kb of images for a default install) and the page is equipped with no-cache headers, you are going to suck down some bandwidth every time you refresh. If you have an immense avatar or smilie library to upload, it's going to list all those too so you might wait until you're done customizing board images first.
* There is no security for this script yet. If you leave it on your server anyone can come along and list/snag every image you have just by tagging the file with their browser. If you want to leave it there while you keep working at least name it to something else to prevent anyone else from finding it.
Planned Additions:
There are a few things I want to add to this, although I'll need to track down how for some of it:
List images only in a certain directory
Harnass it to VB to make usergroup permissions apply
Browse/upload ability
Previewing ability
=============================
Anyway, it's not much but it sure comes in handy when skinning a VB, especially considering VB's current lack of an image managing system. Hope it helps somebody.
What It Does:
This is a simple directory listing script I grabbed from elsewhere (credits in the file) and have modified to show all the images in the directory it occupies, and also in any child directory. Also added a JS page color selector preloaded with 9 VB default background colors to make it easier to see what the images look like on various backgrounds. Just switch the colors to your own.
How To Use It:
Simply upload it to your vb /images directory and point your browser to it.
For instance: yoursite.com/forums/images/imagelist.php
If you only want to list images in one of the child directories, load it there instead. As you upload replacement images, refresh the page to see them. Once you're finished, delete the file from your website.
Considerations:
* Since this thing is going to display every image file in your /images directory all on one page (over 200Kb of images for a default install) and the page is equipped with no-cache headers, you are going to suck down some bandwidth every time you refresh. If you have an immense avatar or smilie library to upload, it's going to list all those too so you might wait until you're done customizing board images first.
* There is no security for this script yet. If you leave it on your server anyone can come along and list/snag every image you have just by tagging the file with their browser. If you want to leave it there while you keep working at least name it to something else to prevent anyone else from finding it.
Planned Additions:
There are a few things I want to add to this, although I'll need to track down how for some of it:
List images only in a certain directory
Harnass it to VB to make usergroup permissions apply
Browse/upload ability
Previewing ability
=============================
Anyway, it's not much but it sure comes in handy when skinning a VB, especially considering VB's current lack of an image managing system. Hope it helps somebody.