Planetside Software Forums

General => Terragen Discussion => Topic started by: MeltingIce on January 13, 2007, 03:15:44 PM

Title: Forum User Gallery
Post by: MeltingIce on January 13, 2007, 03:15:44 PM
I have set up a gallery where users from this forum can upload and share their images more easily.  Go to http://terragen.meltingice.net to access it and just click the Users link at the top right to register.  To upload a photo, click on either the Terragen 0.9 or Terragen 2 category (depending on which you want to upload to) and upload your images!
Title: Re: Forum User Gallery
Post by: groverwa on January 13, 2007, 06:57:53 PM
gday

just registered and posted "Boulder Island"

Mike
Title: Re: Forum User Gallery
Post by: Will on January 13, 2007, 06:58:46 PM
Neat, thanks man :)
Title: Re: Forum User Gallery
Post by: ProjectX on January 17, 2007, 04:20:26 AM
this is a great resource to get the community's artwork all together. Should definitely be stickied.

BTW> I couldn't find this at all from your main site.
Title: Re: Forum User Gallery
Post by: Kevin F on January 17, 2007, 05:11:34 AM
Thanks for this great resource. Much appreciated.
Kevin.
Title: Re: Forum User Gallery
Post by: MeltingIce on January 17, 2007, 10:53:59 AM
Quote from: ProjectX on January 17, 2007, 04:20:26 AM
this is a great resource to get the community's artwork all together. Should definitely be stickied.

BTW> I couldn't find this at all from your main site.
Yea, I don't have it linked there currently, I guess I should add it, thanks for reminding me  ;).  Someone please sticky this too please.
Title: Re: Forum User Gallery
Post by: Oshyan on January 19, 2007, 08:06:52 PM
Topic is stickied. I also suggest other community owners post their own user gallery availability here. Here's a short list:

http://www.deviantart.com/
http://www.renderosity.com/
http://www.terranuts.com/
http://www.ashundar.com/

All offer free public galleries.

- Oshyan
Title: Re: Forum User Gallery
Post by: Will on January 19, 2007, 08:08:25 PM
Thanks for the Sticky :)

Regards,

Will
Title: Re: Forum User Gallery
Post by: MeltingIce on January 19, 2007, 11:24:07 PM
Thanks Oshyan  ;)
Title: Re: Forum User Gallery
Post by: ProjectX on January 21, 2007, 09:44:03 AM
cookies would be nice if possible, I hate having to sign in each time.
Title: Re: Forum User Gallery
Post by: MeltingIce on January 21, 2007, 11:22:35 AM
Quote from: ProjectX on January 21, 2007, 09:44:03 AM
cookies would be nice if possible, I hate having to sign in each time.
Yea I'm not sure whats up with that, I'll check into it now.
Edit: Hmm I think it is working, but for some reason the cookie doesn't last very long.  Heres what I found:

// create cookies for auto-sign-in
setcookie("rem_username", $userget->fields["username"], time()+7776000);
setcookie("rem_password", $userget->fields["password"], time()+7776000);
Title: Re: Forum User Gallery
Post by: Ricowan on January 21, 2007, 12:34:25 PM
That should set the life of the cookie to 90 days.  The number after time() is in seconds.
Title: Re: Forum User Gallery
Post by: MeltingIce on January 21, 2007, 12:39:50 PM
Quote from: Ricowan on January 21, 2007, 12:34:25 PM
That should set the life of the cookie to 90 days.  The number after time() is in seconds.

Yea it should but I don't think it is so I don't know what to do.
Title: Re: Forum User Gallery
Post by: Ricowan on January 21, 2007, 01:04:04 PM
I just registered on the site, and examined the cookies.  They are both set to expire on April 21st, so that part of the code is working.  After closing down all browsers I went back to the site and was asked to login, so it seems that the login process is ignoring the cookies.  They're being set, but not being read by the login code.

Rich
Title: Re: Forum User Gallery
Post by: MeltingIce on January 21, 2007, 01:47:56 PM
Quote from: Ricowan on January 21, 2007, 01:04:04 PM
I just registered on the site, and examined the cookies.  They are both set to expire on April 21st, so that part of the code is working.  After closing down all browsers I went back to the site and was asked to login, so it seems that the login process is ignoring the cookies.  They're being set, but not being read by the login code.

