PK's MovieDB Release.V3.0 (Dynamic PHP View)

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Jorn
Posts: 6
Joined: 2009-04-20 21:15:16

Post by Jorn »

thanks man , gonna try that, ill let you know if it works out :)


update:

yeah man that did it :) thanks a million! for some reason there was no reference at all to the RATING in the INC file.

added the last code line:

$date_added = date($this->mdb->config['options']['date_format'], strtotime($this->data['DATEADD']));
$tpl->add_var("\$MOVIE[DATEADD]", $date_added);
$tpl->add_var("\$MOVIE[HREF]", $this->mdb->get_link(array("NUM" => $this->data['NUM'])));
$tpl->add_callback("\$MOVIE[DESCRIPTION]", "_callback_description", 1);
$tpl->add_subtpl("TRANSLATEDTITLES", $this->_templates_translatedtitles());
$tpl->add_subtpl("ACTORS", $this->_templates_names("ACTORS", "ACTOR", $this->actors));
$tpl->add_subtpl("DIRECTORS", $this->_templates_names("DIRECTORS", "DIRECTOR", $this->directors));
$tpl->add_subtpl("PRODUCERS", $this->_templates_names("PRODUCERS", "PRODUCER", $this->producers));
$tpl->add_var("\$MOVIE[RATING]", (round($this->data['RATING'])));
return $tpl;
}

and now it works perfectly :)

Image

made my own star images as you can see, and now they show perfectly without me having to change the table settings in phpMyAdmin :)

thanks alot!

lemme know if ya need some grahpical work done, thats more my line of work :) would publish my files like this , but since I edited so much to my own needs and hardcoded alot of dutch in it and ugly hardcoded image reference etc it wont be useable for much. But like i said , if nuf ppl fancy a template like this i go remake the whole thing with yet another background, although reverse engineering not that easy when I made it with trial and error lol :)
Last edited by Jorn on 2009-06-25 23:32:36, edited 1 time in total.
alex1
Posts: 9
Joined: 2009-05-11 18:36:20

Post by alex1 »

I almost finished my template... Just need to fix the colors.
Tell me if you like it and what you don't like or would add. :grinking:

Image

Image

Image

Image

Image

Image

Image
mjs7231
Posts: 60
Joined: 2005-07-27 23:17:15

You guys are crazy

Post by mjs7231 »

As you noticed I stopped development on this several years ago. Its
awesome to come back every now and then and see what has been
happening.

I actually stopped programming in PHP abot a year ago and have been
focusing on Python development. It's much better IMHO. So you won't
see any updates on this project from me. It's been way too long, and far
too many people have made modifications anyway, that an update at this
point would be moot.

Anyway, who is hosting the most up to date files now? We might want to
consider pushing this Google-code or something similar.
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

alex1 wrote:I almost finished my template... Just need to fix the colors.
Tell me if you like it and what you don't like or would add. :grinking:
Really good work :)
-=[WeBsEcReTa]=-
Posts: 37
Joined: 2002-10-02 23:46:56
Location: Santiado de Chile
Contact:

Re: You guys are crazy

Post by -=[WeBsEcReTa]=- »

mjs7231 wrote:As you noticed I stopped development on this several years ago. Its
awesome to come back every now and then and see what has been
happening.

I actually stopped programming in PHP abot a year ago and have been
focusing on Python development. It's much better IMHO. So you won't
see any updates on this project from me. It's been way too long, and far
too many people have made modifications anyway, that an update at this
point would be moot.

Anyway, who is hosting the most up to date files now? We might want to
consider pushing this Google-code or something similar.

I congratulate you for your work this template is the best that exists and would be very good if you make a new version, many expect that.
Wotan
Posts: 68
Joined: 2007-12-26 23:09:41

Post by Wotan »

sandmanweb wrote:
alex1 wrote:I almost finished my template... Just need to fix the colors.
Tell me if you like it and what you don't like or would add. :grinking:
Really good work :)
yeah it looks awesome
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

Do you have any problem with internet exporer 8 ?


I get this with IE8:

Image


This is what it is supposed to look like (viewed with Firefox)

Image
Johnneke
Posts: 2
Joined: 2009-05-17 15:12:39

Post by Johnneke »

@alex1: That looks absolutely AWESOME. I'm looking forward to you sharing your work with us, would definately use it!

