Page 1 of 6

Modification of PK's MovieDB [UPDATE 2009-06-04]

Posted: 2009-06-04 11:49:49
by alex1
PKs Movie Database 3.0.3
custom modification v0.9 by alex1

original thread: viewtopic.php?t=3429&start=520

English, French, German, Spanish, Italian, Polish, Slovenian

Image


Features: (different to PKs MovieDB)
  • - cache files as JPEG instead of PNG (~90% less space and traffic)
    - new views: MiniCover (small covers, 7 in a row each 120px height) and BigCover (huge covers - 450px height, extended 1200px-width-layout)
    - optimized panels and search
    - show full imdb-/rating-stars (+ lightbox for info-link)
    - badges for mediatype (lowres, 720p, 1080p), audioformat (ac3, dts, mp3), videoformat (avc, divx, xvid)
    - added lightboxes (www.randomous.com) to view movie-infos without pop-ups or leaving the page (description, actors, url on ratings etc.)
    - customized and optimized all original view-types (cover, list, details)
    - massive info about movie in "details"-view (added actors, extendable description, info about file like videoformat, bitrate - without much loss of space!
    - extended stylesheet
    - full view of cover in Detail-view by clicking the image
    - removed annoying "random"-feature
    - removed copyrights and other stuff like to have a better overview (sorry for that PK)
    - added slovenian.inc, thanks to mking!
Known Bugs:
  • - not returning to page 1 when searching
    - a link in a lightbox opens in the box instead of in the original window
Screenshots:
1, 2, 3, 4, 5, 6, 7

Download: (407KB, please don't mirror or direct-link it)
http://alexirsi.czerrahn.de/dl/download.php?id=9

If you don't know how to install it, go away! :D
Just kidding, it's easy to install, just read the readme from PK's package.

It's unfinished, so please post your bug-reports and comments here!

Posted: 2009-06-04 11:51:41
by alex1
<reserved for further things>

Posted: 2009-06-05 13:19:41
by mking
Image older
Image new

Some categories missing. Missing, still on the left side: country and subtitles.

Posted: 2009-06-05 16:05:15
by alex1
You can change your panels in mdb_config.inc.

To list more categories, modify this part:

Code: Select all

$this->config['panels'][3]['dbfield'] = "CATEGORY";
$this->config['panels'][3]['display'] = TRUE;
$this->config['panels'][3]['minimum'] = 3;
Change the bottom-line with the "minimum" to a lower value.
For example:

Code: Select all

$this->config['panels'][3]['dbfield'] = "CATEGORY";
$this->config['panels'][3]['display'] = TRUE;
$this->config['panels'][3]['minimum'] = 1;
---

The country should be shown by default.

You can show the subtitles by changing this:

Code: Select all

$this->config['panels'][10]['dbfield'] = "SUBTITLES";
$this->config['panels'][10]['display'] = FALSE;
$this->config['panels'][10]['minimum'] = 1;
Into this:

Code: Select all

$this->config['panels'][10]['dbfield'] = "SUBTITLES";
$this->config['panels'][10]['display'] = TRUE;
$this->config['panels'][10]['minimum'] = 1;
---

Thanks for your slovenian.inc by the way!

Posted: 2009-06-11 00:23:31
by sandmanweb
Good work :)

I'm glad someone takes the relay. I tought this template was abandonned :P

I'm waiting for the 1.0 release to try it on my database.

But it's looking great :)

I didn't do a lot of work on this template.

But if you like it, you can add my modifications. This add the option to rate movies and comments by visitors. Does not require login for now.

I didn't have the knowledge to integrate it to the core of the templste. So I used Iframes to display external PHP files...

My files consist of:
(traitementnote.php;traitementtexte.php;notesdetails.php;commentaires.php;comconfig.php)

Download my template here:
http://www.mediafire.com/download.php?gwoujzmmk0v

Good luck :)

Posted: 2009-06-21 15:50:45
by rumik
Please help me how to install this template THX

Posted: 2009-06-22 07:41:33
by mking
REQUIREMENTS
------------
1. PHP4+
2. MySQL Server 4.1+
3. ANT Movie Catalog export to a MySQL Database
4. At least some knowledge of standard HTML and PHP processes.


INSTRUCTIONS
------------
1. Download ANT Movie Catalog to build your movie database.
2. Put these files someplace on your webserver.
3. Open mdb_config.inc to review and edit all the options you have available.

Code: Select all

$this->config['mysql']['server']    = "localhost";
$this->config['mysql']['username']  = "root";
$this->config['mysql']['password']  = "password";
$this->config['mysql']['database']  = "moviedb";
$this->config['mysql']['table']     = "moviedb_table";

4. Export your Movie Database as SQL, check the option for include images.
5. Import the SQL into your MySQL Database on the server, and upload the images to the server.

error after installation

Posted: 2009-07-16 13:42:53
by quakie
i've got this error message

Fatal error: Call to undefined function: filter_var_array() in /mnt/166/sdb/6/3/quakie59/films/mdb3.php on line 89

why ?

Thanks

