Page 1 of 3

Free image hosting

Posted: Wed Jun 23, 2004 7:48 am
by THAWA
So you want to show some pictures, but you've got no place to upload them?

Simply click this link: http://thawa.net/gallery/
create an account, and check your e-mail to set a password.
and start uploading.

There's no real limit to how much you can upload, I doubt you'll all be using more than 6gb's of space for pics :D, so feel free to upload to your hearts content.

I've only got a few rules, nothing illegal, don't try to mess a bunch of stuff up, and if you have a suggestion please post it, I'll be happy to help however.

As far as the images, when you create an account it will create an album with a description you can set, then you can upload directly from your harddrive or from another website into your album. When you go to open your album the pictures will be thumbnail-sized like so:

Image

when you click the picture it will be displayed at about half size like so:

Image

and when you click that picture it will be displayed at full size like so:

Image

To get the direct link to the picture simply right click on the picture, and select properties (if using internet explorer), then copy what it says next to Address and that's the link. If you're using mozilla or something, right-click on the picture, and select Copy Image Location. I dunno about other web browsers, but if you cant figure it out just post and I'm sure someone will be able to help.

If you have anymore questions or problems please just post here.

EDIT: Thanks to vrg3 there is now text directly below the image that will post the image of the thumbnail that is clickable to fullsize like this:

Click for full size
Image

simply copy all the text in the box as it says, and paste it into your post.

Posted: Wed Jun 23, 2004 8:01 am
by legacy92ej22t
Man, that's great Hardy, thanks! :D

Posted: Wed Jun 23, 2004 8:16 am
by BAC5.2
Weee! Thanks Hardy!

Posted: Wed Jun 23, 2004 8:21 am
by BAC5.2
Sweet!

Image

Posted: Wed Jun 23, 2004 8:29 am
by THAWA
not a problem guys :)

Posted: Wed Jun 23, 2004 1:25 pm
by vrg3
This is awesome, THAWA.

Hey, we should hack Gallery to automatically produce the bbCode to have a thumbnailed link to the full-size image!

Posted: Wed Jun 23, 2004 3:10 pm
by entirelyturbo
W3RD!!! Thanks man! :D

THAWA = r0x0r!

Posted: Wed Jun 23, 2004 4:38 pm
by THAWA
vrg3 wrote:This is awesome, THAWA.

Hey, we should hack Gallery to automatically produce the bbCode to have a thumbnailed link to the full-size image!
hmmm, not anytime soon ;). I had enough trouble setting it up as it is. Gimme a few days to figure out all these settings and what they all mean. But are you thinking, of like just having a the text already typed under the picture or something that would be in BBCode? That "sounds" easy enough :)

I do want to make sure everyone is able to sign up fine and all that. Is everyone getting their e-mails, anyone have any problems yet?

Posted: Wed Jun 23, 2004 4:54 pm
by vrg3
Yes, that's what I was thinking of. Maybe I can take a stab at it...

Posted: Wed Jun 23, 2004 5:12 pm
by THAWA
just lemme know what files you need

Posted: Wed Jun 23, 2004 7:11 pm
by vrg3
Here, maybe try something like this... Edit view_photo.php and scroll down to the part that says this:

Code: Select all

/*
** Block for Caption, extra fields, comments and votes.
*/
?>
Try adding some code between the "*/" line and the "?>" line:

Code: Select all

/*
** Block for Caption, extra fields, comments and votes.
*/
$bbPhoto = $gallery->album->getPhoto($GLOBALS["index"]);
if ($bbPhoto->thumbnail) {
 $bbPath = $gallery->album->getAlbumDirURL("full");
 if (!ereg('^https?://', $bbPath)) {
  $bbPrev = 'http';
  if  (stristr($HTTP_SERVER_VARS['HTTPS'], "on")) {
   $bbPrev .= 's';
  }                  
  $bbPrev .= '://'. $HTTP_SERVER_VARS['HTTP_HOST'];
  $bbPrev .= $bbPath . "/" . $bbPhoto->image->name . "."
  $bbImg = $bbPrev . $bbPhoto->image->type;
  $bbThm = $bbPrev . "thumb." . $bbPhoto->image->type;
  echo "<div align=center>bbCode link:<br>"
  echo "[url=" . $bbImg . "]"
  echo "[img]" . $bbThm . "[/img]"
  echo "[/url]"
  echo "</div>"
 }               
}
?>
I've never done anything with PHP before, but that seems like it might work. I can't seem to set Gallery up on my web server; otherwise, I'd test it myself.

Posted: Thu Jun 24, 2004 5:54 am
by legacy92ej22t
THAWA wrote: anyone have any problems yet?
Ya, everytime I try to login it won't except my password. I then have to have an e-mail sent and set up a new one. Doing this gets me logged in but if I leave and come back I have to do the same thing all over again. :(

Posted: Thu Jun 24, 2004 6:24 am
by THAWA
hmm interesting, I'll see what I can find

I'll pm you a password to try and let me know if you can log in

How are you logging in btw?

Posted: Thu Jun 24, 2004 6:42 am
by THAWA
vrg3 wrote:Here, maybe try something like this... Edit view_photo.php and scroll down to the part that says this:

