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
*Guest* - Frau Holle
Posts: 46
Joined: 2002-12-14 19:24:59

Post by *Guest* - Frau Holle »

Hi, you have to change this:

1. Search for:

Code: Select all

<xsl:param name="show_country" select="'true'" />
	<xsl:param name="show_director" select="'true'" />
	<xsl:param name="show_year" select="'true'" />
Change it to:

Code: Select all

	<xsl:param name="show_country" select="'true'" />
	<xsl:param name="show_length" select="'true'" />
2. Search for:

Code: Select all

<xsl:if test="$show_director = 'true'">
				<th><a href="javascript:sortBy('director')" class="tHead">Director</a></th>
				</xsl:if>
				<xsl:if test="$show_category = 'true'">
				<th><a href="javascript:sortBy('category')" class="tHead">Category</a></th>
				</xsl:if>
				<xsl:if test="$show_country = 'true'">
				<th><a href="javascript:sortBy('country')" class="tHead">Country</a></th>
				</xsl:if>
				<xsl:if test="$show_year = 'true'">
				<th><a href="javascript:sortBy('year')" class="tHead">Year</a></th>
				</xsl:if>
Replace by:

Code: Select all

				<xsl:if test="$show_category = 'true'">
				<th><a href="javascript:sortBy('category')" class="tHead">Category</a></th>
				</xsl:if>
				<xsl:if test="$show_country = 'true'">
				<th><a href="javascript:sortBy('country')" class="tHead">Country</a></th>
				</xsl:if>
				<xsl:if test="$show_length = 'true'">
				<th><a href="javascript:sortBy('length')" class="tHead">Length</a></th>
				</xsl:if>
3. Search for:

Code: Select all

			<xsl:if test="$show_director = 'true'">
				<td class="movieList" >
					<span id="col_director">
						<xsl:value-of select="director" />
					</span>
				</td>
			</xsl:if>
			<xsl:if test="$show_category = 'true'">
				<td class="movieList">
					<span id="col_category">
						<xsl:value-of select="category" />
					</span>
				</td>
			</xsl:if>
			<xsl:if test="$show_country = 'true'">
				<td class="movieList">
					<span id="col_country">
						<xsl:value-of select="country" />
					</span>
				</td>
			</xsl:if>
			<xsl:if test="$show_year = 'true'">
				<td class="movieList">
					<span id="col_year">
						<xsl:value-of select="year" />
					</span>
				</td>
			</xsl:if>
Replace it by:

Code: Select all

			<xsl:if test="$show_category = 'true'">
				<td class="movieList">
					<span id="col_category">
						<xsl:value-of select="category" />
					</span>
				</td>
			</xsl:if>
			<xsl:if test="$show_country = 'true'">
				<td class="movieList">
					<span id="col_country">
						<xsl:value-of select="country" />
					</span>
				</td>
			</xsl:if>
			<xsl:if test="$show_length = 'true'">
				<td class="movieList">
					<span id="col_length">
						<xsl:value-of select="length" />
					</span>
				</td>
			</xsl:if>
Thats all :)
ben__001
Posts: 12
Joined: 2003-03-05 02:49:32

Post by ben__001 »

thanks,... also how can the rating, category and country be removed from the main window and replace it with the number of disks.
Ben
palantir
Posts: 14
Joined: 2003-04-06 08:10:49
Location: Porto

Post by palantir »

Hi

this is really a great template, I've tried, and changed it a bit, but I noticed that when trying to use it with Netscape Navigator, it doesn't work :??:

is there any reason for this, or any way to make it work?
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

It will never work with netscape!

Post by Willspo »

It will never work with netscape! :evil:

/w
palantir
Posts: 14
Joined: 2003-04-06 08:10:49
Location: Porto

Post by palantir »

why not?

Netscape is so much better than ie... :wink:
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Mozilla Firebird is better :D
I guess that for the XML processing he uses some functions that exist only in IE.
It is maybe possible to do this kind of things in Mozilla/Netscape, but if the functions have different names the code for IE won't work unless he modifies everything, and I guess that he does not have time for that ;)
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

