New Template

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
Post Reply
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

New Template

Post by Willspo »

Hello!

I think my new template (xslt template) is finnished so i started a new topic (sorry Twink for messing up your thread before)
You can download the template from www.tegenaria.com/movieDB/xslt_template_3.zip

Requirements: PC and Internet Explorer 6 (IE 5 might work)
Features: sorting, filtering and searching and launch movies

!! Be sure to read the readme file before using it.

Screenshots:
Image
Default html version

Image
TV optimized version with play function

:fish:
/w
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Looks very nice :)
Guest

Post by Guest »

Sure is it nice. I've changed some little things on your templete. Maybe there is an idea for you.

1.

Code: Select all

<th><a href="javascript:sortBy('title')" class="tHead"><b>Titel</b></a></th>				
				<th width="200" nowrap="true"><a href="javascript:sortBy('category')" class="tHead"><b>Genre</b></a></th>
				<th width="80"><a href="javascript:sortBy('media')" class="tHead"><b>gesehen</b></a></th>
				<th width="80"><a href="javascript:sortBy('cdanzahl')" class="tHead"><b>CD Anzahl</b></a></th>
				<th width="80"><a href="javascript:sortBy('year')" class="tHead"><b>Jahr</b></a></th>
<media> shows me a 'Yes' if I've seen this movie, or 'No' if not
The stars, I dont need, because thats not MY rating of the movie.

2.

Code: Select all

<xsl:when test="$search = 'true'">...
<xsl:sort select="*[name() = 'year']" order="{$sort_order}" data-type="{$sort_data_type}" />
If I search for an actor I want to see the table in an order by year. So I can see the first film of this actor... Also better by searching for movies like Star Trek or James Bond. So you can see the oldest movie on top and so on.

3.

Code: Select all

<xsl:template match="movie" mode="normal_view">...	
<xsl:number value="number"/>. 
So I can see on one view the number of the movie and I search for the film by the movie number in my movie rack.

4.

Code: Select all

<td valign="top" class="infoViewTable">...
<p class="infoView">
			<b>Nummer:</b> <xsl:value-of select="number" />
			<br class="infoViewTable" />
			<b>Genre:</b> <xsl:value-of select="category" />
			<br class="infoViewTable" />
			<b>gesamt:</b> <xsl:value-of select="filmegesamt" />
			<br class="infoViewTable" />
			<b>Jahr:</b> <xsl:value-of select="year" />
			<br class="infoViewTable" />
			<b>Länge:</b> <xsl:value-of select="length" /> min
			<br class="infoViewTable" />
			<b>Grösse:</b> <xsl:value-of select="bigness" /> MB
			<br class="infoViewTable" />
			<b>Regisseur:</b> <xsl:value-of select="director" />
			</p><p class="infoView">
			<b>Schauspieler:</b><br />
the infpviewtable is a little bit extended.

5. Now the style sheet:

Code: Select all

td.contentTable {
	font-family: Tahoma, Arial, Verdana;	
	font-size: 10px;	
	border-bottom: 1px solid light-gray;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 5px;
	padding-right: 8px;
	text-align: center;
	color: #333333;
	cursor: hand;
}

td.titleTable {
	font-family: Tahoma, Arial, Verdana;	
	font-size: 10px;	
	border-bottom: 1px solid light-gray;
	border-left: 1px solid light-gray;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 5px;
	padding-right: 8px;
	text-align: left;
	color: #333333;
	cursor: hand;
}

td.yearTable {
	font-family: Tahoma, Arial, Verdana;	
	font-size: 10px;	
	border-bottom: 1px solid light-gray;
	border-right: 1px solid light-gray;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 5px;
	padding-right: 8px;
	text-align: center;
	color: #333333;
	cursor: hand;
}

td.genreTable {
	font-family: Tahoma, Arial, Verdana;	
	font-size: 10px;	
	border-bottom: 1px solid light-gray;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 5px;
	padding-right: 8px;
	text-align: left;
	color: #333333;
	cursor: hand;
}

Now I have a border on left and right. Also the title and genre-align is on left the align of the others is in centre. Oh, well terrible english. If you want I can make a screenshot. By that way: thx :)
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

Thanks

Post by Willspo »

:grinking:

Those are all good suggestions. I did not know what kind of columns people wanted so I started out with those I use. There is support to show hide some of them by addParam

Code: Select all

<script language="javaScript" src="default.js"></script>
<script language="javaScript">
addParam("show_country", "false");  // Dont show country column
</script>
Now this can be done for: country, category, director and year. But i'll add support for all columns later.


/w
craZy C
Posts: 9
Joined: 2002-10-20 01:30:30
Location: Darwin, Australia

Post by craZy C »

Wills buddy as i said before. You Da Man........it is sweet.
I am playing with it as we speek and will make my admendments as i need them. I will try for a few additions like a close main window button as the xml page can be a pain to close at times. And also see if i can maker it play from the hard drive.. Either way as i said...YOU DA MAN.
Marginal
Posts: 9
Joined: 2002-12-01 16:35:42
Location: Brussels
Contact:

Post by Marginal »

Woaw great template !!!
I like it a lot too !
Unfortunately, when I browse the page it goes very slowly. Can I do anything to make it load and browse more quickly ?
Thank you. Have a nice day.

Thank you "Guest" for your changes, these can all help us.
Yeah a screenshot would be appreciated befor changing everything :)

Thank you men, great community !
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

Strange

