Public uploader

Started by rtil, September 14, 2007 11:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dagolith

fuck the word pyramid!
Quote from: taylorfuck dagolith
Quote from: systechovans with paintings of viking women on them are impervious to all types of damage

systech

Quote from: Dagolithfuck the word pyramid!
Don't diss the word pyramid you anigen
<+fawx> im trying to animate a dick coming out of a toaster how do i go on about doing this
<~rtil> well fawx what you would do is delete the fla and do something productive instead

<+ansel> i lure children into my van with candy and then i read them passages from 'the origin of species'
<%ropesnake> billy con ends with billy raping his cat
<+billymonks> FUCK YOU BUG

<~rtil> ya one time i gave this hobo some cat food and he ate it like the animal he is it pleased me

Dagolith

You, take, that, BACK!
Quote from: taylorfuck dagolith
Quote from: systechovans with paintings of viking women on them are impervious to all types of damage

systech

Quote from: DagolithYou, take, that, BACK!
Word filter

stupid canuck hosehead idiot
<+fawx> im trying to animate a dick coming out of a toaster how do i go on about doing this
<~rtil> well fawx what you would do is delete the fla and do something productive instead

<+ansel> i lure children into my van with candy and then i read them passages from 'the origin of species'
<%ropesnake> billy con ends with billy raping his cat
<+billymonks> FUCK YOU BUG

<~rtil> ya one time i gave this hobo some cat food and he ate it like the animal he is it pleased me

Dagolith

#24
you think i didn't know that?

suck my cock yank.
Quote from: taylorfuck dagolith
Quote from: systechovans with paintings of viking women on them are impervious to all types of damage

mishkamash

dear god this is funny
<lenko> i saw a hedgehog on the way home if i was drunk i would have yelled IM DOCTOR RRRRROBOTNIK and chased it 

rtil

update. tried to program sort by date and it was taking me ages, so i changed it to this:

http://www.thebackalleys.com/ok/public/ is a file index, you can sort by date, size and name with the server's built-in but less pretty looking tools. you go to
http://www.thebackalleys.com/ok/public/!_upload_a_file/ to upload. after it uploads it gives you a direct link to the file you just uploaded. it'll have to do for now. at least it's better than the old one. for now i have to figure out how to make a working uploader with sortable arrays, or just download one that works well.

ZekeySpaceyLizard

#27
Quote from: REDMONGOOSEwhat is wrong with imageshack


Yahoo ads slowing it down, fucking it up, making it crash.

edit: shit works fine for me. no time outs. provides a link. boop.
I assume the list of files where the folder that leads to uploader is, is most recent files first. Not alphabetical. Cause I notice the thing I uploaded shoved the folder down.

rtil

it will link you to the most recently uploaded, yes. but the default view for that folder is simply alphabetical

psi43

allow .doc files so I can use it for school.

shittyfurryass

Quote from: rtilupdate. tried to program sort by date and it was taking me ages, so i changed it to this:

http://www.thebackalleys.com/ok/public/ is a file index, you can sort by date, size and name with the server's built-in but less pretty looking tools. you go to
http://www.thebackalleys.com/ok/public/!_upload_a_file/ to upload. after it uploads it gives you a direct link to the file you just uploaded. it'll have to do for now. at least it's better than the old one. for now i have to figure out how to make a working uploader with sortable arrays, or just download one that works well.

i just started working on a file uploader yesterday from scratch that integrates with the site I am working on, and I can probably assist you if you want

the appearance is a little rough around the edges since i just started working on it

http://furfag.com/y/72933590/ooooog.PNG

rtil

#31
where i ran into problems was figuring out how to sort a multidimensional array, if that's even the best way to go about it. i solved the sorting problem by using a numerical value for date(), like date(ymd). in that format rsort() would always sort the dates of the uploaded files in the right order. so then i tried doing something like using a multidimensional array with a row for each file, with a parameter for the file name, file size, display date and hidden numerical date for sorting.
it was there i realized i have no idea how to sort an array like that based on one of the columns in a row. i looked for about 2 hours then gave up. i don't even think i had the for loop inputting data in the table properly. it's like once you add another column to an array things get ten thousand times more confusing.

shittyfurryass

#32
have you thought about using mysql, rather than depending on the file's data alone?  It is probably more simple to keep it with php only, and depend on the files, but when I tried this with mysql it seems that it opens more options due to you could add fields on how you want to list the file information(example, sort by address that uploaded, or exclude files that people set as private, built in logging, keywords, etc). Not only that, but mysql results come in an array that seems simple to organize, let me paste a part of the source code on what i am working on as an example.  keep in mind that this is source is mixed with things that aren't relevant to what i am talking about
mysql_select_db("beta_FF",$con);
if((filter_var($_GET["sort"], FILTER_VALIDATE_INT)) && ($_GET["sort"] > 0) && ($_GET["sort"] < 6))
    {
    if ($_GET["sort"] == 1)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY uploadID");
        }
    if ($_GET["sort"] == 2)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY filename");
        }
    if ($_GET["sort"] == 3)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY filename DESC");
        }
    if ($_GET["sort"] == 4)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY type");
        }
    if ($_GET["sort"] == 5)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY type DESC");
        }
    }
else
    {
    $result = mysql_query("SELECT * FROM filedump ORDER BY uploadID DESC");
    }