Code: Select all

/*
** Block for Caption, extra fields, comments and votes.
*/
?>
Try adding some code between the "*/" line and the "?>" line:

Code: Select all

/*
** Block for Caption, extra fields, comments and votes.
*/
$bbPhoto = $gallery->album->getPhoto($GLOBALS["index"]);
if ($bbPhoto->thumbnail) {
 $bbPath = $gallery->album->getAlbumDirURL("full");
 if (!ereg('^https?://', $bbPath)) {
  $bbPrev = 'http';
  if  (stristr($HTTP_SERVER_VARS['HTTPS'], "on")) {
   $bbPrev .= 's';
  }                  
  $bbPrev .= '://'. $HTTP_SERVER_VARS['HTTP_HOST'];
  $bbPrev .= $bbPath . "/" . $bbPhoto->image->name . "."
  $bbImg = $bbPrev . $bbPhoto->image->type;
  $bbThm = $bbPrev . "thumb." . $bbPhoto->image->type;
  echo "<div align=center>bbCode link:<br>"
  echo "[url=" . $bbImg . "]"
  echo "[img]" . $bbThm . "[/img]"
  echo "[/url]"
  echo "</div>"
 }               
}
?>
I've never done anything with PHP before, but that seems like it might work. I can't seem to set Gallery up on my web server; otherwise, I'd test it myself.
no good

Posted: Thu Jun 24, 2004 6:51 am
by legacy92ej22t
THAWA wrote: I'll pm you a password to try and let me know if you can log in
No good, still doesn't work.
How are you logging in btw?
I click on the login tab. It asks for my username and password. When I click submit the bottom, the area that says 'full name' or something gets my name in the box and that's it.

Posted: Thu Jun 24, 2004 6:54 am
by legacy92ej22t
Hmm, I just tried it again and this time it DID work with the password you gave me.

Posted: Thu Jun 24, 2004 6:58 am
by THAWA
hmm, are you putting the info in case sensatively? Does it show the wording Error: Invalid username or password above your username after you try to login?

Posted: Thu Jun 24, 2004 6:59 am
by THAWA
well thats good, try logging in and out to see if it still works, then change your pass and try a couple more times :)

Posted: Thu Jun 24, 2004 1:46 pm
by legacy92ej22t
Seems to be working now. :) I changed my password and it still worked. Did you do anything or am I having flashbacks from licking to many frogs?

Posted: Thu Jun 24, 2004 1:52 pm
by vrg3
THAWA - Didja get error messages? What were they?

Any chance you'd let me hack at the code running on the server sometime? I could probably make it work if I could see the effects and/or error messages.

Posted: Thu Jun 24, 2004 5:22 pm
by vrg3
Wow, I got a bunch of stuff wrong... try this:

Code: Select all

/*        
** Block for Caption, extra fields, comments and votes.
*/        
$bbPhoto = $gallery->album->getPhoto($GLOBALS["index"]);
if ($bbPhoto->thumbnail) {
 $bbPath = $gallery->album->getAlbumDirURL("full");
 $bbPrev = '';
 if (!ereg('^https?://', $bbPath)) {
  $bbPrev = 'http';
  if  (stristr($HTTP_SERVER_VARS['HTTPS'], "on")) {
   $bbPrev .= 's';
  }
  $bbPrev .= '://'. $HTTP_SERVER_VARS['HTTP_HOST'];
 }
 $bbPrev .= $bbPath . "/" . $bbPhoto->image->name . ".";
 $bbImg = $bbPrev . $bbPhoto->image->type;
 $bbThm = $bbPrev . "thumb." . $bbPhoto->image->type;
 $bbLink = "[url=" . $bbImg . "]";
 $bbLink .= "[img]" . $bbThm . "[/img]";
 $bbLink .= "[/url]";
 echo "<div align=center>bbCode link (copy and paste in its entirety):";
 echo "<form>";
 echo "<input size=64 value=\"$bbLink\">";
 echo "</form>";
 echo "</div>";
}
?>

Posted: Thu Jun 24, 2004 6:26 pm
by THAWA
Awesome, that worked perfectly. So far anyway :)

One thing though, It only displays that info on the medium sized and full sized images. I don't know if people might find it annoying to have to click the picture first to get the code, or if it's even possible to have it display under the thumbnail's. But I think we'll just leave well enough alone :D. Thanks vikash.

Matt, I didn't do anything but change your password, wierd that it would happen that like before though :?

Posted: Thu Jun 24, 2004 6:55 pm
by vrg3
Well, I figured that most people would be choosing pictures one-by-one to display. And it would probably clutter up the thumbnail view a lot to have it under each thumbnail... I could see making a link under each thumbnail to bring up the bbCode in a new window, but that's a lot of work. :)

So does this work?

Image

Posted: Thu Jun 24, 2004 6:56 pm
by vrg3
Cool! Image

Posted: Thu Jun 24, 2004 6:58 pm
by THAWA
yeah the lack of space would begin to suck after a while. Honestly this is great, but i'm just tryig to see all views :)

Yeah the link works, and also thanks again :D