Rich

Alright thanks that helps to narrow it down, I'll check into it some more.
Title: Re: Forum User Gallery
Post by: dhavalmistry on January 24, 2007, 10:45:51 AM
Hey Melting Ice...I uploaded 2 images yesterday and they haven't showed up in the gallery yet....I was wondering.....are the renderings moderated???
Title: Re: Forum User Gallery
Post by: MeltingIce on January 24, 2007, 03:54:29 PM
Hmm... you must not be doing something right.  When you upload the picture, it immediately appears in the gallery since there is no moderation.  What format and filesize are the images you are trying to upload?  The gallery might not be accepting the images you are uploading.
Title: Re: Forum User Gallery
Post by: littlecannon on January 24, 2007, 04:23:48 PM
Hi MeltingIce, I just uploaded a couple of pics to your gallery. It's building up nicely. cheers, Simon. (I had no problem uploading) ;D
Title: Re: Forum User Gallery
Post by: MeltingIce on January 24, 2007, 04:54:22 PM
Quote from: littlecannon on January 24, 2007, 04:23:48 PM
Hi MeltingIce, I just uploaded a couple of pics to your gallery. It's building up nicely. cheers, Simon. (I had no problem uploading) ;D
Awesome, thanks for sharing your work.  Good to hear that you didn't have any problems uploading  :D
Title: Re: Forum User Gallery
Post by: dhavalmistry on January 25, 2007, 10:39:08 AM
Quote from: MeltingIce on January 24, 2007, 03:54:29 PM
Hmm... you must not be doing something right.  When you upload the picture, it immediately appears in the gallery since there is no moderation.  What format and filesize are the images you are trying to upload?  The gallery might not be accepting the images you are uploading.

I uploaded 2 (800x600) jpg's
Title: Re: Forum User Gallery
Post by: lollynada on January 26, 2007, 07:59:11 PM
ello there -  am trying to add some of my first TG2 piccies too... was trying to add smallish bitmap files,
as this is the file type that TG2 has been spitting out onto my PC.  However, 'it' said 'wrong file type'
- so should we load jpgs instead please?   ta v muchly   :) 
Title: Re: Forum User Gallery
Post by: lollynada on January 26, 2007, 08:07:00 PM
me again - answered me own question re: which file types...

converted all the .bmp pics to jpg pics in PS and sorted  :)

cheers!  :)
Title: Re: Forum User Gallery
Post by: Will on January 26, 2007, 08:20:44 PM
I would just like to say that all the work i've seen on the gallery are great, the new ones with the skeleton as well as the sun rises are neat keep it up gang :)

Regards,

Will
Title: Re: Forum User Gallery
Post by: MeltingIce on January 26, 2007, 11:10:21 PM
Quote from: Will on January 26, 2007, 08:20:44 PM
I would just like to say that all the work i've seen on the gallery are great, the new ones with the skeleton as well as the sun rises are neat keep it up gang :)

Regards,

Will
What Will said  :P  Excellent work everyone, looks like we are starting to get the hang of this program ;D
Title: Re: Forum User Gallery
Post by: MeltingIce on February 07, 2007, 11:56:53 AM
It seems that the gallery is becoming a little too popular and my MySQL database can't take so many hits at once.  I'll see if theres anything I can do about it.
Title: Re: Forum User Gallery
Post by: Dark Fire on February 07, 2007, 12:45:17 PM
Your gallery really is amazing...

Quote from: MeltingIce on February 07, 2007, 11:56:53 AM
It seems that the gallery is becoming a little too popular and my MySQL database can't take so many hits at once.  I'll see if theres anything I can do about it.
Perhaps you could stop using the MySQL database and swtich to a file-based database. I've always used a files to store data that would normally go in a database for several reasons:
1. It's easier to write to and read from files in PHP than to write to and read from MySQL.
2. It's easier to wipe out any spam that accumulates - all you have to do is delete the offending file(s).
3. Using the database requires more things to be working at the same time, and thus reduces the reliability of the website.

