SigServer DEV: Difference between revisions

From AniDB
Jump to navigation Jump to search
Line 66: Line 66:
Here are some examples.
Here are some examples.


caution, don't access these urls more than one or twice a day or you will get yourself an automatic 24h ban!
CAUTION! - Don't access these urls more than one or twice a day or you will get yourself an automatic 24h ban!


* [http://anidb.info/perl-bin/animedb.pl?show=xml&t=userlatest&uid=32&list=file http://anidb.info/perl-bin/animedb.pl?show=xml&t=userlatest&uid=32&list=file]
* [http://anidb.info/perl-bin/animedb.pl?show=xml&t=userlatest&uid=32&list=file http://anidb.info/perl-bin/animedb.pl?show=xml&t=userlatest&uid=32&list=file]
Line 73: Line 73:
* [http://anidb.info/perl-bin/animedb.pl?show=xml&t=animestat&aid=1 http://anidb.info/perl-bin/animedb.pl?show=xml&t=animestat&aid=1]
* [http://anidb.info/perl-bin/animedb.pl?show=xml&t=animestat&aid=1 http://anidb.info/perl-bin/animedb.pl?show=xml&t=animestat&aid=1]
* [http://anidb.info/perl-bin/animedb.pl?show=xml&t=animestat&aid=1&uid=32&gid=41 http://anidb.info/perl-bin/animedb.pl?show=xml&t=animestat&aid=1&uid=32&gid=41]
* [http://anidb.info/perl-bin/animedb.pl?show=xml&t=animestat&aid=1&uid=32&gid=41 http://anidb.info/perl-bin/animedb.pl?show=xml&t=animestat&aid=1&uid=32&gid=41]
* ... lot's more to be added uppon request


The mylist export documentation may be helpful in understanding the meaning of the different fields in the XML replies: [[Mylist_export_template_guidelines]]
The mylist export documentation may be helpful in understanding the meaning of the different fields in the XML replies: [[Mylist_export_template_guidelines]]

Revision as of 09:20, 5 February 2007

General

this is the place to contribute ideas on a possible future addition of a special signature picture feature to anidb.

Related forum thread: AniDB Development Forum - SigServer

For other areas of active development on AniDB, check: Development

Vision

AniDB users can create highly personalized signature images which can be used in forum singatures and which acurately reflect user specific or general anidb data. Some examples are:

  • Mylist statistics of the user (Mylist size, latest added, latest watched, total watched, ...)
  • Vote statistics general or user based (Top3 animes, my Top3, worst anime ever, ...)
  • General anidb statistics
  • Group statistics (Latest releases by group X, ...)
  • Anime statistics (percent aired, percent subbed, latest file added, total users, total groups, total files, total eps, ...)
  • ...

The user would not need any webspace to host such images and would not need to update/regenerate them. All signature images would be directly loaded from an AniDB webserver.

The idea is for the sig server to be the middle entity between AniDB and the user, which allows almost any kind of singature pic to be created, according to the personal preferences of the user. As such a lot of attention should go towards the configuration/customization interface of such a feature. We are aware that this is a hell lot of work, but it's the long term goal. The image generation itself is fairly easy.

Basically AniDB will offer all kinds of stats data and more via xml, much more than is currently on offer. The sig server would transparently get it's data from AniDB and the user will be able to pick all kinds of information bits from the available data and position and format it freely on a background pic which he can upload himself. Of course many users wouldn't need this degree of flexibility, so there would need to be some common premade default selections for style/info combinations which are most commonly requested. Furthermore background images could be shared between users.

... if a users feels like having a total mess of a sig pic where every single character is done in a different font type, color and size... why not let him do it? ...

Some examples:

Data

Implementation

General

here a short outline of the way it is supposed to work: (Let's call the new server "sig server" for now)

  • The sig server has it's own user database
  • Users can configure the signature pics via a webinterface of the sig server
  • The sig server provides an url which returns the sig pic
  • When the url is requested the sig server will look for a locally cached pic or cached anidb status information for the user and will either return the cached pic, a new pic created with the cached information or will issue an http request to retrieve the needed stats via as XML and then create the pic.

It is important to underline at this point that the sig server does never directly interact with the anidb database. It does not have SQL access, it does not store the users anidb password (only their anidb username) and it never modifies any information on anidb.

On suggestion for how things could look like (feel free to suggest other ways):

  • AniDB will link to the sig server
  • A first time user will visit the sig server and register a new account (username and password can be different from anidb)
  • Once registered the user gets to a configuration page where he has to enter his anidb username (without the anidb password!) and there will be a help text explaining the required profile settings on anidb for this to work (the anidb XML interface will only provide the information if the user selected certain permissions for the guest user)
  • the user can then either select an image from a selection of publicly available pictures stored on the server or can upload is own picture (for each own picture the user can specify whether it should be made public or not (needs mod review)).
  • once a picture is selected the user can select the type of data shown and the formatting from predefined profiles or can define his own profile (profile can be made public)
  • a profile should be very configurable, allowing selections like:
    • information to display
    • font/size/color/location/... for each part
    • maybe some kind of basic scripting
  • one user should be able to specify upto N signature picture+profile combinations which can all be active at the same time (maybe 5 ?)
  • some nice statistics and a modding interface would be good

Hosting

We have a dedicated server ready for hosting this feature. Restrictions:

  • Database related code should be able to work with PostgreSQL AND MySQL
  • Currently the server only runs PHP4 Php Info, but PHP5 could be installed.

Data Retrieval

The SigServer will receive the required data by making HTTP GET requests to the main anidb server and by getting XML replies. Here are some examples.

CAUTION! - Don't access these urls more than one or twice a day or you will get yourself an automatic 24h ban!

The mylist export documentation may be helpful in understanding the meaning of the different fields in the XML replies: Mylist_export_template_guidelines