Jump to content

User talk:AzaToth/Archives/2012/September

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia


Twinkie

Hello Mr. AzaToth. On wikipedia in Spanish many users use your tool the Twinkie. Our TW version is quite old and I wanted you to update it, because in our wiki it partially works (some things work and others don't). Import the TW used in simple.wiki in test.wiki and tried to translate the messages with some difficulty. Our version of the Twinkie can be found here. If you could help me with the translation would be a great help, feel free edit my subpages on test.wiki and fix what is wrong. Thanks for advance --Ignacio (talk) 20:44, 5 September 2012 (UTC)

Commons Latest Files

Hi! I can't find your script that shows the latest uploads on Commons https://toolserver.org/~azatoth/latest_files Maybe it is not in your home directory on toolserver? I would like to look into the sources because I can't find an api that gives me the tumbnail's URLs of the recent changes. Or is the only way looking into the database? Regards --NetAction (talk) 16:57, 20 September 2012 (UTC)

The code is based on codeigniter, and is a bit old, thus the code in question can be found at /home/azatoth/public_html/system/application/models/images.php. You should have read access to it all; if not please ping me and I'll look it up. AzaToth 19:15, 20 September 2012 (UTC)
To construct the thumb part, you can do following though:
$imgname = "Foobar.jpg";
$md5 = md5($imgname);
$a = substr( $md5, 0, 1 );
$b = substr( $md5, 0, 2 );
$url = "http://upload.wikimedia.org/${family}/${lang}/thumb/$a/$b/${imgname}/${size}px-${imgname}"
AzaToth 19:23, 20 September 2012 (UTC)