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
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

@Surflife

I wouldnt say its a bug. Its working exactly how it is meant too.

ie it looks at the languages fields and then counts how many different languages they are and keep a tally. so as you've pointed out some movies you have FRENCH in there more than once. I can see why you have done this but as it stands there no way to link your Languages to your Audio formats.

noticed that your Languages field is one big link, you can split these into seperate language links by looking in the MDB_CONFIG.INC file and adding Languages to the Comma_seperated field.
Surflife
Posts: 11
Joined: 2008-02-09 00:44:37

Post by Surflife »

@Kazgor => OK I get your point.

regarding what you noticed, it was not the mdb_config.inc, I made a mistake in the way I added the languages in detail_view, and I did the same error for all languages, subtitles and audioformat in detail .
I've corrected it
You can get my version here
http://surflife.free.fr/
then take the PKMovie_303_Surflife..>
and in detail_view.tpl and detail.tpl all lines starting with
# ---YA
is a line (are some lines) I commented either to disable it or to replace by the line(s) after it.
I was to lazy to do the same in style.css, sorry


@xaxgo vas sur l'URL
http://surflife.free.fr/
et cliques sur le fichier
PKMovie_303_Surflife..>
c'est en fait PKMovie_303_Surflife.zip tu auras dedans tout avec mes customs, tu n'as qu'a changer les parametres de connexion MySQL dans le fichier mdb_config.inc
pour les modifs dans le fichiers c'est un peu long à expliquer,
dans les fichiers detail_view.tpl et detail.tpl j'ai ajouté des lignes dans les zones "result movie" et mis d'autres en commentaire (reconnaissable par un début de ligne # ---YA) soit pour les désactiver soit parce que je les ai remplacé par celles qui suivent.
J'ai aussi modifié le fichier style.css pour inverser les propriétés de "title" et de "translatedtitle" partout où je les ai trouvé dans ce fichier.
Ce que tu peux faire c'est conserver une copie de ces fichiers depuis la version originale ...
voilà ...
xaxgo
Posts: 27
Joined: 2005-11-20 21:50:25

Post by xaxgo »

@Surflife :

Merci je viens de récupérer tes modifications, mais j'ai encore un probleme :/ . Je suis hebergé chez awardspace.com j'ai donc modifié le fichier .htaccess avec AddHandler application/x-httpd-php5 .php comme indiqué. Mais lorsque je vais sur ma page, je me retrouve avec ça.
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Merci encore
Anthony
Surflife
Posts: 11
Joined: 2008-02-09 00:44:37

Post by Surflife »

vire la ligne d'activation Php5 de ton fichier .htaccess (ou vire le fichier s'il ne contient rien d'autre) , si ton hébergeur n'est pas en Php 5 c'est juste que les listes de catégories de langages sur la gauche ne seront pas triées dans l'ordre alphabétique.
Sinon renseigne toi sur awardspace.com pour connaitre la synthaxe de cette ligne si toute fois elle est nécessaire ...
xaxgo
Posts: 27
Joined: 2005-11-20 21:50:25

Post by xaxgo »

Bonjour,

@Surflife :

Merci pour tes réponses, je viens de passer chez free pour héberger ma liste donc ça fonctionne parfaitement. Petite remarque quand même, lorsque je met la liste des films il me donne les titres originaux et non les titres traduits.

Merci encore et BRAVO
Anthony
Surflife
Posts: 11
Joined: 2008-02-09 00:44:37

Post by Surflife »

@Xaxgo, sorry pour le délais !

j'ai corrigé le problème sur le vue "liste" , maintenant on y vois bien les titre traduits, donc nouvelles version du zip et du word à dispo au même endroit
==================================
I've corrected on the view list mode the problem , now we correctly get the translated title in the list view, so corrected version of both zip and french word document are available same place
ouafouaf
Posts: 8
Joined: 2008-03-27 12:45:42

Post by ouafouaf »

Hello! I've been using the PKMovie template, and trying to make some changes by myself, with my low php skills. Now I would like to add a function, that is to support multi-country.

For exemple, a James Bond movie will be listed USA, UK in my amc base. I dont want to have a USA, UK category in my template, but just UK and USA, and the movie would be listed in both those category.

It's already like that for movie category, at least in a mod Im using.
I movie listed as action, thriller, drama in the base will be listed in 3 differents categories in the template.

Still following my idea ?

could anyone help ?
thanks!!
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

ouafouaf wrote:Hello! I've been using the PKMovie template, and trying to make some changes by myself, with my low php skills. Now I would like to add a function, that is to support multi-country.

For exemple, a James Bond movie will be listed USA, UK in my amc base. I dont want to have a USA, UK category in my template, but just UK and USA, and the movie would be listed in both those category.

It's already like that for movie category, at least in a mod Im using.
I movie listed as action, thriller, drama in the base will be listed in 3 differents categories in the template.

Still following my idea ?

could anyone help ?
thanks!!
Hi,

Edit MDB_CONFIG.INC

and Add COUNTRY to the $this->config['options']['comma_seperated'] field

so it will look like.

$this->config['options']['comma_seperated'] = array("COUNTRY", "TRANSLATEDTITLE", "DIRECTOR", "PRODUCER", "CATEGORY", "ACTORS", "LANGUAGES", "SUBTITLES");
ouafouaf
Posts: 8
Joined: 2008-03-27 12:45:42

Post by ouafouaf »

works fine, thanks. proves once again this script was well done!!
really easy to modify most things.

now, how comes the categories dont list themselves alphabeticaly ?

http://thebigwaf01.free.fr/index.php

Oh, and also, is there a way to fix the search problem? I say problem, but maybe was it done on purpose? The fact that searches are done inside the selected category.

for exemple:
if im browsing Dramas, and search for something, it will go to
http://thebigwaf01.free.fr/index.php?se ... gory=Drama
i would like better if it was like
http://thebigwaf01.free.fr/index.php?search=john+woo

Thank you for helping me here. Sorry to ask so many questions, I don't know where to look.

Merci
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

ouafouaf wrote:works fine, thanks. proves once again this script was well done!!
really easy to modify most things.

now, how comes the categories dont list themselves alphabeticaly ?

http://thebigwaf01.free.fr/index.php

Oh, and also, is there a way to fix the search problem? I say problem, but maybe was it done on purpose? The fact that searches are done inside the selected category.

for exemple:
if im browsing Dramas, and search for something, it will go to
http://thebigwaf01.free.fr/index.php?se ... gory=Drama
i would like better if it was like
http://thebigwaf01.free.fr/index.php?search=john+woo

Thank you for helping me here. Sorry to ask so many questions, I don't know where to look.

Merci
Hi,

I would say read the thread as all your questions have been answered, but its a big thread to go through. But if u do have time, i suggest u do, there some very useful tips in there :)

