I've decided to release the graphic uploader I made for Era. It's similar to
this one by LoneAngelIbesu, but contains a queue, admin approval/denial, and more.
To use it, press F11 and click "Upload Graphic". Choose the graphic type, file name, and press "Browse". Select your graphic, and it will upload. It automatically checks the headers, checks to make sure the file does not already exists, and then moves it to a folder where it waits for an admin to approve it. You can view your pending, uploaded, and denied graphics as well by pressing F11.
Admins will see an extra option to moderate the queue, and they have a list of quick deny options, a custom deny reason button, an approve button, and a skip button (move on to the next item in the queue, do not approve or deny the current).
Screenshots:




Installation
This isn't the easiest script to add, but it's not too bad if you follow these steps:
- Download the images attached to this post (at the bottom; there is a dark noob head, a body template, and a head template). Upload these files to your server.
- Upload the script to your server and add it to everyone on login.
- This script assumes that you use levels/heads, levels/bodies, and levels/shields. You can change these if you like, or create the folders if you don't use them. Normally it can be left as-is.
- At the top of the script, add a list of admins who should be able to moderate the uploaded graphics.
- Open the rights of (npcserver). Add the following lines:
Quote:
rw personaluploads/*/*/*
rw levels/uploads/*
rw levels/heads/*
rw levels/bodies/*
rw levels/shields/*
rw uploads/*/*
|
- Add the following lines to your folder config:
Quote:
file uploads/*.png
file uploads/*.gif
|
- This script requires the server to use a prefix. At default, it is taking the lowercase first word of the server (e.g. for "Era Dev", "era"), appending an underscore ("era_"), then letting the player choose the name. This can, of course, be changed to whatever you want.
- Add createTable(); to the onCreated function at the top of the script. Update the script, remove the line, then update it again. You only need to to this once to create the SQLite table.
The latest version can be found
here (last updated 2012/01/20 by fowlplay4).