Posted: 2009-07-16 18:55:55
by alex1
I think that happens when you haven't got PHP v5.2.0 or higher.
Try XAMPP or install PHP > 5.2.0 manually.

Posted: 2009-08-09 14:37:27
by nickybut
Hy,
With this package, i have this problem :
Notice: Use of undefined constant NUM - assumed 'NUM' in C:\Program Files\EasyPHP3.1\www\moviedb_alex\mdb3.php on line 362

Deprecated: Function split() is deprecated in C:\Program Files\EasyPHP3.1\www\moviedb_alex\template.inc on line 115

I use easyphp : PHP 5.30, Mysql 5.1.

At the beginning, i was forced to create manually the PERIOD column.

Is anyone can help me ?

big thanks to Alex1 for his work.

Posted: 2009-08-11 17:16:30
by Sguilly
Hi Alex,

First I would like to say thanks for your efforts updating this template, it has encouraged me to move my movie database from my local network to being hosted on the web.

Had a couple of questions about a few things I had to change.

I also had the PERIOD problem mentioned by Nicybut but just commented out the entries in the mdb_config.inc file:

//----$this->config['panels'][6]['dbfield'] = "PERIOD";
//----$this->config['panels'][6]['display'] = FALSE;
//----$this->config['panels'][6]['minimum'] = 1;

What is the PERIOD entry, I dont have this as an available table entry when exporting from ANT?

Also by default you have your template displaying the TRANSLATEDTITLE before the ORIGINALTITLE, personal preference I guess?

I also added entries for the MEDIA to be displayed in multiple views as I use this to number/ref my disks, maybe be useful for others?

Image


Image


Image


Sguilly

Re: error after installation

Posted: 2009-08-13 12:12:15
by Pinonono
quakie wrote:i've got this error message

Fatal error: Call to undefined function: filter_var_array() in /mnt/166/sdb/6/3/quakie59/films/mdb3.php on line 89

why ?

Thanks
Idem :??:

Posted: 2009-08-20 15:51:19
by stelzi76
Great Template, but in my database there are no covers shown. is there a limit of size?

Posted: 2009-08-24 07:09:01
by mking
stelzi76 wrote:Great Template, but in my database there are no covers shown. is there a limit of size?
No limit
Sguilly wrote:I also added entries for the MEDIA to be displayed in multiple views as I use this to number/ref my disks, maybe be useful for others?
Please tell how and what added.

Re: big thanks to Alex1 for his work.

Posted: 2009-08-30 15:37:31
by mking
Sguilly wrote:
I also had the PERIOD problem mentioned by Nicybut but just commented out the entries in the mdb_config.inc file:

//----$this->config['panels'][6]['dbfield'] = "PERIOD";
//----$this->config['panels'][6]['display'] = FALSE;
//----$this->config['panels'][6]['minimum'] = 1;

What is the PERIOD entry, I dont have this as an available table entry when exporting from ANT?
Period is this:

1900 - 1939
1940 - 1949
1950 - 1959
1960 - 1969
1970 - 1979
1980 - 1989
1990 - 1999
2000 - 2004
2005 - 2009

Posted: 2009-09-10 08:38:51
by J.P.
i have one problem.
i have tree movie beethoven's 3th, beethoven's 4th and beethoven's 5th.
It's show first 4 than 5 and than 3.
I wanted that it's show first 3 than 4 and than 5.
When i get the mouse point on the picture than i see the text beethoven by beethoven's 4th and beethoven's 5th. By beethoven's 3th i see the text beethoven's 3th when i have the mouse on the picture.

How can i change this.

Sorry for my bad englisch...

You can see it here.

Posted: 2009-09-11 12:34:33
by J.P.
J.P. wrote:i have one problem.
i have tree movie beethoven's 3th, beethoven's 4th and beethoven's 5th.
It's show first 4 than 5 and than 3.
I wanted that it's show first 3 than 4 and than 5.
When i get the mouse point on the picture than i see the text beethoven by beethoven's 4th and beethoven's 5th. By beethoven's 3th i see the text beethoven's 3th when i have the mouse on the picture.

How can i change this.

Sorry for my bad englisch...

You can see it here.
I now what the proble is but not how to chanche it.

The difference is between the n and s (’ and ')
Beethoven’s 3th
Beethoven's 3th
If i have Beethoven’s 3th in FORMATTEDTITLE than i see Beethoven’s 3th
But if i have Beethoven's 3th in FORMATTEDTITLE than i only see Beethoven.
What can i do so it also read '

Posted: 2009-09-13 19:11:58
by alex1
Got the same problem and no solution, sorry.

Posted: 2009-09-14 21:17:20
by axelv
Hi,

I want to insert the "media label" of every film in my home page.

Someone can help me??

Sorry for my english...

Posted: 2009-09-16 05:09:03
by mking
I put in detail_view.tpl for media type:

Code: Select all

<table >
                <tr>
                  <td width='9%'  align='left'><b>$LANG[MEDIATYPE]:</b></td>
				  <td width='80%'  widh='50%' talign='left'><a href='$MOVIE[MEDIATYPE_HREF]'>$MOVIE[MEDIATYPE] </a></td>
                </tr>
             </table>