Page 1 of 1

Banner Rotate

Posted: 31 Dec 2015, 17:03
by alexhenes
Hey Karl...

My PM has been sitting in the outbox since last night... not sure if you received it or not. Here is the latest.
----------
The banners are now showing but they are not the always the correct ones for a given section. For example...

The skiing-banner.gif banner is shows up in the Mountaineering section. The Mountaineering section get the mountaineering-banner.gif banner.

Also... as the user drills deeper into a section the banners change.

Each of the other sections seem to get random banners as well... and not always the same banner on different visits to the sections.

Re: Banner Rotate

Posted: 01 Jan 2016, 00:48
by mjau-mjau
Do you have panel access for me?

Re: Banner Rotate

Posted: 01 Jan 2016, 02:42
by alexhenes
Just sent

Re: Banner Rotate

Posted: 01 Jan 2016, 03:34
by mjau-mjau
Fixed.

For some reason, the script executes before the browser is aware of the URL change (ajax). I just added a 1ms delay to the script execution, to make sure the NEW url path is taken into consideration when looking up what banner to use for a specific PATH.

Re: Banner Rotate

Posted: 01 Jan 2016, 08:18
by alexhenes
Perfect... Thanks!!!