rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Pit on December 19, 2007, 07:48:51 PM

Title: Picture Path and syntax
Post by: Pit on December 19, 2007, 07:48:51 PM
At the moment i load the pictures and icons for my default-template from the webspace of my website. But i want to store these pics at the webserver itself.

Now my question:
HFS is installed in c:\programme\hfs-webserver

under hfs-webserver i´ve created a folder pics. from this folder i want to use the icons and pictures but i dont know the syntax and the correct path which i must use to dispay the pics in the template. please can anyone help - thanks
Title: Re: Picture Path and syntax
Post by: bacter on December 19, 2007, 09:12:10 PM
Where in your page you need to include a picture, insert some code like this:

<img src="/hfssys/logo.png" width="140px" height="140px" align="left" alt="Bild fehlt"[/color] >

The red path-filename must be your file, starting from root "/" in your vfs (virtual file system). In the example the folder hfssys contains pictures to load, it can't be protected to have available the pictures before login, but it can be hidden.

The blue text is optional to define size, alignment and even an alternative text if the picture can't be loaded.

I suggest you bind your pics folder to root of vfs, so your filename can be: /pics/mypic.gif for example.
Title: Re: Picture Path and syntax
Post by: Pit on December 19, 2007, 09:29:49 PM
Thanks for your answer, but it didn´t work for me. I´ve tried, but i only get an picture placeholder. My filesystem.vfs is in the hfs-webserver folder. I try  this path:

/pics/picname.gif

I dont know where is the root, because my shared folder are on different hdd´s.

Here you can look: http://phampel.dyndns.org (http://phampel.dyndns.org)
Title: Re: Picture Path and syntax
Post by: Foggy on December 20, 2007, 12:54:27 AM
The root is a virtual folder(most of the time), but you have to create the link from HFS' point of view.
If you have to go into a folder to see a picture that you want to use, try copying the /foldername's/ from after the Domain/IP and then append the name of the picture.

I had a look at your hfs but couldn't create an example because my German isn't too good.
Title: Re: Picture Path and syntax
Post by: Pit on December 20, 2007, 06:37:06 AM
Thank you, now it works. My Pic-Folder was no folder in the vfs, it was an Folder from the windows filesystem.