Post by Willspo »

Strange
It should be pretty fast since it does'nt pre-load the image files. It runs smooth on my P3 600 with 120 movies.

But you can try to remove the fade effects in default.js:

Code: Select all

document.all.main.filters[0].apply();
document.all.main.filters[0].play();
And if you're running the tv version remove all filters in style_tv.css.

If that does'nt help you can try to download the latest XML parser from Microsoft. (Go to microsoft.com-->download-->search for xml parser). It might be faster.

/w
Marginal
Posts: 9
Joined: 2002-12-01 16:35:42
Location: Brussels
Contact:

Post by Marginal »

Thank you for your answer.
I tried to do what you tell me but it isn't better.
When I deleted the two lines, it didn't change anything in the appearance and speed of movies.html

I also tried to download lastest xml parsers and nothing better.

I think it could be because of my 365 movies on the same page...
I'm running on a P3 650 - 392 Ram

Thank you for your help and template !!
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

Try this

Post by Willspo »

Ok I have a new idea, replace all:

Code: Select all

MSXML2.FreeThreadedDOMDocument.3.0
MSXML2.XSLTemplate.3.0
with:

Code: Select all

MSXML2.FreeThreadedDOMDocument.4.0
MSXML2.XSLTemplate.4.0
in default.js. This works if you have the new parser installed. According to Microsoft 4.0 should be a lot faster than 3.0 but I don't know if it will help.

By the way how large is your movies.xml with 365 movies?

/w
Marginal
Posts: 9
Joined: 2002-12-01 16:35:42
Location: Brussels
Contact:

Post by Marginal »

Hmm, I tried and no difference.
Thank you very much anyway for the time you spent for me !!

It's maybe another problem with...I don't know but not IE or XML.

The file takes 430ko with 360 movies but it seems to be slow only because of the "Grey bar" when my cursor is on a movie.

Have a nice day ;)
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

Post by Willspo »

Try to remove the grey bar then (row 138 in transform.xml).
change:

Code: Select all

<tr onmouseover="mouseOverTR(this)" onmouseout="mouseOutTR(this)" class="movieList">
to:

Code: Select all

<tr class="movieList">
/w
Marginal
Posts: 9
Joined: 2002-12-01 16:35:42
Location: Brussels
Contact:

Post by Marginal »

Ok, thank you very much, now it's perfect !
Have a nice evening.
anton
Posts: 15
Joined: 2002-11-01 04:02:48

Post by anton »

Can anybody pls give me a URL, where I could see this template at work ?

Thanks :)
*Guest* - Frau Holle
Posts: 46
Joined: 2002-12-14 19:24:59

Post by *Guest* - Frau Holle »

Yes, I've seen the Javascript Hide function. But for me it's better to edit this in transform.xml because than there are less informations, which will be load. I've 769 movies in my database. With the images it's aver 70MB big. The movies.xml is 1.4MB big.

Okay here is the Screenshoot:
Image
Sry for the bad quality. :(

Also I've upoaded the modified .xml and css.

http://www.chrisgideon.com/proggies/transform.zip
http://www.chrisgideon.com/proggies/style_default.zip

Willspo: If you have much time, it would be nice if you can look at my transform.xml. My problem I've described in the other Thread is not solved. In the end of transform.xml you can find "Graupelistiken" and there you can see a xml-command, which doesn't function. I don't know why :(. A short movies.xml you can find here:

http://www.chrisgideon.com/proggies/movieshort.zip

thx so much for your template. It's really great. Nearly perfect. It looks fantastic!
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

What does filmegesamt1 mean?

Post by Willspo »

What does filmegesamt1 mean?
Is it one values for all movies or one for each?

/w
*Guest* - Frau Holle
Posts: 46
Joined: 2002-12-14 19:24:59

Post by *Guest* - Frau Holle »

filmegesamt1 is one value for all movies. The value shows how much movies I have. Like <filmegesamt1>771</filmegesamt1>.
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

Post by Willspo »

Ok try to move it out of the movie node:

Change this:

Code: Select all

<movies>
   <movie>
      <filmegesamt1>769</filmegesamt1> 
   </movie>
</movies>
to:

Code: Select all

<movies>
   <filmegesamt1>769</filmegesamt1> 
   <movie>
      ...
   </movie>
</movies>
This involves putting the filmegesamt1 value outside the $$FOR_EACH
in your template.



/w
*Guest* - Frau Holle
Posts: 46
Joined: 2002-12-14 19:24:59

Post by *Guest* - Frau Holle »

fuck, fuck, fuck :) :) :) Such an apparent error. Oh Man :) Thank you very much Willspo :)
aCCuReRaS
Posts: 18
Joined: 2002-12-17 11:56:13
Location: Antwerp (Belgium)
Contact:

Post by aCCuReRaS »

my list with this template: http://www.team-radar.net/user_files/accu/movie_list/

Sorry Twink, but you're template doesn't seem to be working on the internet

Thanx for this one!
aCCuReRaS
Posts: 18
Joined: 2002-12-17 11:56:13
Location: Antwerp (Belgium)
Contact:

Post by aCCuReRaS »

Willspo, I have a suggestion for you're template.

My movies.xml is +- 1MB, and it's very heavy to load on the internet.

But when you put only the information displayed on the main page in 1 file, and the rest of the information, in other files (1 file /movie), then it will be not so heavy to load.

If I had know xml I should have done it, but I can't :(

Greetings
Post Reply