Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - svenne

Pages: 1 2 3 4 [5] 6 7 8
81
Support / Re: [SOLVED] Issue with maxvalues on Export
« on: October 09, 2010, 12:26:20 am »
Hi kmickeletto!

Here's the (or a) trick to trim the last comma:

Code: [Select]
<actors>{#StringReplace '{%value=actors template="pages\actors.ptm" maxvalues="3" params="full"}' ', [ENDLIST]' ''}</actors>
actors.ptm (all in one line):
Code: [Select]
%HEAD%%HEAD%{%param=name}, %FOOT%[ENDLIST]%FOOT%

82
There is a minor problem when using the template functions replace/#StringReplace to replace quotation marks (' or "): When there is a PVD-link in the exported field things get messed up. Since I excluded empty fields from export with the aid of some nested #StringReplace and #ConditionAdd commands, this became an issue here for fields that contain PVD-links. For sure it's a bug in PVD, but it's complicated to explain how and when these heavily nested commands trigger it and I'm sure it's complicated to solve... and that would be for the benefit of maybe only one or two people (already including me)...  ;)
Since removing this bug (that most likely no other one would ever stumble upon while developing templates) would surely delay release of PVD 1.0 I won't mention this never ever again... ;)
So I reconsidered my strategy and added some simple javascript to get a workaround... and it works. Fields with links are exported nicely and empty fields are not displayed. Here are the new versions of my templates...

83
That you like 'em that much truly feels good...  :-*

Maybe it would be strange if you click on "print" in PVD and a "save as..." dialogue opens up instead of a printer dialogue...
So if you decide to add a print item that calls my export template (would be kind of a great honour to me, of course ;)), you might want to override the "save as..." dialogue and just export the file to temporary files instead... after clicking "print" the page would pop up in the user's default browser. I added a "Print" button to the exported page to make things more obvious.

By the way, and completely apart from this, I almost can't await PVD version 1. I'm sure it's quite a lot of work, though...

84
- added a little bit more details for audio streams
- added "Subtitles" field (will only show up if not empty)
- added a "Print" button (to HTML Print Layout)
- did some minor tweaks

85
Feature Suggestions / Re: Export HTML Frames
« on: August 21, 2010, 01:56:20 pm »
Rick's answer should solve it.

By the way, if you're not used to zip and unzip see here:
http://www.howtozip.com/indexmenu.asp?menu=what_is_a_zip_file_9
Guide on how to use the Windows' built in zip feature:
http://maximumpcguides.com/windows-vista/compress-and-uncompress-a-folder-or-file-in-windows-vista/
It's explained for Windows Vista but it's quite similar on WindowsXP.
Guide for Windows 7:
How to zip: http://maximumpcguides.com/windows-7/zip-a-file-or-folder/
How to unzip: http://maximumpcguides.com/windows-7/unzip-a-file-or-folder/

Concerning the filenames: in future versions of my export templates a small thing will change. Just to add a little confusion...  ;)
the folder's name won't be pages anymore but [report-name]_files (if the corresponding html file was called [report-name].html)

86
Just perfect!  :D  Thanks!

I modified my export templates now...

87
I modified the templates again, taking advantage of a new feature Nostra implemented...

If export templates don't generate a single file but multiple files instead (several html pages + stylesheet files + images, etc.), these files now can be stored in a folder named similar to the main file.

An example:
if you advise the "HTML Frames" template to export your database to a file named mymovies.html, now all additional files that are generated during the process will be stored in a folder named mymovies_files. Hence it will be more obvious which folder belongs to a corresponding html file, especially if you do several different exports (like different selections, your movie list altered by filters, or whatever). Windows users will also benefit from this feature ("pairs of web pages and folders"):
http://paulelso.wordpress.com/2006/09/20/xp-folder-option-managing-pairs-of-web-pages-and-folders/

88
Well, thanks for your plaudit!  :)
I added support for episodes to this template now. They will be listed beneath the corresponding main entry in smaller font size.

[attachment deleted by admin]

89
Ok, just checked it... it works fine with imagepath!! Sorry...
It didn't work if used with both imagepath and recordfilename, but the problem was solely the use in recordfilename...

I just saw you didn't add %fname% to recordfilename but recordtemplate. I can't imagine any use in recordtemplate, because the path in recordtemplate is the source path in the Plugins\Templates folder of PVD and that can never be dependend on the filename chosen in the "save as" dialogue. Am I wrong?
Would be great to have that in recordfilename to be able to store all exported files in the subfolder "%fname%_files".

90
Great, I just saw that it made its way into the newest version of the export plugin!  :)

It works well with copyfile, but when used with recordfilename and imagepath no records or images are exported...  :'(
recordfilename="%fname%_files\movie%id%.html"
imagepath="%fname%_files\images\"

