My New Template - Discontinued

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
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

My New Template - Discontinued

Post by Twink »

Well version 0.7 is my final offical release, but I decided to release what I'd done of 0.8 so far

0.8 = http://twink.orcon.net.nz/template0.8.rar
0.7 = http://twink.orcon.net.nz/template.zip

0.7 works with mozilla
0.8 might not work with mozilla , I never fully tested this, so likely to be very buggy (like the other ones werent :D )

At the moment I have no plans to work on this template further sorry


HISTORY

NEW IN 0.8
* Separated Javascript, HTML and Movies (Movies now in Movies.XML)
* Setting maxPerPage to 0 shows all movies in the category
* Ability to dynamically change layout (Choose Layout.xml in options)
* Shows sorted field (Small Triangle in Column Title)
* Buttons & InputText are now skinned (Thanks Willspo)
* Added Sorton field to Options in Layout.xml files (Original Sorting)
* Added Searchon field to Options in Layout.xml files (Fields that are searched on)
* Action Field in Layout.xml can hide/show multiple rows now (Layout2.xml does this)
* Popup Info using new popup action field in Layout.xml (Layout3.xml does this. Thanks to Willspo)
* Fixed the Quotation bug (By Using XML Movie Format)
* Fixed Groups with spaces in their name (ie New Zealand => New_Zealand)
* Fixed Column spans
* Fixed Sorting by numbers
* Fixed First Click Sort
* Fixed Click Text not Cell
* Character "|" is converted to <BR> (as AMC does opposite for saving to XML)

SO FAR
* Group by any field (With "(All)", "(None)" and "(Search)" support)
* Supports Multiple Categories/Groups for each movie
* Split into Pages of X Movies
* Options, Info and About Dialogs
* Sort on any field
* Expandable Info
* Search on any field
* CSS Themes/Styles
* Mozilla and Internet Explorer Support
* Ratings using 5 starts, each half star being 1/10 (Thanks to Bad Joker)
* Custom Layouts using the Layout.xml files


I have removed the code from these pages, please make sure you download my latest files instead
Template


OLD POST FOLLOWS, please read last post for latest news.

