PKs Movie Database 3.0.3 modification by sweborn

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
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

Oups !

Merci pour l'info, erreur corrigée et fichier mis à jour
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

Parfait.

Une petite question maintenant.

Y aurait-il une façon de changer le mode de recherche par défaut. Présentement, il est à Tout. Mais je voudrais le changer pour Titre original. Ou bien si on peut tout simplement supprimé l'option Tout.

Merci.
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

Pas de souci !!

Supprime la ligne 765 du fichier mdb3.php :

Code: Select all

$html .= '<option value=""> '.$this->lang['_ALL'].' </option>';
Ou alors déplace la après la ligne 773
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

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

Post by sandmanweb »

Une autre requête. Je sais que je t'en demande plus ce coup ci...

J'ai attribué une valeur de format d'écran à la case Fréquence dans AMC.

J'aimerais affiché un petit logo à gauche du format vidéo dans la page Details et Detail_view.


Est-ce que ça serait compliqué à réaliser ?
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

sandmanweb wrote:Une autre requête. Je sais que je t'en demande plus ce coup ci...

J'ai attribué une valeur de format d'écran à la case Fréquence dans AMC.

J'aimerais affiché un petit logo à gauche du format vidéo dans la page Details et Detail_view.


Est-ce que ça serait compliqué à réaliser ?
Non ça n'est pas compliqué !
donne moi les différentes valeurs et les logos
et je te prépare ça
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

Wow merci. Vraiment gentil de ta part !



Dans AMC:

Fréquence:
Panoramique (16:9) ou Plein écran (4:3)

images: 16-9.png ou 4-3.png
(dans le dossier images/videoformat)

Image
http://imageshack.us/a/img196/6005/6drk.png

Image
http://imageshack.us/a/img585/607/evwi.png
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

Voila je t'ai préparé les fichiers,
je t'envoie ça par mp
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

ok merci.

J'attends ton message privé.
the_observer
Posts: 62
Joined: 2009-11-12 05:53:14

Post by the_observer »

Hi ,

i use this template which is great.

Lately my hoster upgraded and i get the below error at the start of the page:

Code: Select all

Deprecated: Function split() is deprecated in /home/topgreek/public_html/moviedb/template.inc on line 115
Also i would like to have the + signs at the left column. How can i accomplish this?

Maybe the above errors are because i do not have the latest version of your template.
How will i upgrade?

Thank you for your time reading this.

Regards,
the_observer.
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

the_observer wrote:Hi ,

i use this template which is great.

Lately my hoster upgraded and i get the below error at the start of the page:

Code: Select all

Deprecated: Function split() is deprecated in /home/topgreek/public_html/moviedb/template.inc on line 115
Also i would like to have the + signs at the left column. How can i accomplish this?

Maybe the above errors are because i do not have the latest version of your template.
How will i upgrade?

Thank you for your time reading this.

Regards,
the_observer.
Hi

For error, replace :

Code: Select all

$lines = split("\n", $input);
with

Code: Select all

$lines = explode("\n", $input);
To have the + signs at the left column you can download my template :
http://bcvideos.tk/PKsMovieBC/
The + sign works with css and ajax(ddaccordion.js)
the_observer
Posts: 62
Joined: 2009-11-12 05:53:14

Post by the_observer »

Thank you droopy.

Your correction for the error worked like a charm.

