View Single Post
  #1  
Old 10-26-2009, 03:03 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
"Advanced" Graphic Uploader

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:

Click image for larger version

Name:	graal_1256517882.png
Views:	677
Size:	17.8 KB
ID:	49693Click image for larger version

Name:	graal_1256517894.png
Views:	900
Size:	20.0 KB
ID:	49694Click image for larger version

Name:	graal_1256518013.png
Views:	619
Size:	18.1 KB
ID:	49695Click image for larger version

Name:	graal_1256518033.png
Views:	847
Size:	19.7 KB
ID:	49696Click image for larger version

Name:	graal_1256518049.png
Views:	862
Size:	13.1 KB
ID:	49697

Installation

This isn't the easiest script to add, but it's not too bad if you follow these steps:
  1. 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.
  2. Upload the script to your server and add it to everyone on login.
  3. 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.
  4. At the top of the script, add a list of admins who should be able to moderate the uploaded graphics.
  5. 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/*/*
  6. Add the following lines to your folder config:
    Quote:
    file uploads/*.png
    file uploads/*.gif
  7. 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.
  8. 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).
Attached Images
   
__________________

Last edited by Skyld; 01-21-2012 at 06:54 PM..
Reply With Quote