Post by Willspo »

:D
AzZ_KiKr

frames?

Post by AzZ_KiKr »

how is the progress ont he template of this one with the frames???


cause the all the way up scrolling, isnt that handy
Guest

Post by Guest »

Very nice template :grinking:

Can someone help me modify the "Play" function so that it uses $$ITEM_URL? Basically I want to be able to open files from my HDD, because that's where most of my media is located. Thank you in advance.
goodies
Posts: 6
Joined: 2003-06-09 17:41:11

Post by goodies »

thanks a lot for the template
great one :grinking:
any chance to get a "quit" button ?
MAGGETTE

problems with category

Post by MAGGETTE »

hello, Willspo
i've just shown your new template, it's very good, but i've an important problem as it hapens in previews templates from you. in the category section, apears lots of diferents categories, the reason is that, for example in one film, the category can be: action, humor; another one could be: action. the proble is that in the html will show:
-action, humor
-action
as differents categories

i'm talking about 100 diferents categories, do you know? sorry about my poor english.

i would like to know if it's possible show only categories with 1 word, and when you choose one of them it show all films that had this word in the category.
if this isn't possible, a solution could be delete it, but i don't how. i prefer use your previews template, but i had the same problem, and i would like to remove the selection by categories, and if it's possible explain me how i can make the web to use whole the monitor as in the tv index of your new template.

i hope do you understand what i'm saying

thank you very much
Blackhawk
Posts: 11
Joined: 2003-07-07 12:01:53

Post by Blackhawk »

@MAGGETTE:
For put one film in two (or more) differente category you must write the category like this :
action/fantastique

You must separate category by /.

P.S : Sorry for my poor English

@+
Blackhawk
Posts: 11
Joined: 2003-07-07 12:01:53

Post by Blackhawk »

Thank you for this template !
Last edited by Blackhawk on 2003-07-10 13:46:30, edited 2 times in total.
Benzebuth

Post by Benzebuth »

hi, i want to translate your script in french, how can i do ???

( explications in french please lol )
Benzebuth

Post by Benzebuth »

ok it's good

thx to me.
Guest - YPERiT (DE)

Post by Guest - YPERiT (DE) »

Hi

I modified the script from Frau Holle, but i'm still looking for the variable to remove the movie number.
Can someone explain, how to remove this? Tnx

Bye YPERiT

PS: nice tool and nice script :)
card
Posts: 6
Joined: 2003-04-28 04:39:46

Post by card »

Guest - YPERiT (DE) wrote: ...but i'm still looking for the variable to remove the movie number.
Can someone explain, how to remove this? Tnx
Find in transform.xml text (near 140..150 line):

Code: Select all

<xsl:number value="position()"/>.
and remove it (or remark by <!-- -->)
Guest - YPERiT (DE)

Post by Guest - YPERiT (DE) »

:grinking: @ card
Perfect! Tnx.

YPERiT
Benzebuth

Post by Benzebuth »

hi

is there a way to reduce the size of search and category items on the left side of the window.

i want to reduce the search part and category part to re center the rigth party.

lol ... english language is cool but not for me ...

in french : viewtopic.php?p=3577#3577

thx all
guedec
Posts: 1
Joined: 2003-07-17 17:04:56

Post by guedec »

Hi All,

I’m using this template to export my personal movie DB.
I’ve slightly modified it to fit my proper design but it’s really a great template!

Congratulations my friend Willspo !

However, I’ve got an annoying problem with it because some of my friends cannot open the index.html file on their computer.

It seems this is related with the client environment, i.e. windows and/or IE version/service pack level.

When it is not working, IE reports an error (Automation server can’t create object) referring to the following line in the index.html file:

var xmlDoc = new ActiveXObject("MSXML2.FreeThreadedDOMDocument.3.0");

I’ve just checked on some forums and it seems to be related either with ActiveX security policy or maybe with MSXML2 library.

But so far we didn’t get it to work on their computers.

By any chance, does anyone here know something on that subject?

Cheers
Post Reply