For the Alpha sorting problem, this only works if you use PHP 5. I've tried to figure out why it doesn't work in PHP 4, but it beyond my knowlegde so far.

The Search question is by design and even goes back to version 2.

Here's my site with all the tweaks i've added.. i just love this script.. really ace.

http://www.brunesmedia.co.uk/movies/
ouafouaf
Posts: 8
Joined: 2008-03-27 12:45:42

Post by ouafouaf »

thank you for your fast answer again kazgor.
That said, I fixed the php5 problem. My host www.free.fr being default php4, just a small "php5" line in the htaccess fixed it.

About the search, I slowly read most of the pages, found many people asking about the problem, but couldnt find a clear answer.

I think there's an easy way, not so nice, to fix that, by adding the search command to the actual movie list url...

probably somewhere in mdb3.php

Code: Select all

$tpl->add_var("\$SEARCH_HREF",      $this->THISPAGE);
$tpl->add_var("\$CLEARSEARCH_HREF", $this->get_link(array("SEARCH" => "")));
or in around the $href_changes function...

Im not so sure !

Anyway, Im off for today. Feel free to give me help if you can hehe
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

J'ai installé la dernière version de PKMovie_303_Surflife. J'avais PKmovie sans modif avant. MOn problème, c'est que pour quelques titres, les étoiles n'apparaissent pas dans le Liste en Détails. Mais si je clique sur le titre pour n'afficher que lui en détails, ca note avec les étoiles apparait !

Je ne sais pas où se situe le problème. Est-ce dans le codage du template ?

Merci de m'aider :)


edit: je peux envoyer mon adresse par courriel si c'est nécessaire.
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

Laissez faire, j'ai trouvé mon problème :)

J'ai remplacé:

Code: Select all