$S_print=$S_print . "<table width=\"100%\">";

while($row = mysql_fetch_array($result))
{
$showthumb = str_replace(" ","%20",$row['thumbnail']);
$S_print=$S_print . "<tr><td class=\"showthumbnail\" style=\"background-image:url($showthumb);\"><a href=\"" . $row['Name'] . "/" . $row['filename'] . "\"><img src=\"files/blues/thumbsmall.png\" /></a></td><td width=\"65%\"><span>". $row['filename'] . "</span></td><td><span>" . $row['type'] . "</span></td><td><span>" . $row['date'] . "</span></td></tr>";
}
$S_print=$S_print . "</table>";
$S_thead="<span>Sort: <a href=\"?page=dump\">[Date DESC]</a><a href=\"?page=dump&sort=1\">[Date ASC]</a><a href=\"?page=dump&sort=2\">[Name ASC]</a><a href=\"?page=dump&sort=3\">[Name DESC]</a><a href=\"?page=dump&sort=4\">[Type ASC]</a><a href=\"?page=dump&sort=5\">[Type DESC]</a>";

adamant

Quote from: Zekeyboop.

amazing  

rtil

Quote from: shittyfurryasshave you thought about using mysql, rather than depending on the file's data alone?  It is probably more simple to keep it with php only, and depend on the files, but when I tried this with mysql it seems that it opens more options due to you could add fields on how you want to list the file information(example, sort by address that uploaded, or exclude files that people set as private, built in logging, keywords, etc). Not only that, but mysql results come in an array that seems simple to organize, let me paste a part of the source code on what i am working on as an example.  keep in mind that this is source is mixed with things that aren't relevant to what i am talking about
mysql_select_db("beta_FF",$con);
if((filter_var($_GET["sort"], FILTER_VALIDATE_INT)) && ($_GET["sort"] > 0) && ($_GET["sort"] < 6))
    {
    if ($_GET["sort"] == 1)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY uploadID");
        }
    if ($_GET["sort"] == 2)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY filename");
        }
    if ($_GET["sort"] == 3)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY filename DESC");
        }
    if ($_GET["sort"] == 4)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY type");
        }
    if ($_GET["sort"] == 5)
        {
        $result = mysql_query("SELECT * FROM filedump ORDER BY type DESC");
        }
    }
else
    {
    $result = mysql_query("SELECT * FROM filedump ORDER BY uploadID DESC");
    }
$S_print=$S_print . "<table width=\"100%\">";

while($row = mysql_fetch_array($result))
{
$showthumb = str_replace(" ","%20",$row['thumbnail']);
$S_print=$S_print . "<tr><td class=\"showthumbnail\" style=\"background-image:url($showthumb);\"><a href=\"" . $row['Name'] . "/" . $row['filename'] . "\"><img src=\"files/blues/thumbsmall.png\" /></a></td><td width=\"65%\"><span>". $row['filename'] . "</span></td><td><span>" . $row['type'] . "</span></td><td><span>" . $row['date'] . "</span></td></tr>";
}
$S_print=$S_print . "</table>";
$S_thead="<span>Sort: <a href=\"?page=dump\">[Date DESC]</a><a href=\"?page=dump&sort=1\">[Date ASC]</a><a href=\"?page=dump&sort=2\">[Name ASC]</a><a href=\"?page=dump&sort=3\">[Name DESC]</a><a href=\"?page=dump&sort=4\">[Type ASC]</a><a href=\"?page=dump&sort=5\">[Type DESC]</a>";
i hardly know anything about mysql, much less how to code in it. the syntax looks like stuff i could pick up quickly since it looks so similar, but at the moment i'm a little burned out on the idea. what i have now is rudimentary but it works. if i ever wanted to make something fancy i might pick it up again at a later date

KingDavid

Quote from: unconditionallyguarANTeed
Quote from: Zekeyboop.

amazing  

!!
Quote from: taylor
Quote from: Sinitronit sucks ass okay

and muse isnt that great anyway
thanks ill use this comment to help myself improve

MRat



There, I tried it out with that. It works awesome for me. I'll probably use it every now and then.
I was gone, FOR SO LONG

SHADOWFOX2

Haha, that's exactly why I hate programming...
Quote from: TomI followed a certain anigen in here one day
Quote from: lenkoalso i made tea instead of coffee fuckkkkkkkk
Quote from: lenkosugar MAKES the tea
Quote from: spiteI'm going to trick the top professional NBA basketball players to touch a magic basketball that absorbs all of their talent; Then combine their talent with mine own and destroy the world by reverse slam dunking over Micheal Jordan from half-court.
Quote from: Mad MeatUnlike before, when I`m ejaculating, there aren`t any ``sperm`` coming out anymore, and I am wondering if it is a bad thing? will it be permanent? or in the worst case, do anybody know what I should do?
then again, sorry for that question

rtil

#38
just an update people, i've fixed up the uploader a bit. now, the file listing is on the same page in alphabetical order, with some stats underneath. i'm working on adding the date uploaded and making it sortable by date as well. http://thebackalleys.com/ok/public

psi43

Total files: 520
Average file size: 422.6KB
Total directory size: 219.8MB

lmfao, I like how about 85% of the files were uploaded by me.

|