Page 1 of 5

Template for dynamic web page view version 4.0

Posted: 2011-05-08 10:03:09
by bonienl
With the help of a couple members here I am able to offer you a true multi language version of the template. Version 4.0 can switch languages on the fly by clicking on the appropriate flag and is currently available in English, Dutch, French and German.

I also added "dynamic fields". This feature allows the display of movie titles based on your favorite selection. By default this is the top 30 of actors, directors and years. Now you can quickly find movies based on questions like these:

- what movies do I have with "Clint Eastwood" as the lead and directed by "Sergio Leone"?
- what movies do I have with "Harrison Ford" and "Gary Oldman" playing together?
- how many movies do I have from the top year 2006?

But there is more. New in version 4 is the following:

• Multi language support, language selection can be changed on-the-fly (included languages: English, Dutch, French and German)
• Dynamic fields. Create fields with TOP entries, e.g. actors, directors and years
• New tags: <genre> and <studio>
• New helper function: “xlat”
• New images for genres and studio
• Color option for image display. Displays the image in an alternative color, e.g. black instead of white
• Added “view3D” as startup option
• Additional images for video and audio display
• Film rating images included for US (MPAA), UK (BBFC), Netherlands (Kijkwijzer), France (CNC & CSA) and Germany (FSK)
• Keyboard shortcuts for navigation and function selection
• Updated layout files
• Updated themes
• New folder structure

I like to say thanks to Subbat and BogartsToupet for providing the french and german translations.

I like to say thanks to Spiderman for providing the genre and studio images.

A preview is available together with the download of the zip file.

Note that version 4 is not compatible with earlier versions, you can not re-use existing layout files. See the file "readme.pdf" for more information.

BonieNL

not yet...

Posted: 2011-05-08 19:21:38
by tiagoaquino
I've tried everything... followed the manual entirely.

Please let me know your AMC settings regarding Movie Information and Export tabs...

there is other thing.. AMC is not adding 0 before lower numbers in image pictures... is it ok?

more information: it loads the index.html but keeps loading the database forever...

Posted: 2011-05-08 19:39:56
by Subbat
:grinking: Cool... and congratulation...

Et tu n'as pas chômé depuis la beta... je découvre plein de choses nouvelles...

Merci à toi pour ce beau travail ;)

Posted: 2011-05-08 19:50:47
by tiagoaquino
Subbat wrote::grinking: Cool... and congratulation...

Et tu n'as pas chômé depuis la beta... je découvre plein de choses nouvelles...

Merci à toi pour ce beau travail ;)
could you tell me your amc settings?

Posted: 2011-05-09 05:00:40
by bonienl
@tiagoaquino

When the XML file is not loading it could be a problem with the file itself, usually caused by unprintable characters in it, which are then not accepted by the browser.

To test this: load the XML file ("movies.xml") directly into your browser (CTRL-O) and observe any error message. Correct the conflicting characters by replacing them with a 'space' (or other character you prefer).

Image files without leading '0' in the name is correct.

Posted: 2011-05-10 05:02:30
by tiagoaquino
bonienl wrote:@tiagoaquino

When the XML file is not loading it could be a problem with the file itself, usually caused by unprintable characters in it, which are then not accepted by the browser.

To test this: load the XML file ("movies.xml") directly into your browser (CTRL-O) and observe any error message. Correct the conflicting characters by replacing them with a 'space' (or other character you prefer).

Image files without leading '0' in the name is correct.
thanks for answering.. but I got no errors (in fact, i had already done it the day I wrote you... but did it again now... )

no errors are shown.. and i made my collection smaller (10 movies) just to test it... but.. nothing.. still the same... and no errors openning the xml.. =/

trying to give more information.. thats the xml header:

<?xml version="1.0" encoding="iso-8859-1" ?>
- <AntMovieCatalog Format="35" Version="3.5.1 (2009-02-01)" Date="08/05/2011 17:17:28">
- <Catalog>
<Properties />

a video record:


<Movie Number="9" Checked="True" MediaType="HD" Date="06/12/2009" OriginalTitle="(500) Days of Summer" TranslatedTitle="(500) Dias Com Ela" FormattedTitle="(500) Dias Com Ela ((500) Days of Summer)" Director="Marc Webb" Producer="Watermark" Country="EUA" Category="Comédia Romântica" Year="2009" Length="95" Actors="Joseph Gordon-Levitt, Zooey Deschanel, Geoffrey Arend, Chloe Moretz, Matthew Gray Gubler, Clark Gregg, Patricia Belcher, Rachel Boston, Minka Kelly, Charles Walker, Ian Reed Kesler, Darryl Alan Reed, Valente Rodriguez, Yvette Nicole Brown, Nicole Vicius" URL="\Filmes\(500) Dias Com Ela ((500) Days Of Summer).mkv" Description="Comédia romântica sobre uma garota (Deschanel) que não acredita no verdadeiro amor e um rapaz (Gordon-Levitt) que se apaixona justamente por ela. Esta não é uma história de amor. É uma história sobre o amor." VideoFormat="AVC" VideoBitrate="2576" AudioFormat="AC3" AudioBitrate="448" Resolution="1280x720" Framerate="23.976" Languages="English" Subtitles="Portuguese" Size="2098" Disks="1" Picture="movies_9.jpg" />

