I dread the boredom of new year's eve for a nerd with no social life like me (I'm exagerating a bit here, but still), so I need something to do while everyone else is getting hammered.
If you have some issues that bother you about the site and can be adressed without much effort by coding, please let me know in the comments. I will try to fix that stuff between now and january 4th. Then I'll be gone doing something else again:D
By the way, I just got rid of a lot of domains I did not use for a long time. I also cancelled mapcraft.net, because I realised I would not have the determination and motivation to make it work anyway. I will make a backup of the code and the database. I'm sorry for the time some of you "wasted" in a project that never got finished.
If you like the domainname mapcraft.net, it should be up for grabs a few weeks from now. Just so you know:D
A happy and healthy 2010 to all of you,
(edit: I confused the two domain names. broodwarmaps.net will still exist. Sorry for the confusion)
happy new year panschk!!!!!!!!!!!!!!
okay, this is what i should do:
once you upload map pic, it should be redimentioned to a width of 768 if it's width is bigger than it's height, or to a height of 768 if it's width is less than it's height (a square picture like a 128x128 map will be redimentioned to 768 x 768 because it's wifth is not bigger than it's height).
if you have never worked with images files at php, you can try the GD library, i think you can use the fuction imagecopyresampled() if you want to redimention it with interpolation and imagecopyresized() if you don't.
if you do this, then the GMCS will work with all the maps!
rename the pictures with the mapid.jpg please!!!
if i upload a map, for example, lost temple, and upload it's picture as 1.jpg, and then upload another map with the same picture name, the lost temple map will have the new jpg file!! u.u
you can fix this buy changeing the name of the picture when uploding it to the host, because the mapid is the kay of the maps table, there won't be 2 JPG files with the same name.
and to fix all the old maps that have names like "a.jpg" and "map.jpg" you can tell your php to rename the jpgs in the host by listing all the maps, selecting it's map picture name and it's mapid, and telling the php to repleace name with the mapid.jpg.
improving the searching system?
when i'm looking for a 2 players badlands map, and i open a map description, when i click on previous/next, it'll be nice to go to the next 2 players badland map, not to the next mapid map.
is it possible to add a link, at the maps descriptions where you see the preview, the melee link, the observer link, the author, etc. add a link that says "sexy searching tool" and when you click there, tell the php to add the html code of the "map DB" header??
so in the map description you can pick the number of players, tileset, etc, and then, when you click NEXT, or PREVIOUS (the greater than and less than things) it'll go to the next mapid that matches the maptype, tileset, number of plyers, etc :D
then the link changes to "hide the sexy searching tool, i had enough" and when you click on it, it goes back to normal :D
add NEXT/PREV links to the competitions, when i am, for example, at motm10 and want to check motm9, it'll be nice just to click prev and load the same page but with another parameter... the competition id! lol modified by testbug
Hey panschk, can you code a feature that forces people to make more maps, edit more maps, and test more maps?
I was just going to use the non-integral aspect of motm to do motw if that's what we decide on doing, but if you can think of a way to make motw a little neater without replacing motm (cuz I think we'd still be doing motms, but with motw sub-competitions). I don't think anything needs to changed here, but if you have any ideas feel free to implement them.
Panschk is gosu, as always; glad to know bwm is still in the back of your head!
The competitions disappear too quickly, and I have to manually edit their ending date to the day before today to make them reappear. This is strange. They seem to disappear about a week after they "end", but that "end" date is just the end of adding maps which begins a few weeks of voting time. Is this week left-over from the original MOTW? If you want, instead of just making this date longer, could you add an admin feature "close contest" which would make it disappear from the front page, and all competitions would remain up until they were "closed" ?
I don't hang out around here a lot anymore but thinking back I have arrived to the conclusion that one of the things that this web-site would have benefited from is a "download counter" that would let the mappers know how many times their maps have been downloaded by someone.
Oh I got another thing. We have a fair few maps that contain ramps to copy/paste or other terrain stuff, can a new map-type be added "utility" ? Would be nice for organization and convenience without being too complicated I think.
Testbug has some pretty good ideas, I like. I just downloaded the source code and will start doing some work soon. I also have some pretty urgent tasks for my paid work to do, so I won't be able to focus on BWMN only in the days to come (unlike I initially planned). So it will probably take me a week or two to deliver anything useful.
I will only do stuff that is pretty trivial to implement and most importantly where there is no risk of breaking much already working stuff. So I can change the uploading of pictures, but I prefer not to do bulk-renaming of the existing map-pictures.
Remember that I wrote the code when I was young and had no clue, so it's not really a pleasure to work with:D It would have been great if I had done it the right way back then, but I didn't know any better.
As for the site being more and more inactive: Isn't that somewhat to be expected, as BW gets older and SC2 is approaching? If it goes totally inactive in a few months it wouldn't be so bad. We had some nice years and together assembled a pretty awesome collection of fine BW maps.
The database should stay online for many years, hopefully you can show your first maps to your grandkids one day:D
okay, being serious, Panschk, if you don't rename the old jpg files there CAN be problems....
for example :)
what happens if the key of your maps table is like
0001, 0002, 0003, etc. and there are only 99 maps (so there are keys from 0001 to 0099)
and yesterday, or the last month, or the last year, a guy uploaded a pic names 2010.jpg because he was thinking in the new year!
when we start adding more and more maps, once we reach the map number 2009, if we upload another map (and it's id will be 2010) if your php renames the file to 2010.jpg the old map with the 2010.jpg file will get fucked, and it's author will be very sad :P
we don't know your map ID keys, but we have a lot of maps named like 000001.jpg or map001.jpg and n9ret945769.jpg!!! so there is a posiblility of being fucked again if you don't rename the old files.
pleasee, addd "edit" and "invisible" buttons to the commens of the news so i can edit my mistakes here!!! coments like this1 cannot be modified!
Admins can't edit this comments so if nasty gets hacked again, and his account starts uploading porn to broodwarmaps.net we won't be able to edit it!!!!
the specific case you describe can not happen, because the pics are (I should have done that much earlier) placed in a directory "pics" now. There will always be a 1-to-1 relationship between mapDB-entries and pictures now.
There were probably already many cases of overwriting pic names, but if that happened in the past, I can't change it now anyways..
[The key of the maps table is the mapid. pics goto pics/[ID].jpg and thumbnails to map_thumbnails/pics/[ID].jpg. There is also a "tmp" directory to upload the pics to before they get resized. The files there will get overwritten all the time.]
- added "edit" and "invisible" in news comments
- you can now explicitly open and close competitions (in the admin menu). the buggy calculation of dates to display the competitions is not needed anymore.
Unless there is something really urgent to do, I'm done with my changes. Redoing the design or the advanced search options that testbug requested would take me more time than I want to invest:D modified by panschk[FP]
hope im not being picky here but can you fix the letters...like under the News it has 'new account' and 'list users' and change to 'New Account' and 'List Users' and do that for all the secton that start with lower case letters. thanks
and are u you going to be changing cahnnel design if so how r u going to do it.