Hey, when someone uploads a screenshot, it seems you do the URL only.
Heres a small code I wrote-up for you, to allow uploading (PNG only):
<?php
if(!$_FILES['file'])
{
echo "
<form action='filename.php' method='POST' enctype='multipart/form-data'>
Select a Screenshot: <input type='file' name='file' id='file'>
<input type='submit' value='Upload'>
</form>
";
}
else
{
if($_FILES['file']['error'] > 0)
{
echo "Sorry, an error occured while trying to upload the image ". $_FILES['file']['name']. "! POSSIBLE ERROR: No file selected.";
}
elseif($_FILES['file']['name'] > 15)
{
echo "Whoa there! Please reduce the name of the image, it cannot be greater than fifteen characters.";
}
elseif($_FILES['file']['type'] != "image/png")
{
echo "Only screenshots with the file format of .png are allowed!";
}
else
{
move_uploaded_file($_FILES['file']['name'],
"screenshots/". $_FILES['file']['name'] .".png")
echo "Your screenshot has been uploaded.";
}
}
?>
And for a search system:
<?php
$search = mysql_real_escape_string($_POST['search']);
if(!$search)
{
echo "You haven't entered in any search terms!";
}
else
{
$grab_data = mysql_query("SELECT seedname FROM table WHERE seedname LIKE '%$search%' LIMIT 20");
if(mysql_num_rows($grab_data) == 0)
{
echo "Sorry, no search results found.";
}
else
{
echo "Results found<hr>";
while($extract = mysql_fetch_assoc($grab_data))
{
echo "Seed Name: ". $extract['seedname'] ."</br>";
}
}
}
?>
Of course, you can manually edit it to suit your site.
Thank you very much!
This will help us a lot. We will insert the new search function and the upload function to the site as soon as possible.
So, can normal users not edit the descriptions of a map, only post comments? I'd love to see a more wiki format where users can contribute more directly to the descriptions and location information.
Rollback Post to RevisionRollBack
"Any sufficiently advanced technology is indistinguishable from magic." --Arthur C. Clarke
So, can normal users not edit the descriptions of a map, only post comments? I'd love to see a more wiki format where users can contribute more directly to the descriptions and location information.
At this time your only option is to suggest seeds. You can give all kind of Information with the seed name.
After I recieved the first 20 suggestions i stopped working for the user submit script. Not a single suggestion had even 20% of the needed Information in it. And if they had these 20% there were coordinates wrong or crappy screenshots etc.
Every 5th Seed i recieve is called Anal Penetraition or whatnot.
And scince we want only high quality Information for the seeds I decided not to enable user submits.
BUT - if anyone is interested in becoming Moderator on minecraft-seeds.net, you're welcome.
One more question: Are you the midnightlightning that posted this site (http://midnightdesign.ws/random/in_the_air/) on minecraft-seeds ?
I totally loved the idea of combining Google Maps with Cartograph maps. Is -1784338777788894343 the only one or are there even more ?
Quote from PQ »
Oh wow, this is awesome! I just bookmarked it. :happy.gif:
I just tried the seed Crash and have been in love with it. I found 2 dungeon spawners that were connected. D:
Could you tell us the coordinates? Maybe we will add the seed.
One more question: Are you the midnightlightning that posted this site (http://midnightdesign.ws/random/in_the_air/) on minecraft-seeds ?
I totally loved the idea of combining Google Maps with Cartograph maps. Is -1784338777788894343 the only one or are there even more ?
Yes, that's me. The Map in the Air Googlemap is a custom project of mine, and it's is the only one I've done, but Tectonicus does something similar (though with an oblique view, and no custom location points).
Rollback Post to RevisionRollBack
"Any sufficiently advanced technology is indistinguishable from magic." --Arthur C. Clarke
One more question: Are you the midnightlightning that posted this site (http://midnightdesign.ws/random/in_the_air/) on minecraft-seeds ?
I totally loved the idea of combining Google Maps with Cartograph maps. Is -1784338777788894343 the only one or are there even more ?
Yes, that's me. The Map in the Air Googlemap is a custom project of mine, and it's is the only one I've done, but Tectonicus does something similar (though with an oblique view, and no custom location points).
Another amazing feature is now added to the site:
Users can add seeds on their own. Foor this, there is another site named "all user seeds" where you can check and comment the user seeds.
Thank you very much!
This will help us a lot. We will insert the new search function and the upload function to the site as soon as possible.
█ Premium Minecraft Server Hosting | Managed Servers | Bukkit Support | Voice Servers
█ Website | http://www.zioinc.com/
█ 24 x 7 Ticket Support | Live Chat | MSN and AIM | 5 Man MC Team
I just tried the seed Crash and have been in love with it. I found 2 dungeon spawners that were connected. D:
"Any sufficiently advanced technology is indistinguishable from magic." --Arthur C. Clarke
At this time your only option is to suggest seeds. You can give all kind of Information with the seed name.
After I recieved the first 20 suggestions i stopped working for the user submit script. Not a single suggestion had even 20% of the needed Information in it. And if they had these 20% there were coordinates wrong or crappy screenshots etc.
Every 5th Seed i recieve is called Anal Penetraition or whatnot.
And scince we want only high quality Information for the seeds I decided not to enable user submits.
BUT - if anyone is interested in becoming Moderator on minecraft-seeds.net, you're welcome.
One more question: Are you the midnightlightning that posted this site (http://midnightdesign.ws/random/in_the_air/) on minecraft-seeds ?
I totally loved the idea of combining Google Maps with Cartograph maps. Is -1784338777788894343 the only one or are there even more ?
Could you tell us the coordinates? Maybe we will add the seed.
Yes, that's me. The Map in the Air Googlemap is a custom project of mine, and it's is the only one I've done, but Tectonicus does something similar (though with an oblique view, and no custom location points).
"Any sufficiently advanced technology is indistinguishable from magic." --Arthur C. Clarke
I added a link to your project :smile.gif:
http://minecraft-seeds.net/view/24/-1784338777788894343
Hope this helps you
Users can add seeds on their own. Foor this, there is another site named "all user seeds" where you can check and comment the user seeds.