Posted: 2011-05-10 06:12:47
by Subbat
Hello,

En fait chez moi c'est pareil que chez tiagoaquino... ça ne marche pas... que ce soit sous IE8 ou sous FF4 :cry:

Posted: 2011-05-11 05:48:23
by bonienl
Does the preview work for you guys?

Posted: 2011-05-11 06:01:15
by Subbat
Yes, it works fine...

Posted: 2011-05-11 14:48:45
by tiagoaquino
bonienl wrote:Does the preview work for you guys?
the preview works great...
i've tried on chrome, IE and firefox... all latest versions.

that's the reason i asked u about settings... if you could zip the folder (used in preview) and upload it we would be able to compare..

Posted: 2011-05-11 15:45:53
by bonienl
I found the problem...

My mistake actually :/

The file "index.html" as included in the zip package has the setting datapath="db", which implies that the database files are located in the sub-folder "db", however standard installation (as described in the help file) has the database files in the 'main' folder.

You can chose one of three ways to correct the mistake.

1. Manually edit the file "index.html" and change the setting to datapath=""
2. Download and unzip the updated index file
3. Download and unzip the updated complete package

Posted: 2011-05-11 18:47:12
by Subbat
:grinking: ça marche tout de suite mieus comme ça...

Merci

parfait

Posted: 2011-05-11 23:40:43
by tiagoaquino
works great on firefox and IE..
still cant in chrome.. but i'll figure out that.. =)

Congrats! It's a GREAT template. Best ever.

I'm gonna start translating it into portuguese now.. and modify it a little bit =)

Posted: 2011-05-12 05:04:19
by bonienl
Template has been tested on Internet Explorer, Firefox and Chrome.

Which version of Chrome are you using?

Posted: 2011-05-12 05:10:45
by tiagoaquino
bonienl wrote:Template has been tested on Internet Explorer, Firefox and Chrome.

Which version of Chrome are you using?
11.0.696.65
r u interested in the portuguese translation?

Posted: 2011-05-12 05:53:28
by bonienl
tiagoaquino wrote:r u interested in the portuguese translation?
Any language is welcome, my pleasure to add Portuguese...

Posted: 2011-05-12 06:06:22
by tiagoaquino
bonienl wrote:
tiagoaquino wrote:r u interested in the portuguese translation?
Any language is welcome, my pleasure to add Portuguese...
I wish AMC included this on the release package... The availables templates are reaaaaaaally bad..

Posted: 2011-05-14 18:07:36
by Subbat
Salut Bonienl,

A propos de
Dynamic fields. Create fields with TOP entries, e.g. actors, directors and years


Ca ne marche pas pour les acteurs si le format choisit lors de l'import dans AMC est "acteurs + rôle" (ex : Matt Damon (Jason Bourne)), si je cliques sur un acteur ayant ce format, ça me renvoie "pas de résultat pour ce titre"...

Ca n'est pas un drame, mais je trouvais cette nouvelle option fort sympathique...

Posted: 2011-05-18 16:25:18
by Galed
Bonienl
1. Invalid search in group Film Title, when looking for "COP" finds "Beverly Hills Cop" and "Capricorn One". Version 1.3 was the correct search
2. Make sorting alphabetically in a group [Cast] and [Director]

Hey pal.. another doubt...

Posted: 2011-05-19 02:46:37
by tiagoaquino
I'm editing a layoutX.xml...

Is it possible to add a picture together with the title?

That's basically what I'm trying to do:

Code: Select all

<text style="h1">movie.getAttribute('TranslatedTitle')</text><flag style="em" src="movie.getAttribute('Country')" text="true" group="false" lf="false"/>


I've seen it done here:

Code: Select all

<text style="em">merge(movie.getAttribute('Year'),", ")</text>
  <flag style="em" src="movie.getAttribute('Country')" text="true" group="false" lf="false"/>
On the second example, the year comes with the nation flag in the same line.

The first example shows something like the same (title, instead).. but it keeps breaking the line. Any clues?!