PKs Movie Database 3.0.3 modification by sweborn
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
Pas de souci !!
Supprime la ligne 765 du fichier mdb3.php :
Ou alors déplace la après la ligne 773
Supprime la ligne 765 du fichier mdb3.php :
Code: Select all
$html .= '<option value=""> '.$this->lang['_ALL'].' </option>';
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
Non ça n'est pas compliqué !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 ?
donne moi les différentes valeurs et les logos
et je te prépare ça
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
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)
http://imageshack.us/a/img196/6005/6drk.png
http://imageshack.us/a/img585/607/evwi.png
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)
http://imageshack.us/a/img196/6005/6drk.png
http://imageshack.us/a/img585/607/evwi.png
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Hi ,
i use this template which is great.
Lately my hoster upgraded and i get the below error at the start of the page:
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.
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
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.
Hithe_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:Also i would like to have the + signs at the left column. How can i accomplish this?Code: Select all
Deprecated: Function split() is deprecated in /home/topgreek/public_html/moviedb/template.inc on line 115
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.
For error, replace :
Code: Select all
$lines = split("\n", $input);
Code: Select all
$lines = explode("\n", $input);
http://bcvideos.tk/PKsMovieBC/
The + sign works with css and ajax(ddaccordion.js)
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
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.
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.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
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:
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:
Any ideas what maybe i am doing wrong?
Thank you for your time reading this.
Regards,
the_observer.
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 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/
Thank you for your time reading this.
Regards,
the_observer.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
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 :
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.
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:[/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: [/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.
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
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
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 : ";
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";
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.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
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.
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.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
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 newbiedroopy57 wrote:Hi the_observer
For the title, we must modify the function function _viewtitles() in file: mdb_movie.inc
line 200.
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.
Hi the_observer
Try this :
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;
}