Page 9 of 11

close window

Posted: 2003-10-10 20:52:50
by DeVile
Hello!

Forgive me but my english isn't very good in handwriting.
Great template really, i like it!
Unfortunately for me, default html version want show me "Close window"
button!

Please help! Thank you! :??:

Posted: 2004-05-12 20:50:56
by Chak
Hi all,
Can some one help me to get this template working?
When I have more the 74 movies the page is empty.

I can’t find any error in the log.

You can see the result at the fallowing urls.
http://et.xs4all.nl/film/index.html

the xml file
http://et.xs4all.nl/film/data/movies.xml

when I use other templates it works fin.
http://et.xs4all.nl/film/data/index.html


thank
Chak

Posted: 2004-05-12 22:14:24
by antp
If you open the xml file in a browser it says there is an error at line 3712 column 1300 (well, at least Mozilla says it).
If you go to this line, you find a bad character in the description of movie nr 136 :

[...] disarm it [...]

The character is not visible in the message, but if you quote my message you'll see a square between the two words.

There are other similar characters later in the description. You'll have to remove them (I guess that in AMC they appear as a vertical black line)

Antp is probably right

Posted: 2004-05-13 06:16:19
by Willspo
My guess to is that your xml file contains illegal characters (It has nothing to do with the number of movies). If you can't find them (the strange characters) you can also try to edit the xsl file. Insert a CDATA clause (<![CDATA[ ... ]]>) everywhere the template writes out data. For example:

Code: Select all

<span id="movieDescription">
  <![CDATA[
    <xsl:value-of select="description"/>
  ]]>
</span>
 
:fish:

Posted: 2004-05-13 08:25:09
by antp
The error is in a CDATA section (the description). As I said there are some illegal characters in the description.

Posted: 2004-05-13 08:47:11
by Willspo
:o

Missed that. And the code in my last post does'nt work ;) Guess you have to locate the illegeal chars and replace them. :D

Posted: 2004-05-13 19:57:50
by Guest
YESSSSSSS it's working. :D
thanky you all

Am I doing something wrong

Posted: 2004-05-13 21:03:41
by Magius
I followed the instructions for loading the template up. One it was working i loaded it up to my website to take a look. But my movies are not showing. Only thing that is showing is on the left which is search and filter. Is there something i am doing wrong that will not allow it to show? Any help would be greatly appreciated. :grinking:

http://home.nycap.rr.com/edterri

this is the link to my webpage.

You forgot to upload movies.xml

Posted: 2004-05-14 14:37:33
by Willspo
Magius, you forgot to upload movies.xml!
It has to be in the same folder as everything else.
:wink:

RE: You forgot to upload movies.xml

Posted: 2004-05-14 22:57:13
by Magius
It is there as plain as day. If i run the .html fle from my PC it works just fine. I uploaded the directory the same as it is on my HDD. As soon as i uploaded it it didn't work. :??:

I changed everything to all be in one directory to. Works on the computer but not on the web. Anything else for me to try? Thanks for the response. :cool:

I said before!

Posted: 2004-05-16 09:17:31
by Willspo
Type this into your browser and you'll see whats wrong :hum:

http://home.nycap.rr.com/edterri/movies.xml

Posted: 2004-08-13 12:36:07
by Joelie
Hi, the first thing you have to do is te rename the ****.xml file to something.html. But i cant rename the extension of that file. So can you tell me how to do that?? Thanks.

Alphabetical Index Missing

Posted: 2004-08-14 09:51:40
by GSX-R
Hey fellas,

Something I think this template is badly lacking? an alphabetical index running along the top of the screen.

I have over 800 movies of which i'd like to implement with this template, but to load the index.html file showing all 800+ movies is just out of control (would take forever to load) ... breaking them all up by original title alphabetically would overcome this problem.

I would have figured this feature be a MUST-have for any template. Whats the go?

