Template for dynamic web page view version 4.0

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
bonienl
Posts: 156
Joined: 2008-02-24 10:10:43
Location: Netherlands

Template for dynamic web page view version 4.0

Post 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
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

not yet...

Post 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...
Subbat
Posts: 79
Joined: 2010-06-19 13:23:25
Contact:

Post 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 ;)
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

Post 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?
bonienl
Posts: 156
Joined: 2008-02-24 10:10:43
Location: Netherlands

Post 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.
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

Post 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" />
Subbat
Posts: 79
Joined: 2010-06-19 13:23:25
Contact:

Post 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:
bonienl
Posts: 156
Joined: 2008-02-24 10:10:43
Location: Netherlands

Post by bonienl »

Does the preview work for you guys?
Subbat
Posts: 79
Joined: 2010-06-19 13:23:25
Contact:

Post by Subbat »

Yes, it works fine...
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

Post 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..
bonienl
Posts: 156
Joined: 2008-02-24 10:10:43
Location: Netherlands

Post 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
Subbat
Posts: 79
Joined: 2010-06-19 13:23:25
Contact:

Post by Subbat »

:grinking: ça marche tout de suite mieus comme ça...

Merci
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

parfait

Post 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 =)
bonienl
Posts: 156
Joined: 2008-02-24 10:10:43
Location: Netherlands

Post by bonienl »

Template has been tested on Internet Explorer, Firefox and Chrome.

Which version of Chrome are you using?
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

Post 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?
bonienl
Posts: 156
Joined: 2008-02-24 10:10:43
Location: Netherlands

Post by bonienl »

tiagoaquino wrote:r u interested in the portuguese translation?
Any language is welcome, my pleasure to add Portuguese...
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

Post 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..
Subbat
Posts: 79
Joined: 2010-06-19 13:23:25
Contact:

Post 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...
Galed
Posts: 2
Joined: 2011-05-18 16:14:36

Post 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]
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

Hey pal.. another doubt...

Post 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?!
Post Reply