PK's MovieDB Release.V3.0 (Dynamic PHP View)
@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.
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.
@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à ...
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à ...
@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.
Anthony
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.
Merci encoreInternal 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.
Anthony
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 ...
Sinon renseigne toi sur awardspace.com pour connaitre la synthaxe de cette ligne si toute fois elle est nécessaire ...
@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
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
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!!
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,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!!
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");
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
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,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
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/
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
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
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" => "")));
Im not so sure !
Anyway, Im off for today. Feel free to give me help if you can hehe
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
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.
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.
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
Laissez faire, j'ai trouvé mon problème
J'ai remplacé:
remarquez le 1 après RATING
je ne sais pas si c'est pareil pour vous...
bye
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>
je ne sais pas si c'est pareil pour vous...
bye
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
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
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
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
Opening details image in real size...how ?
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 ?
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 ?
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
To pollewops:
In details.tpl
This is the line that makes the change:
Bye
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>
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>
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
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 !
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 !
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..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 !
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