As for the + signs i downloaded your template but the link you gave is in french so i cannot understand what i should do (although i used google translate) :(

Is there any other way to implement the + signs?
Or is there another link in English?

Finally i would like to show the title where the translated is and vice versa.
The only thing i managed to do with my limited knowledge was to reverse their names with phpmyadmin ,but i have to do this every time i export.
Is there any other better way by changing something in the template?

Thank you very much for your time reading this.

Regards,
the_observer.
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

Hi the_observer

If you have downloaded and installed my template, the + signs should switch automatically.

For the title, we must modify the function function _viewtitles() in file: mdb_movie.inc
line 200.

sorry for my English, but I'm French and I use google translation too
the_observer
Posts: 62
Joined: 2009-11-12 05:53:14

Post by the_observer »

Hi droopy,

first of all i think we should make a new thread for your template.

Anyway, i downloaded your template and tried to use it in a local installation in my pc.

i extracted the files and set the appropriate values in the mdb_config.inc.php file so it could connect with the database as follow:

Code: Select all

$this->config['mysql']['server']    = "localhost";
$this->config['mysql']['username']  = "root";
$this->config['mysql']['password']  = "*******";
$this->config['mysql']['database']  = "antmovies";
$this->config['mysql']['table']     = "movies";
then i exported the ant movie catalog as .sql and imported it in the above database using phpmyadmin.

Then i set the browser to show the index.php file

Then i see only the background and nothing else...

The error log reports:

Code: Select all

[Thu Jan 16 16:23:13.405213 2014] [core:error] [pid 5188:tid 1716] (20024)The given path is misformatted or contained invalid characters: [client 127.0.0.1:55470] AH00127: Cannot map GET /moviedb/%3C?%20print%20$moviedb-%3Eget_stylesheet()%20?%3E HTTP/1.1 to file, referer: http://localhost/moviedb/
Any ideas what maybe i am doing wrong?

Thank you for your time reading this.

Regards,
the_observer.
the_observer
Posts: 62
Joined: 2009-11-12 05:53:14

Post by the_observer »

Well ,it seems that my local xampp installation something is not set correctly and that is why the modification of droopy57 is not working as i described in my previous post.

So i decided to try to use it in my web hoster.
Over there it is working ok except i get these messages :

Code: Select all

Deprecated: Function split() is deprecated in /home/topgreek/public_html/moviedb/template.inc on line 115

Deprecated: Function split() is deprecated in /home/topgreek/public_html/moviedb/template.inc on line 115
UPDATE:The above error has to do with php version.So in newer versions we have the above error.
FIX:Open file "template.inc" and go to line 115 as the message above says.There find and replace the function "split" with "explode"


Also i have these two problems:
1.

Code: Select all

$LANG[LASTUPDATE]17/01/2014
The word "$LANG" should not be displayed i think.
UPDATE 2 : I think this word $LANG which is displayed is the variable name.It displayes because there is not rellevant word set for this variable in the english language file.
So in order to resolve it edit the file: ..\languages\english.inc
after line 15,add this line:

Code: Select all

$this->lang['LASTUPDATE']       = "Last Update : ";
[/b]

2.
When i set in the file "config.inc.php" the language to English in line 39 then the "View:" (Affichage:) drop down list is not showing correctly.
If i revert it back to French it is working alright.
Unfortunately i have not figure out how to correct this.
UPDATE 3 : As in question above the same problem exists here.There are certain words in french language file which do not exist in english language file.So in order to fix this edit the file: ..\languages\english.inc
after line 87,add these lines:

Code: Select all

$this->lang['DETAILS']          = "Details";
$this->lang['LIST']             = "List";
$this->lang['COVERS']           = "Covers";
$this->lang['BIGCOVERS']        = "Covers XL";
$this->lang['MINICOVERS']       = "Mini Covers";
[/b]

The question i have now is should i completed translate the french language file to the english language files?
Because there are more untranslated fields which i do not exactly know where they are used to...

Thank you much for your time reading this.

Regards,
the_observer.
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

Hi the_observer

Here are the file "enlish.inc" fully translated
the_observer
Posts: 62
Joined: 2009-11-12 05:53:14

Post by the_observer »

Thank you droopy57 for your replies and for this excellent modification.

I downloaded your translated english.inc file and there were a couple minor errors which i corrected and in case someone is reading can download from here:
http://www.top-greek-hotels.gr/!Various/english.inc
(sorry for not making the above active link but this board does not support exclamation mark)

Now if you allow me i would like to ask:

What is the file "..\templates\default\languages\english.inc" used for and should i translate this too?

What remains for me to do is to find another provider for the trailers because allocine.fr trailers, well ...they are in French as expected and unfortunately i do not know French :(
(Maybe i will try to import from cine.gr which has greek subtitles)
UPDATE: There is already a script for importing trailers from youtube which works great and it is here

Thank you for your time reading this.

Regards,
the_observer.
Last edited by the_observer on 2014-01-18 23:31:27, edited 1 time in total.
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

the_observer thank you for the file 'english.inc'


the file "..\templates\default\languages\english.inc" is not used
the_observer
Posts: 62
Joined: 2009-11-12 05:53:14

Post by the_observer »

droopy57 wrote:Hi the_observer
For the title, we must modify the function function _viewtitles() in file: mdb_movie.inc
line 200.
I try to figure out and change the lines of code you mention above in order to use Title instead of translated title but i am afraid i am too newbie :(

Could you help me out?

The problem is that in my AMC 'Title' fields are ok but 'Translated title' fields are not.Many of them are empty (the IMDB script does not find them to import them in AMC).

Thank you for your time reading this.

Regards,
the_observer.
droopy57
Posts: 37
Joined: 2013-02-01 17:25:25

Post by droopy57 »

Hi the_observer

Try this :

Code: Select all

	function _viewtitles() {
	$html = "";
	$originaltitlte = trim($this->data[ORIGINALTITLE]);
	$translatedtitlte = trim($this->data[TRANSLATEDTITLE]);
	if ($translatedtitlte != $originaltitlte)
	{
	$html .= "<div class='translated'>".$originaltitlte."</div><div class='title'>".$translatedtitlte."</div>";
	}
	else
	{
	$html .= "<div class='translated'>".$originaltitlte."</div>";
	}
	return $html;
	}
Post Reply