My blog (http://www.emptosoft.plus.com/blog/) is based on files containing the post and comment data, and it has always worked brilliantly!
Title: Re: Forum User Gallery
Post by: MeltingIce on February 07, 2007, 02:47:58 PM
That is a good idea, except how would people be able to have a username so that they could identify each picture to be their own?
Title: Re: Forum User Gallery
Post by: old_blaggard on February 07, 2007, 06:38:22 PM
When I write my gallery script, I'm going to have a gallery table that will store the data for the images (size, comments, user, etc) and have a PHP script dynamically generate the file and store the path in the table.
Title: Re: Forum User Gallery
Post by: Dark Fire on February 11, 2007, 03:10:19 PM
Quote from: MeltingIce on February 07, 2007, 02:47:58 PM
That is a good idea, except how would people be able to have a username so that they could identify each picture to be their own?
I'm still working on the security problems posed by having a user system powered by a file-based database. There are a number of potential solutions, but I'm not yet sure which is best.
Title: Re: Forum User Gallery
Post by: MeltingIce on February 11, 2007, 04:03:32 PM
What about just using .htaccess rules?
Title: Re: Forum User Gallery
Post by: 3DGuy on February 11, 2007, 04:14:06 PM
Quote from: Dark Fire on February 11, 2007, 03:10:19 PM
Quote from: MeltingIce on February 07, 2007, 02:47:58 PM
That is a good idea, except how would people be able to have a username so that they could identify each picture to be their own?
I'm still working on the security problems posed by having a user system powered by a file-based database. There are a number of potential solutions, but I'm not yet sure which is best.
Using just files for a database system is... well not the smartest thing IMHO. It'll work for small things, but when it grows and you have a need for relational data please use a proper database system.

Having said that, just move the files to a directory the user can't reach (i.e. out of the www directory. Then have the PHP system read those files.
Title: Re: Forum User Gallery
Post by: Dark Fire on February 12, 2007, 12:23:51 PM
Quote from: MeltingIce on February 11, 2007, 04:03:32 PM
What about just using .htaccess rules?
As I said before, there are a number of potential solutions. I am currently investigating which one is best. However, using .htaccess rules is looking like the best solution for me at the moment.

Quote from: 3DGuy on February 11, 2007, 04:14:06 PM
Quote from: Dark Fire on February 11, 2007, 03:10:19 PM
Quote from: MeltingIce on February 07, 2007, 02:47:58 PM
That is a good idea, except how would people be able to have a username so that they could identify each picture to be their own?
I'm still working on the security problems posed by having a user system powered by a file-based database. There are a number of potential solutions, but I'm not yet sure which is best.
Using just files for a database system is... well not the smartest thing IMHO. It'll work for small things, but when it grows and you have a need for relational data please use a proper database system.

Having said that, just move the files to a directory the user can't reach (i.e. out of the www directory. Then have the PHP system read those files.
It's definitely not the smartest thing, but I am far too lazy to use a proper database (more PHP code is required). Besides, I have found out that cleaning out spam is very easy with a file-based database. For example, it takes me about 10 seconds to delete all of the comments on posts on my blog that I know are abused by bots. However, backing up a proper database system is easier...
Title: Re: Forum User Gallery
Post by: old_blaggard on February 12, 2007, 12:30:30 PM
I would be interested to see what you end up doing.  I thought that file-based was definitely the way to go, but it seems like database-based also has its merits.  Gah... I  hate complications :P.
Title: Re: Forum User Gallery
Post by: Dark Fire on February 12, 2007, 12:34:09 PM
There is never a perfect way to do something with a computer. Unfortunately, that's a fact that nobody's going to change.
Title: Re: Forum User Gallery
Post by: 3DGuy on February 12, 2007, 02:03:21 PM
Quote from: Dark Fire on February 12, 2007, 12:23:51 PM
It's definitely not the smartest thing, but I am far too lazy to use a proper database (more PHP code is required). Besides, I have found out that cleaning out spam is very easy with a file-based database. For example, it takes me about 10 seconds to delete all of the comments on posts on my blog that I know are abused by bots. However, backing up a proper database system is easier...

Actually, with a proper database you need less code ;) It takes 1 line of code to retrieve data from multiple tables into a single dataset, and maybe 5 to generate a complete HTML page from that. whereas with flat files you'll need a page of code. With a good front-end for your database deleting spam is just as simple.
Title: Re: Forum User Gallery
Post by: Dark Fire on February 12, 2007, 06:46:50 PM
Quote from: 3DGuy on February 12, 2007, 02:03:21 PM
It takes 1 line of code to retrieve data from multiple tables into a single dataset, and maybe 5 to generate a complete HTML page from that.
I've never really understood how to do that. I prefer my method because I understand it very well, and it doesn't need a page of code - my comment submission system only needs 850 bytes of code, and my comments pages (like this one (http://ccgi.emptosoft.plus.com/blog/ireland/rte_update_feb_07)) are only powered by 3.16KB of code.
Title: Re: Forum User Gallery
Post by: ProjectX on February 19, 2007, 10:01:04 AM
uhhh... what happened to all the images?

Most of them are broken links
Title: Re: Forum User Gallery
Post by: Dark Fire on February 19, 2007, 01:39:14 PM
Quote from: ProjectX on February 19, 2007, 10:01:04 AM
uhhh... what happened to all the images?

Most of them are broken links
Forget the 'most' bit. I think all of the thumbnails of the user-submitted images in the gallery are broken, but the links to the originals still work. I think the problem is with this file: http://www.meltingice.net/usergallery/generators/thumbnail.php
Title: Re: Forum User Gallery
Post by: buzzzzz on February 19, 2007, 07:48:49 PM
Well that Gallery didn't last long?
Title: Re: Forum User Gallery
Post by: twistednoodle on February 19, 2007, 08:15:59 PM
Damn that was such a good idea!  I liked that you could look at the image and the owner could give you a bit of an idea how they created the image - shame, lets hope it comes back! 8)
Title: Re: Forum User Gallery
Post by: Will on February 19, 2007, 08:26:53 PM
He will fix it don't worry guys.

Regards,

Will
Title: Re: Forum User Gallery
Post by: buzzzzz on February 20, 2007, 09:01:22 AM
Hey it's fixed! Thanks Ryan! ;D
Title: Re: Forum User Gallery
Post by: MeltingIce on February 20, 2007, 09:50:53 AM
Whoa what happened, I didn't do anything lol.  Must have been related to me messing around with my php.ini file.  I had no clue the gallery was down, sorry about that guys  :P
Title: Re: Forum User Gallery
Post by: Dark Fire on February 20, 2007, 03:59:29 PM
Hehe...Silly MeltingIce. It is always hard, when you have such a large website, to be sure that everything is working...
Title: Re: Forum User Gallery
Post by: MeltingIce on February 20, 2007, 04:29:13 PM
Quote from: Dark Fire on February 20, 2007, 03:59:29 PM
Hehe...Silly MeltingIce. It is always hard, when you have such a large website, to be sure that everything is working...
Yea tell me about it.  To be honest, sometimes I forget about certain parts of my website.  And out of nowhere I'll think, oh wow... I should probably check up on that part to make sure its still working fine.  I have my blog, designpaths, designpaths forums, terragen users gallery, tgd repository, meltingice hd wallpapers, and now the meltingice file system thingy.  I probably forgot about something too lol
EDIT: I was right, I forgot about a wiki I have running on my server.  Not too many people go there anymore though, I just keep it up in case anyone is feeling nostalgic.
Title: Re: Forum User Gallery
Post by: buzzzzz on February 20, 2007, 05:04:50 PM
Quote from: MeltingIce on February 20, 2007, 04:29:13 PM
Quote from: Dark Fire on February 20, 2007, 03:59:29 PM
Hehe...Silly MeltingIce. It is always hard, when you have such a large website, to be sure that everything is working...
Yea tell me about it.  To be honest, sometimes I forget about certain parts of my website.  And out of nowhere I'll think, oh wow... I should probably check up on that part to make sure its still working fine.  I have my blog, designpaths, designpaths forums, terragen users gallery, tgd repository, meltingice hd wallpapers, and now the meltingice file system thingy.  I probably forgot about something too lol
EDIT: I was right, I forgot about a wiki I have running on my server.  Not too many people go there anymore though, I just keep it up in case anyone is feeling nostalgic.

Ever thought about incorporating then into One Site?? That way all your kids would be in one house and then you only need One Roll of Duct Tape. ;)
Title: Re: Forum User Gallery
Post by: MeltingIce on February 20, 2007, 06:45:44 PM
Quote from: buzzzzz on February 20, 2007, 05:04:50 PM
Quote from: MeltingIce on February 20, 2007, 04:29:13 PM
Quote from: Dark Fire on February 20, 2007, 03:59:29 PM
Hehe...Silly MeltingIce. It is always hard, when you have such a large website, to be sure that everything is working...
Yea tell me about it.  To be honest, sometimes I forget about certain parts of my website.  And out of nowhere I'll think, oh wow... I should probably check up on that part to make sure its still working fine.  I have my blog, designpaths, designpaths forums, terragen users gallery, tgd repository, meltingice hd wallpapers, and now the meltingice file system thingy.  I probably forgot about something too lol
EDIT: I was right, I forgot about a wiki I have running on my server.  Not too many people go there anymore though, I just keep it up in case anyone is feeling nostalgic.
Ever thought about incorporating then into One Site?? That way all your kids would be in one house and then you only need One Roll of Duct Tape. ;)
Whoaaa... lol actually that reminds me, I need to redo my meltingice network page so that it matches my blog design and I need to add a couple more sites to it  :P
Title: Re: Forum User Gallery
Post by: Dark Fire on February 21, 2007, 05:37:39 PM
Quote from: MeltingIce on February 20, 2007, 06:45:44 PM
...and I need to add a couple more sites to it  :P
EVEN MORE!? Wow...
Title: Re: Forum User Gallery
Post by: MeltingIce on February 21, 2007, 05:41:07 PM
Quote from: Dark Fire on February 21, 2007, 05:37:39 PM
Quote from: MeltingIce on February 20, 2007, 06:45:44 PM
...and I need to add a couple more sites to it  :P
EVEN MORE!? Wow...
Haha well right now all it shows is my blog, designpaths, meltingice hd and that terragen 2 resources site i threw together.
Title: Re: Forum User Gallery
Post by: MeltingIce on May 09, 2007, 09:31:18 PM
Will reported getting some 404 errors and some images not loading in the user gallery.  Is anyone else having this issue?
Title: Re: Forum User Gallery
Post by: nvseal on May 09, 2007, 10:09:44 PM
I'm getting the same thing.
Title: Re: Forum User Gallery
Post by: MeltingIce on May 10, 2007, 07:04:04 AM
I've been talking with my web host some, is anyone still getting the same issues?  Cause the site works fine for me...  :-\
Title: Re: Forum User Gallery
Post by: nvseal on May 10, 2007, 04:25:13 PM
I still get the 404 when I click an image. Then when I hit back some of the images are not shown.
Title: Re: Forum User Gallery
Post by: AK84711 on July 07, 2007, 09:18:24 PM
Can't even access the gallery at all...same 404, but am totally unable to access.
Title: Re: Forum User Gallery
Post by: old_blaggard on July 08, 2007, 03:03:01 AM
Maybe you should try emailing him directly - I'm not sure if he follows these forums anymore.
Title: Re: Forum User Gallery
Post by: Will on July 08, 2007, 08:24:06 AM
He left because he has too much going on now that he is out of school I think.
Title: Re: Forum User Gallery
Post by: MeltingIce on July 08, 2007, 11:36:24 AM
Hey guys, first the bad news.  I accidentally deleted the usergallery  :'(  I was ssh-ed into the terminal and without thinking, I accidentally typed rm -r usergallery instead of userdownload.  I was getting rid of the userdownload site because it was overrun with spambots and no one used it that often anyways.  However, the good news...  I think I can salvage everything.  While I deleted the usergallery files, I haven't gotten rid of the database yet.  And if I remember correctly, the images were stored IN the database.  I'll try reinstalling particle gallery later today and see if I can get it all back and running again  :)