After a few requests of people that seemed to like my old template I decided to rewrite it. This is still being worked on (old one won't be anymore). The look is very similar to the old one, although the scripting beneath is very different (Thanks alot to Willspo, I used parts from his Scripts).
Last edited by Twink on 2002-12-13 08:33:39, edited 3 times in total.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I found a bug :D
if there is a quote ' in the description, it is cut
Willspo
Posts: 61
Joined: 2002-08-14 15:50:23

Post by Willspo »

Change all single quotes to double quotes after <!-- Start of Movies --> and it will work.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

But then it will not work if there are " in the description... :/
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

yeah, I know bout this bug. (thought I mentioned it)

if I changed it to " and Ant updates his program to use escape characters
like "=" (http://www.docnprof.com/character.html or http://kish.cc.il.us/faculty/dklick/cis119/html4.html bottom of page) i know this is a big ask, I just can't think of any other fix
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

also the line
APPRECIATION='$$ITEM_APPRECIATION'
can't be changed due to use of "
leaving it with ' should be fine so no change needed
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

In a future version I should add scripting for the export so it will be easier to make such things ;)
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

Updated.

Added in this Update
  • Options Dialog
    Changed some Layout stuff
    Partial fix for ' bug
Bugs
  • Links are black background with white text when shouldn't be
    Options Dialog isn't perfect
Note: Still not finished, I haven't finished layout (ie colors etc)
I'm still adding things from first post.
Please feel free to suggest things.
Last edited by Twink on 2002-11-01 03:48:32, edited 1 time in total.
Oribas

????

Post by Oribas »

Qui pourais eclairer ma l'anterne ? :??:
C'est pourquoi faire ? :hum:
Merci de me repondre

A+
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Étant donné que le topic est en anglais, ça serait mieux de continuer en anglais...
(Since the topic is in English, it would be better to continue in English)

It is a template to export movie data, in the HTML export function.
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

ADDED
  • Basic Sorting in Asceding/Descending Order (click Column Titles) WARNING don't click if you have alot of movies in the category it's rather slow.
    Click on first row of info for any movie and it will expand (like my old template did) with Year, Director and Actors (Actors Disabled due to buggyness)
Various changes within script for upcoming functions (ie ability to choose what info is shown for each movie =D

FIXED
small bug to do with multiple categories (ie movies categories that look like "ACTION / DRAMA / ROMANCE")
Last edited by Twink on 2002-11-01 03:49:19, edited 1 time in total.
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

ADDED/CHANGED
  • Fixed a few Style Errors
    Added "(None)" Groups
    Renamed "All" group to "(All)" for sorting puposes
    Now Sorts Groups
    Changed how Groups and Group Types are made.
    Modified a few things so external XML data source may be added in future edition (doesn't seem to support Movie.Attribute only Movie.getAttribute('Attribute'))
probably other things, really should keep changelog I guess.
Last edited by Twink on 2002-11-01 03:51:13, edited 1 time in total.
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

Although I still have quite a few ideas for this template it would be nice to get back some feedback on what people think about it and what could be added, bugs and stuff =P. Will help me keep motivated
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

no ideas at all?, does no one like this template? cos I could give up now =( ....

oooh looky next version is gonna have a search feature
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You template is very nice, but since I do not use it personnaly I do not know what you could add ;) I just tried it a little
watchout
Posts: 5
Joined: 2002-10-15 08:21:49

Post by watchout »

I don't have AMC right here.. So I can't test ur template.. Although I loved ur old template :grinking:

I modified it a tiny bit last night to fit my needs.. Who knows this new one is even better
Guest

Post by Guest »

your template is very nice but i when i export it leaves the actors names field blank?
is anyone else getting this?

thx for this nice template Twink!
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

I left it blank at the moment due to buggyness, it seems to have problems with some character haven't figured it out yet. Hopefully this will be fixed soon.
Twink
Posts: 92
Joined: 2002-08-01 01:40:12

Post by Twink »

mkay, here's a version where actors has been reenabled for you =).

Some stuff has been moved around again, I apologise if you can't find something I'm trying to find a good place to put things that can be customised.

Also has new Search support, most the time you can just type the title of the movie or partial title, (there does seem to be a bug in this thou). More Advanced searchs can be done using java regular expressions ( http://www.visibone.com/regular-expressions/ )

"E" Searchs for movies that contain E in Title or Description
"^Dog" Searchs for movies that start with Dog (^ = Starts with)
"ma$" Searchs for movies that end with ma ($ = Ends with)
"^Dogma$" = Starts with and ends with Dogma (ie full title)
see URL for better explanation

For those of you having the trouble with quotation marks ruining your fields, Ant's Find and Replace Script helps fixes this. I include it below with the neccessary changes to replace character " with ' but you'll have to set the Field variable for each field you wanna replace (I put the ones I ran it on in the comment above the line 'Field = fieldDescription;')

At the moment I'm trying to add multi-language support to it, so it doesn't have to be released in every language, although I haven't figured out a way to do this yet.

There may be some other small changes in this release, I can't think of anything worth mentioning.


PLEASE NOTE A BETTER REPLACE SCRIPT WAS RELEASED

Code: Select all

// SCRIPTING
// Find & Repace a value in a field
program FindReplace;
const
  OldValue = '"';
  NewValue = chr(39);
 //fieldActors fieldDescription fieldComments
  Field = fieldDescription;
  WholeFieldOnly = False;
begin
  if WholeFieldOnly then
  begin
    if GetField(Field) = OldValue then
      SetField(Field, NewValue);
  end else
  begin
    if Pos(OldValue, GetField(Field)) > 0 then
      SetField(Field, StringReplace(GetField(Field), OldValue, NewValue));
  end;
end.
Last edited by Twink on 2002-11-01 03:50:37, edited 1 time in total.
Guest

Post by Guest »

again great job!!
but i dont like one thing the comments... takes a little to much space for me but i love the search funtion!!!

also i'm getting some bugs with it...
some movies Format field says "undefined" when it is already defined and also some movies pictures are not showing up when but they do show in ANT???

great work!
Post Reply