Modification of PK's MovieDB [UPDATE 2009-06-04]
Ok, lets try and help you out.
This template needs a webserver and a database, most likely MySQL.
Easiest way to start trying things without an external webspace would be to grab xampp at apachefriends. After unpacking/installing you should get a webserver and MySQL running.
Now open your browser and goto http://localhost/ ,on the left side, click on securitycheck and set a password for MySQL.
Restart MySQL afterwards. Now goto http://localhost/phpmyadmin and create a database, eg 'amc'.
Now unpack the template somewhere below the folder htdocs inside the xampp.
Now that we set up the basics, we have to edit the mentioned mdb_config.inc. In this file you have to enter the name of your just created database, the user and password to connect to it (for a start that is root).
You might goto http://localhost/moviedb/ and see what happens.
Hope that helps.
PS: regarding your name I guess you speak german, right? Maybe I could help you out in german, via PM then...
This template needs a webserver and a database, most likely MySQL.
Easiest way to start trying things without an external webspace would be to grab xampp at apachefriends. After unpacking/installing you should get a webserver and MySQL running.
Now open your browser and goto http://localhost/ ,on the left side, click on securitycheck and set a password for MySQL.
Restart MySQL afterwards. Now goto http://localhost/phpmyadmin and create a database, eg 'amc'.
Now unpack the template somewhere below the folder htdocs inside the xampp.
Now that we set up the basics, we have to edit the mentioned mdb_config.inc. In this file you have to enter the name of your just created database, the user and password to connect to it (for a start that is root).
You might goto http://localhost/moviedb/ and see what happens.
Hope that helps.
PS: regarding your name I guess you speak german, right? Maybe I could help you out in german, via PM then...
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Movies Period only up to 2009 ?
Hi all.
I would like to ask if it is normal that i see in my web moviedb site the period category up to 2005 - 2009.
If it is normal,is there a way to show period greater than that ,since i have some movies from 2010?
Thank you 4 reading this.
Regards,
The_observer.
I would like to ask if it is normal that i see in my web moviedb site the period category up to 2005 - 2009.
If it is normal,is there a way to show period greater than that ,since i have some movies from 2010?
Thank you 4 reading this.
Regards,
The_observer.
Tutorial PK Datamovie
Eddie wrote:Ok, lets try and help you out.
This template needs a webserver and a database, most likely MySQL.
Easiest way to start trying things without an external webspace would be to grab xampp at apachefriends. After unpacking/installing you should get a webserver and MySQL running.
Now open your browser and goto http://localhost/ ,on the left side, click on securitycheck and set a password for MySQL.
Restart MySQL afterwards. Now goto http://localhost/phpmyadmin and create a database, eg 'amc'.
Now unpack the template somewhere below the folder htdocs inside the xampp.
Now that we set up the basics, we have to edit the mentioned mdb_config.inc. In this file you have to enter the name of your just created database, the user and password to connect to it (for a start that is root).
You might goto http://localhost/moviedb/ and see what happens.
Hope that helps.
PS: regarding your name I guess you speak german, right? Maybe I could help you out in german, via PM then...
Hello everybody,
I discover this AMC and PK Movie Database for few days, and this is an amazing tool, thank you Antp for this programm and thanks alex for this Version.
So, my problem is after to make all what Eddie says, I become this:
get_html(); ?>
and Failure Box :
Floatbox does not support quirks mode.
Page needs to have a valid doctype declaration.
When I try to call mdb3.php, I have this:
get_stylesheet(). * require_once('mdb3.php'); * $moviedb = new MDB3(); * print $moviedb->get_html(); * * NOTE 1.) YOU SHOULD NOT NEED TO EDIT THIS FILE AT ALL UNLESS YOU KNOW WHAT YOU ARE DOING. * NOTE 2.) Call this file in your web browser to display a basic styled moviedb. You can see * the code for this usage at the very bottom of this file. * * * SUPPORT * ------- * Current support and help on using this script should be asked on the forum at the following * link. Please do not email me with support question, I simply don't have the time to answer * everyone. * viewforum.php?f=16&sid=2e29bcde798893fcb2cf40178bec9ba3 * * * LICENSE * ------- * Copyright © 2006-2007 PK-Designs, Some Rights Reserved. This work is licensed under a * "Creative Commons License" by M. Shepanski. The following link is a human-readable summary * of the full Legal Code - http://creativecommons.org/licenses/by/2.5 * * - You are free.. * - to copy, distribute, display, and perform the work * - to make derivative works * - to make commercial use of the work * * - Under the following conditions.. * - Attribution. You must attribute the work in the manner specified by the author or licensor. * - For any reuse or distribution, you must make clear to others the license terms of this work. * - Any of these conditions can be waived if you get permission from the copyright holder. * * * ATTRIBUTION * ----------- * If you plan to use this code on any site you own or help create, you must site the author * M. Shepanski along with a link back to PK-Designs.com ON THE WEBPAGE (not backend code). Like * most designers, I too do not like to include random links to someone's site when I use their * script. Because of this I do not require that you include this link right near where the script * is used on your page, but rather just mentioned on your site someplace; perhaps the disclaimer, * or about page. * * Not required, but it is always nice to hear from people who find my work useful to them. * If you wish, drop me a line so I can see how you implemented this script on your site. * * @author Michael Shepanski * @copyright Copyright © 2005-2006, Michael Shepanski * @package PK-Designs * @version Version 3.0 (2007.01.06) *=============================================================================================== */ require_once(dirname(__FILE__)."/template.inc"); require_once(dirname(__FILE__)."/mdb_movie.inc"); require_once(dirname(__FILE__)."/mdb_panel.inc"); require_once(dirname(__FILE__).'/mysql_db.inc'); $_GET = filter_var_array($_GET); class MDB3 { # Environment Variables - These are used internally within this class var $THISPAGE; // HTTP Path to this Script var $HTTPPATH; // HTTP Path to this Script's Folder var $UNIXPATH; // UNIX Path to this Script's Folder # MDB Main Variables - Main Variables used within this class var $version = "3.0.3"; // A stupid holder for for the current MDB version. var $config; // STATIC ARRAY: Contains the configuration options found in the config file. var $lang; // STATIC ARRAY: Language File definitions var $template; // STATIC ARRAY: Template options loaded from the template config var $options; // Array: All the possible _GET options, with their values. var $movies; // Array: Movie objects to display ON THIS PAGE ONLY. var $panels; // Array: Panel objects to display ON THIS PAGE ONLY. /** ------------------------------------------------------------------------------------------- * Create or Load an instance of the Moviedb3 database script. * @access public * ------------------------------------------------------------------------------------------*/ function MDB3() { # Useful environment variables $this->THISPAGE = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; $this->HTTPPATH = substr($this->THISPAGE, 0, strrpos($this->THISPAGE, "/")); $this->UNIXPATH = dirname(__FILE__)."/"; # Do the hard work $this->_load_configuration(); # Load the config, language & template options. $this->_auto_import_ant_export(); # Check we should auto import Ant's export file $this->_fetch_allowed_options(); # Set _GET vars we care about for this configuration. $this->_get_options(); # Runs through _GET vars, make sure they are valid. $this->_fetch_viewinfo(); # Load template information; Set our current template file. $this->_fetch_panels(); # Create all panel objects, preparing for template creation. $this->_fetch_movies(); # Create all movie objects, preparing for template creation. } /** ------------------------------------------------------------------------------------------- * Set the relative path to the configuration file holding all this class' configuration settings. * @access public * ------------------------------------------------------------------------------------------*/ function set_configpath($path) { $this->configpath = $path; } /** ------------------------------------------------------------------------------------------- * Returns the relative path the templates default style.css file. This is needed because * this MovieDB script will not automatically include it for you. You must call this script * and place its result in the header of your HTML file. * @access
Any Ideas?
Thanks Vali[/img]
hi everyone, I'm french so don't worry about my bad english (google translation ) :
categories, directors, producers appear as individual, for example for Cars belonging to the Animation, Comedy and Family categories , each category is clickable individually:
Animation, Comedy, Family
By cons for languages and audio formats, all appears as a single link. Cars for example:
French, English, English, French
But does not appear in the form:
French, English, English, French
So I modify 2 files:
mdb_movie.inc where I add
and it doesn't find anything
I should have
Languages sorting work on the left column but not on the movie list
for the category, I have correctly
and it found all the movies belong to the category Animation.
What should I do to make It work?
I do exactly the same thing with audio format in detail.tpl and it work fine... it's insane
Thank you
my website: http://mesbr.nenesse.net/
categories, directors, producers appear as individual, for example for Cars belonging to the Animation, Comedy and Family categories , each category is clickable individually:
Animation, Comedy, Family
By cons for languages and audio formats, all appears as a single link. Cars for example:
French, English, English, French
But does not appear in the form:
French, English, English, French
So I modify 2 files:
mdb_movie.inc where I add
details_view.tpl where I add...
var $directors; // Array of Dictionaries containing keys {name, text}
var $producers; // Array of Dictionaries containing keys {name, text}
var $languages; // Array of Dictionaries containing keys {name, text}
...
$this->directors = $this->_parse_names("DIRECTOR");
$this->producers = $this->_parse_names("PRODUCER");
$this->languages = $this->_parse_names("LANGUAGES");
...
$tpl->add_subtpl("DIRECTORS", $this->_templates_names("DIRECTORS", "DIRECTOR", $this->directors));
$tpl->add_subtpl("PRODUCERS", $this->_templates_names("PRODUCERS", "PRODUCER", $this->producers));
$tpl->add_subtpl("LANGUAGESS", $this->_templates_names("LANGUAGESS", "LANGUAGES", $this->languages));
All work fine, but now, when I click on the link I have<div class='languages'><b>$LANG[LANGUAGES]: </b>{LANGUAGESS;, }<a href='$LANGUAGES[HREF]'>$LANGUAGES[TEXT]</a>{/LANGUAGESS}</div>
Code: Select all
http://mesbr.nenesse.net/index.php?search=Fran%E7ais
I should have
Code: Select all
http://mesbr.nenesse.net/index.php?languages=Fran%E7ais
for the category, I have correctly
Code: Select all
http://mesbr.nenesse.net/index.php?category=Animation
What should I do to make It work?
I do exactly the same thing with audio format in detail.tpl and it work fine... it's insane
Thank you
my website: http://mesbr.nenesse.net/
Here are the files:
http://dl.dropbox.com/u/181704/AMC/moviedb_alex1.rar
http://www.megaupload.com/?d=I882N4VF
Thanks to El Mauro
http://dl.dropbox.com/u/181704/AMC/moviedb_alex1.rar
http://www.megaupload.com/?d=I882N4VF
Thanks to El Mauro
lafafmentvotre template
does anyone have a lafafmentvotre template?
-
- Posts: 1
- Joined: 2011-11-10 19:41:34
Hello,
finally i got this template running. It offers everything i always wanted for my movie collection. But there is something i need help with.
I think my english isn`t that good but i hope you understand me right an can help me.
At the top i want to place a Header / Banner that i created with Photoshop. It`s an animated gif. I have no knowledge about html/css and so on. If you would be so kind to tell me what i have to do to get my Banner (header.gif) to be shown like in the picture below.
Thank you all in advance for your help.
with regards
christoph87
finally i got this template running. It offers everything i always wanted for my movie collection. But there is something i need help with.
I think my english isn`t that good but i hope you understand me right an can help me.
At the top i want to place a Header / Banner that i created with Photoshop. It`s an animated gif. I have no knowledge about html/css and so on. If you would be so kind to tell me what i have to do to get my Banner (header.gif) to be shown like in the picture below.
Thank you all in advance for your help.
with regards
christoph87
Hello,
Please excuse my bad english, but I'm french...
I would like to use this template on my Free personnal page... But Free use Php 4 or php 5.1... not 5.2 version...
So is it possible to change some few things on scripts for use this template on php4 or not ? Il it's possible, please tell me what to do...
Thx,
Subbat
Please excuse my bad english, but I'm french...
I would like to use this template on my Free personnal page... But Free use Php 4 or php 5.1... not 5.2 version...
So is it possible to change some few things on scripts for use this template on php4 or not ? Il it's possible, please tell me what to do...
Thx,
Subbat
Hi all and thanks.margaan wrote:Hi
I downlaoded the files here and the latest xampp.
Then I put the files in the htdocs directory --> C: XAMPP HTDOCS MOVIEDB
I exported my DB from ANT with the options:
In PHPMYadmin I created a DB called 'moviedb' and Imported the SQL File --> entries were created (table 'moviedb' and movie details).
My config looks this:
I have no phpadmin pass set. Its a local DB.Code: Select all
$this->config['mysql']['server'] = "localhost"; $this->config['mysql']['username'] = "root"; $this->config['mysql']['password'] = ""; $this->config['mysql']['database'] = "moviedb"; $this->config['mysql']['table'] = "moviedb";
Now when i go to /localhost/moviedb, I see the background colour and only:
Any ideas what Ive been doing wrong?Code: Select all
get_html(); ?>
Thanks!
I have this error too.
I have installer today wamp 2.2. Also tried to use a mysql bd on a hosting, but the error is the same. I tried to use user root without pass and user created by me with pass in mysql, but doesn't works.
A test.php shows "blank window", is correct?
<php
phpinfo();
?>
Error:
"*/ require_once('mdb3.php'); $moviedb = new MDB3(); ?> get_html(); ?> "
What can I do?
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
I have uploaded here :im2020 wrote:Links for download no longer working.
Can anyone help?
http://www.top-greek-hotels.gr/!Various ... v3.0.3.zip
Regards,
the_observer.