Variable do not work after Upgrade to V.4.8.7

127 views
Skip to first unread message

Stefan

unread,
Feb 18, 2013, 6:42:05 AM2/18/13
to dir...@googlegroups.com
Hi!

Everything was fine before it updates dirhtml.exe.

The problem occurs in the FILE_MATCHES code:

---

Code in txt file:

/FILE_MATCHES_BEFORE_A
show_image.txt

---

Code of showimage.txt:

/*.pdf
<b>Preview</b><br/><br/><img src="%%NO_EXT_FNAME%.png" border="0" /><br/><br/><b>Download:</b><br/>
/*.jpg
<b>Preview</b><br/><br/><img src="%%NO_EXT_FNAME%.png" height="200" border="0" /><br/><br/><b>Download HighRes Version (RGB or CMYK):</b><br/>
/*.gif
<b>Preview</b><br/><br/><img src="%%F" height="200" border="0" /><br/><br/><b>Download HighRes Version (RGB or CMYK):</b><br/>
/*.swf|*.flv
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        width="480" height="310">
        <param name="movie" value="%%F">
        <param name="quality" value="high">
        <param name="loop" value="false">
        <EMBED src="%%F" quality="high" bgcolor="#FFFFFF" width="480" height="310" loop="false" type="application/x-shockwave-flash"
</EMBED>
</OBJECT>
<br/><br/><b>Download:</b><br/>
/*.wmv
<OBJECT id='mediaPlayer' width="480" height="310" 
      classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' 
      standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
      <param name='fileName' value="%%F">
      <param name='animationatStart' value='true'>
      <param name='transparentatStart' value='false'>
      <param name='autoStart' value="false">
      <param name='showControls' value="true">
      <param name='loop' value="false">
      <EMBED type='application/x-mplayer2'
        id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' 
        bgcolor='darkblue' showcontrols="true" showtracker='-1' 
        showdisplay='1' showstatusbar='1' videoborder3d='-1' width="480" height="310"
        src="%%F" autostart="false" designtimesp='5311' loop="false">
      </EMBED>
</OBJECT>
<!--[if !IE]>-->
<br/><br/><a href="http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx">Get Media Player plug-in for FireFox</a>
<!--<![endif]-->
<br/><br/><b>Download:</b><br/>
/*.mov
<video id="video_player" class="video-js vjs-default-skin" controls preload="auto" width="480" height="310" data-setup="{}">
  <source src="%%F" type='video/quicktime'>
</video>
<br/><br/><b>Download:</b><br/>
/*.mp4
<video id="video_player" class="video-js vjs-default-skin" controls preload="auto" width="480" height="310" data-setup="{}">
  <source src="%%F" type='video/mp4'>
  <source src="%%F" type='video/webm'>
</video>
<br/><br/><b>Download:</b><br/>

---

Problem: The variables do not work. They are not replaced by dirhtml.

The resulting html file does not show images, pdfs or videos.

In the documentation there are two different statements:

%%NO_EXT_FNAME%



versus

Note: All /FILE_MATCH sections support %%F, %%F_PATH, %%NO_EXT_FNAME% and %%RELATIVE_PATH variables.

Any help is appreciated.

Best regards

Stefan
Inserts the filename with with no extension
This makes it possible to have screenshots point to video or other files with filenames that are identical except the extension.
(Note: only works in /FILE_HREF_APPEND, /PRE_HREF_FILE and /POST_HREF_FILE sections)



dirhtml

unread,
Feb 20, 2013, 12:51:36 PM2/20/13
to dir...@googlegroups.com
The problem with variables in file match sections has been fixed.

Download dirhtml v4.871 (tentatively final) here:
http://home.comcast.net/~dirhtml/dirhtml_4-871_Test_Release.zip

Stefan

unread,
Feb 25, 2013, 4:27:22 AM2/25/13
to dir...@googlegroups.com
Hi dirhtml,

thank you. The update works fine.

Best regards

Stefan
Reply all
Reply to author
Forward
0 new messages