[SOLVED] Image URLs?

Shredder

Joined: 2005-04-28
Posts: 28
Posted: Thu, 2005-04-28 19:13

Hey everyone.. I searched and couldnt find.. and I am not a php guy or anything.
BUT, in my gallery1 instalation I could just right click on an image and get its properties, copy the url, then paste it with a imgsrc tag to diplay the image on another site..
With my gallery2 instalation it is php for the image location. I was pretty sure it was a setting in gallery1 to make it do it one way or the other.
Is it the short URL setting?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-28 19:36

- this url you get from the image properties is actually an image url, it just doesn't look like it. you can test it by browsing to this url. what you get is an image.
- but if you want urls that really look like image urls, go to site admin -> modules and activate the url rewrite module.

 
Shredder

Joined: 2005-04-28
Posts: 28
Posted: Thu, 2005-04-28 20:22
valiant wrote:
- this url you get from the image properties is actually an image url, it just doesn't look like it. you can test it by browsing to this url. what you get is an image.
- but if you want urls that really look like image urls, go to site admin -> modules and activate the url rewrite module.

Yeah, I tried using the long urls on the site and it didnt seem to work.. thats why I am trying to do the shorter ones.
I was allready in the process of trying that mod to see if that fixed it and I ran into a snag..
There was no .htaccess file in my gallery2 directory.. so I coppied the text from the mod config page and pasted it into a .htaccess file and uploaded it.

I am getting the " Cannot write to the .htaccess file." error

what should I CHMOD the file and or directory too? is that the problem?

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Thu, 2005-04-28 22:03

the .htaccess file doesnt need to contain anything, all Gallery need is write access to it
chmod a+rw .htaccess

 
Shredder

Joined: 2005-04-28
Posts: 28
Posted: Thu, 2005-04-28 23:17
pelle wrote:
the .htaccess file doesnt need to contain anything, all Gallery need is write access to it
chmod a+rw .htaccess

so thats 777 right?
I did that and then I could activate the short URLs.. but now I cant access any of the galleries.

here is the error report

Error (ERROR_MISSING_OBJECT): Me

* in file modules/core/classes/GalleryUrlGenerator.class at line 477 (gallerystatus::error)
* in file main.php at line 86 (rewriteurlgenerator::parsecurrenturl)
* in file main.php at line 46
* in file main.php at line 39

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-28 23:23

Shredder, what G2 version are you running? beta 2? or a nightly snapshot from when?

 
Shredder

Joined: 2005-04-28
Posts: 28
Posted: Thu, 2005-04-28 23:32
valiant wrote:
Shredder, what G2 version are you running? beta 2? or a nightly snapshot from when?

its gallery2 beta 1

I am putting last nights snapshot on a different server of mine to test.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-04-29 00:06

might be a very good idea to upgrade.

 
Shredder

Joined: 2005-04-28
Posts: 28
Posted: Fri, 2005-04-29 00:39

Ok, well I installed last nights gallery2 on a different server..
it seems to work now :)
guess it was a bug in beta1