Page history tracking
The current methodology of tracking page history utilises two $_SESSION variables 'history' and 'picker'. This is not easy to use unless the feature consists of select category, use search picker, then deliver selected item.
Using these variables to track pages in features that repeatidly request the same page but with different content can be very time consuming to ensure correct pages are tracked to go 'Back' to. Parameters add, del, p_del are used differently on various pages causing further confusion.
A common page history tracking system should be implemented, maybe in page.php, which acts upon a single URL parameter hist which determines whether a page should be Added, Removed, or Replaced on the history stack. This would replace the existing search_hist functions in search.php.
Using these variables to track pages in features that repeatidly request the same page but with different content can be very time consuming to ensure correct pages are tracked to go 'Back' to. Parameters add, del, p_del are used differently on various pages causing further confusion.
A common page history tracking system should be implemented, maybe in page.php, which acts upon a single URL parameter hist which determines whether a page should be Added, Removed, or Replaced on the history stack. This would replace the existing search_hist functions in search.php.
Leave a comment
See revision:1483 and revision:1480 for updates.
See revision:1484 for update.
(In revision:1501) Modified the page history tracker in page.php to avoid possible conflicts with other modules. When the $_SESSION does not contain any 'hist' then an error is sent to the logfile and the returned page is index.php.
Refs* 246
Refs* 246
(In revision:1638) Updated the Video, TV, Music, Recent, and Configuration pages to use the new page history tracking.
Removed old search tracking from search.php.
Refs #246
Removed old search tracking from search.php.
Refs #246
(In revision:1642) Updated the Apple Trailer, Film Trailer, FTV Girls, Internet TV Bookmarks, RSS Feeds, Tfl, Web Bookmarks, YouPorn, and YouTube pages to use the new page history tracking.
Refs #246
Refs #246
(In revision:1648) Fixed the page history tracking after 'Select entire album' has been used. It would previously lose the selected categories reverting to all audio media.
Added logging of the page history stack.
Refs #246
Added logging of the page history stack.
Refs #246
(In revision:1649) Page history tracking improvements:
- Common page parameters such as page, any, last, search, thumbs now ignored when checking for page replacement.
- Calls to page_hist_current_update() should always use the full URL of the page. ie. http://192.168.0.2:8080/tv.php and not just tv.php.
Refs #246
- Common page parameters such as page, any, last, search, thumbs now ignored when checking for page replacement.
- Calls to page_hist_current_update() should always use the full URL of the page. ie. http://192.168.0.2:8080/tv.php and not just tv.php.
Refs #246
(In revision:1650) Updated the Refresh when using Browse by Filesystem to use the new page history tracking.
Refs #246
Refs #246
(In revision:1651) Updated the Manage Playlists pages to use the new page history tracking.
Refs #246
Refs #246
(In revision:1661) Fixed back button on 'Recently added' pages after a media type has been chosen.
Refs #246
Refs #246
(In revision:1663) Fixed the page history tracking when different series are selected on the TV series selected page.
Refs #246
Refs #246