<div class='imdb'><a class='rating_$MOVIE[RATING]' href='$MOVIE[URL]'><span>$MOVIE[RATING]</span></a></div>

par

<div class='imdb'><a class='rating_$MOVIE[RATING1]' href='$MOVIE[URL]'><span>$MOVIE[RATING]</span></a></div>
remarquez le 1 après RATING

je ne sais pas si c'est pareil pour vous...

bye
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

J'aurais une autre question par contre.

Lorsque je n'entre aucune note dans AntMovie, pas 0,0 mais bien rien, je voudrais qu'aucune note ne s'affiche dans PKmovie. Ou l'image Not available (na.jpg) pourrait s'afficher. Présentement, c'est l'image des 4 étoiles grises (0.jpg) qui s'affiche.

J'ai regardé un peu partout, mais je n'ai pas trouvé quelle ligne modifier pour avoir ce résultat.

Merci :)
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

J'ai trouvé une façon de contourner le problème pour l'instant. J'ai renommé na.jpg en 0.jpg. Et je donne la note 0 aux films non cotés.

Mais j'aimerais bien une meilleure solution...
pollewops
Posts: 52
Joined: 2006-04-05 19:51:38

Opening details image in real size...how ?

Post by pollewops »

The default template doesn't support that the image displayed in de details page can't be opened in full size.
I see some website based on this template who change something so it could.

Could anyone tell meee where to change something in the php scripts so i can display the picture in original size in de details page ?

Example: http://thebigwaf01.free.fr/index.php?num=895
In de example you can click on the picture. At my own website based on template 3.03 it isn;t possible. What do I need to change ?
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

To pollewops:


In details.tpl

Code: Select all

    # --- RESULTS MOVIES --------------------------
    <div class='movies DETAILS'>
      {MOVIES}
        <div class='movie num_$MOVIE[NUM] curvy1'>
          <div class="bl"><div class="br"><div class="tl"><div class="tr content">
            <table cellpadding='0' cellspacing='0' border='0'><tr><td class='images' valign='top'>
              <a href='antexport/$MOVIE[PICTURENAME]'><img src='$TEMPLATEDIR/images/resize.php?img=$UNIXDIR$COVERSDIR$MOVIE[PICTURENAME]&w=180' alt='$MOVIE[FORMATTEDTITLE]' title='$MOVIE[FORMATTEDTITLE]'/></a>
This is the line that makes the change:

Code: Select all

<a href='antexport/$MOVIE[PICTURENAME]'><img src='$TEMPLATEDIR/images/resize.php?img=$UNIXDIR$COVERSDIR$MOVIE[PICTURENAME]&w=180' alt='$MOVIE[FORMATTEDTITLE]' title='$MOVIE[FORMATTEDTITLE]'/></a>
Bye :)
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

Je voudrais ajouter la possibilité de voter aux visiteurs. Peut-être même aussi d'ajouter des commentaires.

J'ai trouvé quelques scripts en PHP gratuits sur internet pour ajouter un rating avec des étoiles ou autre, mais je ne suis pas capable de l'ajouter à ma liste de films. Rien ne s'affiche. Je n'ai pas trop de connaissances en PHP, donc un peu d'aide serait appréciée.

Merci !


--------------------------------------------------------------------

I would like to add a visitor rating and maybe comments.

I found some free PHP scripts on the internet to add a 5 star rating or else, but I can't add it to my movie list. It won't appear. I don't have too much knowledge in PHP, so a little help would be appreciated.

Thank you !
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

le forum est pas mal tranquille....
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

sandmanweb wrote:
I would like to add a visitor rating and maybe comments.

I found some free PHP scripts on the internet to add a 5 star rating or else, but I can't add it to my movie list. It won't appear. I don't have too much knowledge in PHP, so a little help would be appreciated.

Thank you !
This would be nice, but it would require a new SQL field created to store the rating into it. The Rating system would need to point to the Movie ID number so that it can display the rating/comment to the correct film..

The problem will be is if you renumber the films in ANT Catalogue as the this will become out of sync with the rating field.

Alternatively you could try using a field that not being used by anything else.. say the disk/files field. but again.. this would be lost if you did a full export again.. unless you somehow import the rating value back into the ANT catalogue.

can you post the link to the code you've found.. I'd still be interesting to see what it does.

ta
Post Reply