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

Link to overview not working
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=640
Page 1 of 1

Author:  van [ 23. Nov 2006, 20:05 ]
Post subject:  Link to overview not working

Hello Michael,

A small thing:

I have 3 over view pages now.

When I click on an album in the first overview page I am taken to the detail page for that set.

On that detail page is an "up arrow" at the top center of the page.

When I click on that arrow it should return me to the overview page that I was on.

This works when I look at albums on the second or third overview page.

When I go to an album from the first overview page and then click on this "up arrow" it returns me not back to the first page but sometimes to the second page and sometime to the third page.

How/Where do I correct this link?

No rush.

Thank you again.

Author:  TinyWebGallery [ 23. Nov 2006, 23:36 ]
Post subject: 

normally twg checks which picture you have showed last and looks for the overviewpage where you came from - if you have a step by step example i can look at I'll take a look when I have time.

/Michael

Author:  TinyWebGallery [ 24. Nov 2006, 21:47 ]
Post subject: 

can you please make a step by step example ?

/Michael

Author:  van [ 24. Nov 2006, 23:44 ]
Post subject: 

Hello Michael,

When I click on any album I am taken to the detail page.
At the top of the detail page are the navigation arrows.
On the detail page (with the thumbs for the album) there is only one arrow pointing up.
When you click on this arrow it should take you bak to the page that you came from.
Intermittently, when I click on the arrow it takes me to the second or third page of the overview instead of back to the first page of the overview.
This only happens when I view albums listed on the first page of the overview.
Albums viewed from the second and third page of the overview seem to always go back to the right page.
This behavior does not always occur so I can not tell you to click on any specific album. But when I does occur you can see that the link back is incorrect as the offset parameter points else where.

As well on an intermittent basis my topx reads -3 insted of 5.
When I check in the config.php file or myconfig.php it is set correctly at 5.

Thanks for taking a look at it.
Your help is appreciated.

If you need more info let me know.

Author:  TinyWebGallery [ 25. Nov 2006, 00:33 ]
Post subject: 

about the topx - are you sure you have set it to a fixed value? because by default it calculate it.

why do you have on some pages 4 and on some 10 thumbs displayed?
have you set autodetect number of thumbs to true?

make sure the value is set in the my_config.php!

/Michael

Author:  van [ 25. Nov 2006, 01:14 ]
Post subject: 

Hello Michael,

$autodetect_maximum_thumbnails=true

Set to true in both my_config and config.php



$number_top10 = 5; is in myconfig.php

$number_top10 = ($thumbnails_x * ($thumbnails_y -2)) + 1; is in config.php

$number_top10 = 5; This number was set using the configuration page in the Images tab.

Is this the possible cause of problems?

Thanks again for your input.

Author:  TinyWebGallery [ 25. Nov 2006, 01:50 ]
Post subject: 

if you have

$autodetect_maximum_thumbnails=true

then twg check your screen resolution and displays as much thumbs as possible. this is why you get less thumbs if you make your browser smaller and press a couple of times reload ... if 4x1 is used you get the -3 if the formula is used.

it seems that the $number_top10 is not overwritten by my_config.php. do you have any config files in the pictures folder?

if you want a defined number of thumbs you have to set
$autodetect_maximum_thumbnails=false

/Michael

Author:  van [ 25. Nov 2006, 04:44 ]
Post subject: 

Hello Michael,

So I am going to set:
$autodetect_maximum_thumbnails=false
In both my_config.php and config.php
I prefer a defined number of thumbs per page with scroll bars if needed.

$number_top10 is not overwritten and I do not have any config files in the picture folders other then: folder, foldername, image and link.txt

How can I correct it so it gets overwritten or read only once?

Thanks again for your help

Author:  TinyWebGallery [ 25. Nov 2006, 12:26 ]
Post subject: 

I don't know why - but set in simply in the config.php and retry.

/Michael

Author:  van [ 26. Nov 2006, 07:26 ]
Post subject: 

Hello Michael,

Sorry it took so long to respond.
The next week is going to be very busy for me.
So if I am long in resonding it is just too much things to do.

Defining the topX is done 2 different ways:
1- With a formula in the config.php
2- With a statment in my_config.php

How should I define it only once in the config.php file,
with the formula or the statment?

$number_top10 = 5; is in myconfig.php

$number_top10 = ($thumbnails_x * ($thumbnails_y -2)) + 1; is in config.php


Thanks again and sorry for the long delay.

Author:  TinyWebGallery [ 26. Nov 2006, 08:41 ]
Post subject: 

statement

Author:  van [ 30. Nov 2006, 03:07 ]
Post subject: 

Hello Michael,

I made the change.

Now the topx is defined only in the cofig .php

Everything seems to be working great. :D

I will let it run and get back to you in a week or so.

Sorry again for the long delay responding.

Thank you for all of your help.

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