Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Port added to hostname on picture link to original image
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3651
Page 1 of 1

Author:  honk [ 3. Mar 2014, 17:34 ]
Post subject:  Port added to hostname on picture link to original image

Hi

I am running TWG on port 8080 behind my router.
The router is mapping its port 80 to port 8080 on my webserver.
Everything is running fine except for the link that is generated by TWG for the full size images.
It always adds :8080 to the hostname, which of course can not be reached outside my LAN.

I assume this to be a bug?
Any ideas how it can be fixed / worked around?

Thanks
Best
Markus

Author:  TinyWebGallery [ 4. Mar 2014, 14:19 ]
Post subject:  Re: Port added to hostname on picture link to original image

Can you tell me exacly which images you mean.
I use the port only at a few places but it is might be added somehtere automatically because your server runs with 8080.

Best, Michael

Author:  honk [ 4. Mar 2014, 15:00 ]
Post subject:  Re: Port added to hostname on picture link to original image

Hi

i.e. if I click on the zoomed pic.
The resulting link that does not work looks like

http://host.at:8080/i_frames/i_popup.ph ... G_NAME.JPG

Best
Markus

Author:  TinyWebGallery [ 4. Mar 2014, 15:19 ]
Post subject:  Re: Port added to hostname on picture link to original image

o.k.

Please open inc/filefunctions.inc.php and search for
function getTWGHttpRoot($dirfix = '', $useport = true)
Then change useport to false:
function getTWGHttpRoot($dirfix = '', $useport = false)

Save and retry.

Best, Michael

Author:  honk [ 5. Mar 2014, 07:00 ]
Post subject:  Re: Port added to hostname on picture link to original image

Great, thank you.
That did the job!

Author:  TinyWebGallery [ 5. Mar 2014, 17:35 ]
Post subject:  Re: Port added to hostname on picture link to original image

I'll add a switch into the next version also.

Best, Michael

Author:  Steve Bassen [ 2. May 2014, 05:33 ]
Post subject:  Re: Port added to hostname on picture link to original image

Dragging this one back up...

I've got a somewhat related question/problem when using TWG. I'm running internally and externally on 8080. Using http://hostname.com:8080 works fine for just about everything (thumbnails, etc, all work). Clicking on an image to launch it full screen, however, fails to append :8080 in the launched browser window. Messing with the $useport option does not seem to have any effect on the behavior... suggestions?

Author:  TinyWebGallery [ 2. May 2014, 10:55 ]
Post subject:  Re: Port added to hostname on picture link to original image

Fullscreen means when the original image is used or a popup?

Best, Michael

Author:  Steve Bassen [ 2. May 2014, 14:08 ]
Post subject:  Re: Port added to hostname on picture link to original image

The popup window that is launched after clicking the large thumbnail version of an image.
i.e.: http://hostname.com/i_frames/i_popup.php?twg_album=albumname&twg_show=Untitled-04.jpg

Author:  TinyWebGallery [ 2. May 2014, 20:52 ]
Post subject:  Re: Port added to hostname on picture link to original image

o.k. - i'll check the code there...

Author:  TinyWebGallery [ 3. May 2014, 09:32 ]
Post subject:  Re: Port added to hostname on picture link to original image

I checked the code and the behavoir is not logical. Because the popup opens with a link that is created from the link that renders the image itself (image.php is replaced by i_frames/i_popup.php). So you should not see the detail image also...

Can you check if the link that is defined at the id="adefaultslide" ?

And how is the setup for the download of an image?

Best, Michael

Author:  Steve Bassen [ 12. May 2014, 04:11 ]
Post subject:  Re: Port added to hostname on picture link to original image

Oops, didn't have the useport setup correctly, looks like its' working now. Thanks!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/