Menu

#89 Filters on homepage not working at all.

open
nobody
core (18)
5
2012-12-08
2009-06-08
Rodney Beck
No

Hi. I have just installed the latest VideoDB on Ubuntu 9.04 with the default LAMP package. Everything works fine except for the filters on the homepage.

When clicking on one of the filters (ABC, Unseen, Wishlist, etc), nothing happens. Rather, the little loading animation is displayed next to the search box and then disappears. I have tried every template, all without success. I have enabled/disabled multi-user support and even set a different default start page in the configuration but nothing seems to change it from the "All" setting.

Some of the themes change the URL to "?filter=ABC" but this still has no effect and the radio button defaults back to "All". I have logged out, reset my cookies, cleared the browser and VideoDB cache all to no avail.

Anyone have any ideas on what could possibly be happening?

Discussion

  • Rodney Beck

    Rodney Beck - 2009-06-08

    This is similar to 2704925 but all the movies do show up the homepage. It's just the filters that are not working.

     
  • Rodney Beck

    Rodney Beck - 2009-06-10

    Well, the problem appears to be that VideoDB isn't setting the "filter" variable when index.php is run. The fix for this is 4 simple lines of code (I'm sure there is probably a better way). I inserted this under:

    Line 52: session_set('listview', 'index.php');

    // set current filter
    if (isset($_POST['filter']))
    {
    seession_set('filter', $_POST['filter']);
    }

    Fixed my problem straight away.

     
  • Rodney Beck

    Rodney Beck - 2009-06-10

    Disregard my last post, the fix I needed was actually:

    // set current filter
    if (isset($_POST['filter']))
    {
    $filter = $_POST['filter'];
    }

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.