Download Database is a Go!

Avatar
reepblue
894 Posts
Posted Jun 21, 2012
Replied 8 hours later
This is the best news I've gotten all week! Great job guys.

I'll upload A Little Higher and Tornate when I'm back to sitting on my PC all day, banging rocks together..

Advertisement
Registered users don't see ads! Register now!
Avatar
Groxkiller585
652 Posts
Posted Jun 21, 2012
Replied 11 hours later

Coppermantis wrote:
Not if you made your own image of a stick giraffe or something and called it "Scorpion.png" or something.

Or alternatively...

I lol'd

Avatar
p0rtalplayer
1,366 Posts
Posted Jun 21, 2012
Replied 6 hours later
Made some changes to the upload form earlier this morning:

  • Made a javascript check to see if all the necessary form elements were filled out
  • Made it impossible to remove your name from the author list (its now sent as a hidden input element so even if you do manage to change the text inside the disabled input box, it won't send that. Sorry, but I don't want people uploading as like jstalin99 or whatever)
  • It's now possible to have two maps with the same filename in the database (probably no one noticed this but before the form would return an error if your map name already existed. Now it simply renames the file by adding the current time in seconds since the Unix Epoch - dunno, that's just what the time() function returns)

This afternoon I plan to start on the edit/delete form. It'll be admin-only at first, but eventually you'll be able to access it from a "my files" page.

Avatar
p0rtalplayer
1,366 Posts
Posted Jun 21, 2012
Replied 4 hours later
I had to edit the id space in some of the existing maps because there were a few numbers skipped because I deleted stuff. Some of your links might be broken, basically.
Avatar
Pilchard123
334 Posts
Posted Jun 22, 2012
Replied 4 hours later
So what happens if I change my forum display name to jstalin99 and then upload? Is that still safe?
Avatar
p0rtalplayer
1,366 Posts
Posted Jun 22, 2012
Replied 9 hours later

Pilchard123 wrote:
So what happens if I change my forum display name to jstalin99 and then upload? Is that still safe?

...technically, yes

Point is, you should only be able to upload as you.

Search feature is marginally better, thumbnails are displaying again and you can actually get to all the results, there's no pagination yet though besides the forward and back arrows.