@sandmanweb: Is your version unusuable with php 4? I get a error on line 89 when I try to use your template.
edit: Seems my hosting supports php5 with a htaccess command. Now your script works: http://film.speedweb.be

I've managed to get mine running with a older version:
http://movies.speedweb.be
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

@Johnneke: Yes you need mysql 5 and PHP 5 to run my script. Because I used the mysqli commands... but you can convert them for previous versions easily I think.
mking
Posts: 10
Joined: 2009-06-03 09:08:24

Post by mking »

slovenian.inc
<?
/** ===============================================================================================
* Slovenian Language file for MovieDB by max-slo.net
* @author: M. Kralj
*=============================================================================================== */
# Misc. words that people will find useful
$this->lang['APPNAME'] = "MDB3"; # Name of this application
$this->lang['ALL_MOVIES'] = "Vsi filmi"; # All Movies
$this->lang['MORE'] = "več"; # More (when needed for cuting description)
$this->lang['UNKNOWN'] = "na"; # Unknown (Not Available)
$this->lang['ROLE'] = "Vloga"; # Actor / Actress Role
$this->lang['MINUTES'] = "min."; # When displaying the length
$this->lang['FIRST'] = "Prva"; # When linking to the First Page
$this->lang['LAST'] = "Zadnja"; # When linking to the Last page

# TITLES - Title refrences for the cooresponding database field
$this->lang['NUM'] = "Index";
$this->lang['CHECKED'] = "Preveriti";
$this->lang['MEDIA'] = "Medij";
$this->lang['MEDIATYPE'] = "Tip medija";
$this->lang['SOURCE'] = "Vir";
$this->lang['DATEADD'] = "Dodano dne";
$this->lang['BORROWER'] = "Posodil";
$this->lang['RATING'] = "Ocena";
$this->lang['ORIGINALTITLE'] = "Naslov";
$this->lang['TRANSLATEDTITLE'] = "Prevedeni naslov";
$this->lang['FORMATTEDTITLE'] = "Oblikovani naslov";
$this->lang['DIRECTOR'] = "Direktor";
$this->lang['PRODUCER'] = "Producent";
$this->lang['COUNTRY'] = "Država";
$this->lang['CATEGORY'] = "Kategorija";
$this->lang['YEAR'] = "Leto";
$this->lang['LENGTH'] = "Dolžina";
$this->lang['ACTORS'] = "Igrajo";
$this->lang['URL'] = "Povezava";
$this->lang['DESCRIPTION'] = "Opis";
$this->lang['COMMENTS'] = "Komentarji";
$this->lang['VIDEOFORMAT'] = "Video Format";
$this->lang['VIDEOBITRATE'] = "Video Bitrate";
$this->lang['AUDIOFORMAT'] = "Audio Format";
$this->lang['AUDIOBITRATE'] = "Audio Bitrate";
$this->lang['RESOLUTION'] = "Resolucija";
$this->lang['FRAMERATE'] = "Framerate";
$this->lang['LANGUAGES'] = "Jeziki";
$this->lang['SUBTITLES'] = "Podnapisi";
$this->lang['FILESIZE'] = "Velikost";
$this->lang['DISKS'] = "Diski";
$this->lang['PICTURENAME'] = "Slika";
$this->lang['PERIOD'] = "Obdobje";

# PLURALS - A few dbfields need plurar definitions (Example: Other Contries)
$this->lang['_OTHER'] = "Ostalo";
$this->lang['MEDIATYPES'] = "Media Types";
$this->lang['SOURCES'] = "Viri";
$this->lang['BORROWERS'] = "Izsposoja";
$this->lang['COUNTRYS'] = "Države";
$this->lang['CATEGORYS'] = "Kategorije";
$this->lang['YEARS'] = "Leta";
$this->lang['VIDEOFORMATS'] = "Video Format";
$this->lang['AUDIOFORMATS'] = "Audio Format";

# PANELS - These words are used for the panels
$this->lang['JUMPTO'] = "Skoci na";
$this->lang['SEARCH'] = "Išči";
$this->lang['CLEARSEARCH'] = "Počisti iskanje";
$this->lang['SUBMIT'] = "Potrdi";
$this->lang['CLEAR'] = "Počisti";
$this->lang['VIEW'] = "Pogled";
$this->lang['_ALL'] = "Vse";
$this->lang['_BLANK'] = "Neznano";
$this->lang['_OTHER'] = "Ostalo";