And I just didn't consider until now: I will need another thing to be able to use it properly...
I need to have access to %fname% outside the %OPTIONS%-part of the template, too. I need it for links to subpages and to be able to include the stylesheets, for example. Something like this:
<link rel="stylesheet" type="text/css" href="./{%value=fname}_files/css/main.css">

Would that be possible? Thanks in advance, of course!!

91
Just fetched the latest updates (in PVD: "Help" -> "Check for updates") and it's fine now. I surely appreciate the fix, thanks!

New versions of my export templates... For all those who tend to collect their favourite soap operas...  ;)
- episodes will be taken into account by all three templates now. Episodes will be listed below the description field of the corresponding main entry...

Some minor changes:
- the quality field will only be shown if it is not empty (same with some other fields)
- internal links will only be active if the movie entry they point to was not excluded from export. This was not the case for link type "ID" (= mid = "Database Record ID") until now
- there are some other tiny changes/bugfixes, but i can't remember what they were actually... ::)

92
Feature Suggestions / Re: Export HTML Frames
« on: August 15, 2010, 10:54:12 am »
Hi Trebek! I don't really know what you mean... :-[
You can upload the exported files to some webserver or zip the whole thing and email it to someone else. Perhaps it might be a good idea to batch convert the images first to avoid 20MB-emails: resize images to a height of 180 pixel and apply a strong compression (I'd suggest a quality of 20 to 25%). Almost every image editing software I know provides batch conversion of image files for that purpose, but there are a lot of freeware image tools available, too. I can recommend the FastStone Photo Resizer, for example:
http://www.faststone.org/FSResizerDetail.htm
This is also incorporated into the FastStone Image Viewer, so if you'd prefer a fully featured image viewer, you might want to give that a try:
http://www.faststone.org/FSViewerDetail.htm
(here you will find the Photo Resizer in "Tools" -> "Batch convert selected images")

But I suspect I didn't get your point? Provide some details and get little bit more concrete about the feature you're missing. What would you like to have?

93
Support / Re: Variable for FileName
« on: August 08, 2010, 11:43:16 am »
Maybe the second function here might be more reliable... easier to deal with different drives and paths:
ExtractFileName
see here:
http://www.videodb.info/help/hlp_export.html#functions

I think the following should work, but I didn't test it. If you're satisfied with your solution, then you just might want to keep it your way... nevertheless:
Code: [Select]
<path>movies/{#ExtractFileName '{%value=path}'}</path>

94
Hi Seth, hi Rick, I'm unsure if it's a feature or a bug... ;-) Existing files in destination folder are not overwritten when copied via template (copyfile="source<->target"). This is not only the case with my template, but with templates in general. It may be intended to prevent accidental overwrites. In contrast, exported images and exported movie pages are overwritten (after prompting for confirmation to overwrite the main/index file). I'd guess it's a (minor) bug...
So if you modify a template and want to test it, you should always empty the destination folder first.

Perhaps we should tell Nostra. I'd guess that he can change that behaviour with little effort.

95
Scripts and Templates / Re: Tag for count of movies in database?
« on: August 01, 2010, 05:43:26 pm »
Hi ntskalman!

Total record count... {%value=200}

You can find things like that here, so if you're curious, have a look:
Personal Video Database Export Templates Manual

96
And something was wrong with the ZIP-Archive containing the HTML print layout template. Stylesheets were missing...  :-[

So these are the newest and complete versions:

97
Ok, that should be an easy task, but if anything stays unclear, feel free to ask...
So here we go:

1) Do a search for "kids" in "Category":

In Personal Video Database click on the button next to "Search" that says "Title + Original Title + Aka" and change it to "Category" (it is somewhwere in the lower part of the long, long list you will see).

Enter your search term ("kids") into the "Search:"-field

All movies that do not fit the search term will be invisible now. (You can undo/reset your search later by clicking onto the curled green arrow next to the search field)

2) After doing the search, choose "HTML print layout" from the "Export"-menu... and you're (almost) done.

3) Just in case: If you want to have bigger posters, edit the file "main.css" (in subfolder htmlprintfiles\css\ in the folder you exported to) with Notepad. You will see the following code quite at the top of this file:

Code: [Select]
div.poster
{
  max-width:170pt;
  float:right;
  clear:both;
  padding:0.3em;
  margin:1em;
  border:1px dotted black;
}

Change "max-width:170pt;" to "max-width:250pt;", save main.css and reload the exported HTML-file in your browser: now posters should be almost half the page wide (if the original poster images are big enough, cause small images won't be enlarged)...

4) Print the exported list with your browser's print feature.

98
Great! And as always, of course: Thanks a lot!

99
I added a new feature to the "HTML Frames" template:
You can choose now wether you want to see all exported entries or only the newest ones. If you export your database to share it with friends: now it is easier for them to keep track of new additions, even if you export your whole database.

100
Ok, I tested it with altered preferences now and you're right. So it seems that viewed is always set to the default state (which additionally may result in changes/deletion of viewdate, of course).

Pages: 1 2 3 4 [5] 6 7 8