jreklund / php4dvd

php4dvd is an open source php/mysql powered movie database. Catalog your video collection with ease. Automatic update of information and images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$movies[m]

alain93 opened this issue · comments

Hello,
I'm trying to add the movie format in postertitle.html, alas format does not seem to be available.
I can return name, year with $movies[m]->name or $movies[m]->year, but not format.
Why is that?
and how could I show format?

Hello,

I have limited the number of columns returned from the database to get a performance boost.
You need to modify includes/movie.search.inc.php and add format.

From:

// Change what columns to get from the database (movie collection)
$columns = array();
if($templateName === 'poster' || $templateName === 'postertitle')
	$columns = array('`id`','`name`','`year`','`seen`','`own`','`favourite`','`tv`');

Into:

// Change what columns to get from the database (movie collection)
$columns = array();
if($templateName === 'poster' || $templateName === 'postertitle')
	$columns = array('`id`','`name`','`year`','`seen`','`own`','`favourite`','`tv`','`format`');

oh wow! thanks, this thing was driving me nuts :)