jreklund / php4dvd

php4dvd is an open source php/mysql powered movie database. Catalog your video collection with ease. Automatic update of information and images.
GNU General Public License v3.0
83 stars 43 forks source link

New Select #45

Closed GoldMnaPro2014 closed 6 years ago

GoldMnaPro2014 commented 6 years ago

How to add a menu similar to the category, but only with the year?

jreklund commented 6 years ago

You will need to modify multiple files: includes/movie.search.inc.php

lib/db/Movies.class.php

includes/export.inc.php

includes/movie.autoupdate.inc.php

tpl/default/movies/collection/sidebar.html

tpl/default/javascripts/src/php4dvd.collection.js tpl/default/javascripts/src/php4dvd.js

PS. You can just search for 2017 and it will find all movies from that year. Or that got 2017 in the description.

GoldMnaPro2014 commented 6 years ago

I did all this before you sent it to me, but that's the problem, it displays the list and when I select the year, it does not look for it and even the URL does not seem to me.

jreklund commented 6 years ago

I'm afraid you did something wrong then. Without code, I cannot help you.

GoldMnaPro2014 commented 6 years ago

Here are all the files that I edited: https://yadi.sk/d/Ghu2LbPyWhJ9XA

jreklund commented 6 years ago

I don't really know where to start. You literally tared the code apart. I can't even test it...

includes/movie.search.inc.php

lib/db/Movies.class.php

includes/export.inc.php

includes/movie.autoupdate.inc.php

tpl/default/movies/collection/sidebar.html

tpl/default/javascripts/src/php4dvd.collection.js tpl/default/javascripts/src/php4dvd.js

GoldMnaPro2014 commented 6 years ago

Can you show it how everything should be?

jreklund commented 6 years ago

You can have a look on how I added "media types"/format. It will be similar.

https://github.com/jreklund/php4dvd/commit/876f398fe7c8c172bd4cbfc4dff100fab1882247 https://github.com/jreklund/php4dvd/commit/0c70247b4bbf326434b1e18de940a3be6ce04674