Avatar
p0rtalplayer
1,366 Posts
Posted Jun 25, 2012
Replied 3 days later
Changelog (for the past couple days - all changes are live, which is probably not how I should be doing it, but I'm not sure how to go about it differently without copying everything over to another directory)

  • Admins and map author (only first author - i.e. uploader - for now) can edit/delete files
  • Main page login box fix (I don't know if anyone even noticed it was broken besides me - and anyway it still needs some work, it doesn't display login errors so if you get your password wrong you can't tell)
  • Sidebar map list only displays first 40 characters (to avoid formatting weirdness)
  • Upload form map name box limited to 64 characters to avoid unexpected cutoff

Next couple of things on my to-do list
- Forum autoposting
- Better searching (prolly keep the current one around as Browse or something)
- Ratings

Avatar
kizzycocoa
975 Posts
Posted Jun 25, 2012
Replied 16 minutes later
I vote we change the voting images to lemons, compared to potatoes.
Avatar
Keklolzor
165 Posts
Posted Jun 25, 2012
Replied 33 minutes later

Kizzycocoa wrote:
I vote we change the voting images to lemons, compared to potatoes.

I suggest simple stars or something basic, maybe just numbers (e.g. 4.3 etc.)

Avatar
Groxkiller585
652 Posts
Posted Jun 25, 2012
Replied 4 hours later

Keklolzor wrote:

Kizzycocoa wrote:
I vote we change the voting images to lemons, compared to potatoes. > I suggest simple stars or something basic, maybe just numbers (e.g. 4.3 etc.)

I can see why you'd want simplicity but IMO it's not needed, since it's fairly apparent that it's the rating, and I think making it Portal styled would be cool.

Avatar
Sven
306 Posts
Posted Jun 25, 2012
Replied 1 hour later

groxkiller585 wrote:

Keklolzor wrote:

Kizzycocoa wrote:
I vote we change the voting images to lemons, compared to potatoes. >> I suggest simple stars or something basic, maybe just numbers (e.g. 4.3 etc.)>

I can see why you'd want simplicity but IMO it's not needed, since it's fairly apparent that it's the rating, and I think making it Portal styled would be cool.

I support cakes.

Hipster? Perhaps. Old meme is old? Maybe. But I like cake a lot more than I like potatoes.

Avatar
p0rtalplayer
1,366 Posts
Posted Jun 25, 2012
Replied 13 minutes later
Awright, got autoposting working.

Be careful though, because pressing the back button at the wrong time can create an extra thread. Not sure how to prevent that and I don't have the energy to look into it tonight.

Avatar
Pilchard123
334 Posts
Posted Jun 26, 2012
Replied 4 hours later
I would just point out that the download page for a map will say "Click for more info" when clicking it will collapse the extra info.

The rest seems cool though.

Avatar
p0rtalplayer
1,366 Posts
Posted Jun 26, 2012
Replied 39 minutes later

Pilchard123 wrote:
I would just point out that the download page for a map will say "Click for more info" when clicking it will collapse the extra info.

The rest seems cool though.

yeah, I noticed that and fiddled with it for about 5 minutes but then I had other things I needed to be working on so I passed it by

something to do with the javascript and PHP not talking to each other very nicely...I'll take a look at it again some time.

Avatar
kizzycocoa
975 Posts
Posted Jun 26, 2012
Replied 4 hours later

Sven wrote:
I support cakes.

Hipster? Perhaps. Old meme is old? Maybe. But I like cake a lot more than I like potatoes.

I support cake more than lemons, but feared the community would get mad at me.

I'm with Sven. Up with cakes! Down with potatoes!

Avatar
Omeqa
578 Posts
Posted Jun 26, 2012
Replied 2 hours later
I liked the potatos
Avatar
Sven
306 Posts
Posted Jun 26, 2012
Replied 9 hours later

Kopeke wrote:
I liked the potatos

I don't dislike them, I just like cake more.

Avatar
p0rtalplayer
1,366 Posts
Posted Jun 28, 2012
Replied 1 day later
Okay guys, ratings are pretty much done (unless we decide to change the rating images), except for the occasional rounding error which I don't really know how to fix (I'll probably come back to it tomorrow and see a really obvious solution)

Outstanding file database things I can think of that I have left (if you think of any more just post them):
- Filter by author's files (this could get complicated, I might have to end up referencing the forum database, and that'll get messy really fast. I'm putting it off)
- Better search (by map type, by keyword, and filter by elements/tags)
- PTI integration (I could probably set this up pretty easily, except I want to make sure that files are associated with your username and that you're actually the person who uploaded them. What I might end up doing is making a custom profile field that associates your forum account with your steam account, but that's also gonna get messy as phpBB is still greek to me.)

Avatar
WinstonSmith
940 Posts
Posted Jun 30, 2012
Replied 1 day later
How about Aperture Logos for ratings, dependent on the map's theme? Perhaps have a "theme" selection box available during upload, and based on the user's selection, either the Aperture, Aperture-with-W (Wheatley), 70s, or 40s/50s logos are used as the ratings indicators.
Avatar
p0rtalplayer
1,366 Posts
Posted Jun 30, 2012
Replied 5 hours later

WinstonSmith wrote:
How about Aperture Logos for ratings, dependent on the map's theme? Perhaps have a "theme" selection box available during upload, and based on the user's selection, either the Aperture, Aperture-with-W (Wheatley), 70s, or 40s/50s logos are used as the ratings indicators.

The problem with that idea is that 1) it only works really for portal 2 maps and 2) maps often mix multiple themes

Advertisement
Registered users don't see ads! Register now!