# PAGES - Useful words for the page displays
$this->lang['PAGE'] = "Stran";
$this->lang['NUMPERPAGE'] = "Prikazov";
$this->lang['PREVIOUS'] = "Prejšnja";
$this->lang['NEXT'] = "Naslednja";
$this->lang['GOTOPAGE'] = "Pojdi na stran";
$this->lang['SHOWING'] = "Prikaz";
$this->lang['OF'] = "od";

# SORT OPTIONS - (already defined RATING, YEAR, LENGTH)
$this->lang['SORT'] = "Sortiraj po";
$this->lang['TITLE'] = "Naslovu";
$this->lang['MOST_RECENT'] = "Največ ogledov";

# RANDOM MOVIES
$this->lang['RANDOMMOVIES'] = "Naključni filmi";
Jorn
Posts: 6
Joined: 2009-04-20 21:15:16

Hey guys

Post by Jorn »

Was testing a new setup and ran into small annoyance:

I bought a Wii for my kid and installed the Internet Channel on there.
So now i can browse my online movielist without leaving my couch.
Problem is that the wii dont have a ENTER button :)

So when i want to search for something on the page i cant innitiate the search only clear it with the X button.


So starting on line 16 of detail_view.tpl I find the code:

Code: Select all

# --- SEARCH and TITLE ----------------
  <div class='mainheader'>
    <div class='searchbox'>
      <form name="mdb_search" action="$SEARCH_HREF">
        <input class='searchbox' type='text' name='search' value='$SEARCH_TEXT'/>
          $HIDDEN_SEARCHINPUTS
        <a href='$CLEARSEARCH_HREF'><img src="$TEMPLATEDIR/images/search-right.gif" border="0" alt='$LANG[CLEARSEARCH]' title='$LANG[CLEARSEARCH]' /></a>
        </form>
    </div>
well been trying to get a submit button to work on 10 different ways from input type based to partially replacing the CLEAR button, but sofar none have proven to work and im getting frustrated so I once again turn here for some help.

Anyone know how this can be done?
bonienl
Posts: 156
Joined: 2008-02-24 10:10:43
Location: Netherlands

Post by bonienl »

You can add the keypress event to the input statement as follows

Code: Select all

<input class='searchbox' type='text' name='search' value='$SEARCH_TEXT' onkeypress="if(event.keyCode==13)'$CLEARSEARCH_HREF'"/>
J.P.
Posts: 64
Joined: 2006-09-20 09:55:52

Post 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.
Kapz
Posts: 1
Joined: 2009-09-02 08:49:17

Post by Kapz »

Hello
I've got a problem ^^
No Pictures in my website :(


Salut
J'ai un problème
Pas d'image sur le site :(

http://kapz.ifrance.com/
J.P.
Posts: 64
Joined: 2006-09-20 09:55:52

Post by J.P. »

Can nobody help me with my problem?
mking
Posts: 10
Joined: 2009-06-03 09:08:24

Post by mking »

@J.P., @Kapz

Ask here:

viewtopic.php?t=4359
axelv
Posts: 19
Joined: 2008-04-08 22:28:18

Post 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...
mking
Posts: 10
Joined: 2009-06-03 09:08:24

Post by mking »

@axelv

Ask here:

viewtopic.php?t=4359
aboulafia
Posts: 10
Joined: 2007-07-06 14:33:46

Post by aboulafia »

quelques changements pour mon site :
- nouvel hébergeur (jexiste is dead)
- nouvelle vue : grande covers (affiches)
- Intégration d'un flux RSS.

http://mrlafia.com/mrlafiaweb/index.php

MrLafia
Pinonono
Posts: 35
Joined: 2009-08-13 12:08:42

moviedb_3.0.3-fl0yd-20080106

Post by Pinonono »

Uso la versione moviedb_3.0.3-fl0yd-20080106 e mi trovo due problemi:
il primo è che la data appare sbagliata e uguale per tutti;
il secondo è che non riesco a metterli in ordine di TITOLO TRADOTTO.
Qualcuno mi può aiutare.
Scusate l'inglese ho tradotto con Google!!!

Use the version moviedb_3.0.3-fl0yd-20080106 and I find two problems:
The first is that the date is wrong and the same for all;
The second is that I can not put them in order TRANSLATED TITLE.
Someone can help me.
Excuse the English, I translated with Google!

Image
Post Reply