Posted: 2004-08-14 09:56:37
by GSX-R
Oh, and another feature i think that would be nice to have is a "None" option in the filter list which is the filter that loads by default when you initiate index.html. The way it's set at the moment is with a filter default of "all" .. but for people like me who have 800+ movies, that would take forever to load.

Posted: 2004-08-18 03:14:37
by HomeroArg
Isn't there a way to split the XML file containing all the info in:
- One XML file with the movie titles and data,
and
- Several XML files, one per movie, with the sinopsis and comments ???
That way, you can use a simple list of all the movies to browse and make queries and 3 files for each movie: an XML with the sinopsis and comments, an HTML and the picture file.
The poblem is that the sinopsis and comments are too big to be all in one file.......
Is this remotely possible or am i too wrong :??:

minor problem

Posted: 2004-08-23 10:33:13
by scorpiox73
yes but inow it shows <br> after every actor
Paramount Jay wrote:There is a little mistake in the script, the last actor is never showed in the list of actors! So you have to modify the transform.xml script like this (search the first line of the script and replace all the template tag):

Code: Select all

	<xsl:template name="commas_to_br">
		<xsl:param name="src" />
		<xsl:choose> 
		   <xsl:when test="contains($src, ',')"> 
			   <xsl:value-of select="substring-before($src, ',')" />
				<br />
				<xsl:call-template name="commas_to_br">
					<xsl:with-param name="src" select="substring-after($src, ',')" />
				</xsl:call-template> 
		   </xsl:when> 
		   <xsl:otherwise> 
			  <xsl:value-of select="$src" /> 
		   </xsl:otherwise> 
		</xsl:choose>
	</xsl:template>
Ok, let's talk now about the famous html line break! To make it visible in your page replace

Code: Select all

<xsl:value-of select="description" />
by

Code: Select all

		<xsl:call-template name="html_br">
				<xsl:with-param name="src" select="description" />
			</xsl:call-template>
and add this

Code: Select all

   <xsl:template name="html_br">
		<xsl:param name="src" />
		<xsl:choose> 
		   <xsl:when test="contains($src, '<br>')"> 
			   <xsl:value-of select="substring-before($src, '<br>')" />
				<br />
				<xsl:call-template name="html_br">
					<xsl:with-param name="src" select="substring-after($src, '<br>')" />
				</xsl:call-template> 
		   </xsl:when> 
		   <xsl:otherwise> 
			  <xsl:value-of select="$src" /> 
		   </xsl:otherwise> 
		</xsl:choose>
	</xsl:template>
just before this line:

Code: Select all

	<xsl:template name="commas_to_br">
This will replace the <br> in the description by a REAL line break! :)

Posted: 2004-08-23 12:08:19
by Guest
Hello, your template is really excellent.

I have just some small problems which must be easy to resolve, but I'm not a coder and I'm not an expert in xml:

- First of all, I would like change the width of columns. I've tried this:
<thead>
<th width="80"><a href="...>
But this value hasn't effect on my columns, even with others numbers.

- In second, I changed the format of pictures to 200x280 in the .css, and now, I would like align the text in the pop-up to this new measure.

- In last, I would like to add a classification per rating (without stars) below the one created by categories.

What I have to do ?
Thanks and sorry for my imperfect english. I will work on this.

Posted: 2004-08-23 12:42:13
by Guest
I have solved the second problem. It was stupid! It was enough to change the value width in <xsl:template match="movie" mode="info_view">.

But the 2 others are too complicated for me...

Posted: 2004-08-23 13:09:38
by Guest
Definitely, I would do better look at longer, I have found how to resize the columns. It was even more stupid! It was enough to change the end of the css.

But, for the last point, I do not think I'm able to solve it alone...

Posted: 2004-08-24 11:55:58
by Guest
Anonymous wrote:http://www3.telus.net/quang/movies/index.html

Nothing much...
What template is this ? I like it.., I have also a huge list with movies, and because of the heaviness of Willspo's script, I want to change...

But I can't find this one in the templates... There is one almost similar, but with that one you have to scroll back to the top every time you click a movie because it uses no frames ...

Thanx a lot in advance... !