Author Topic: How to edit templates in FHFS.  (Read 3762 times)

0 Members and 1 Guest are viewing this topic.

Offline giggy

  • Occasional poster
  • *
  • Posts: 23
    • View Profile
How to edit templates in FHFS.
« on: January 05, 2013, 05:46:17 PM »
Can anyone tell me how to edit fhfs templates to be suitable to my own website such as using my own logo, etc?

Thank you for your prompt replies in advance.
« Last Edit: January 05, 2013, 09:13:51 PM by Mars »

Offline giggy

  • Occasional poster
  • *
  • Posts: 23
    • View Profile
Re: How to edit templates in FHFS.
« Reply #1 on: January 05, 2013, 05:47:00 PM »
I forgot to mention that I am using 2.05.
« Last Edit: January 05, 2013, 09:14:11 PM by Mars »

Offline raybob

  • Moderator
  • Tireless poster
  • *****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: How to edit templates in FHFS.
« Reply #2 on: January 06, 2013, 06:39:48 AM »
Open up the various TPL files in the FHFS folder with notepad and start editing.

Be very careful though, it's very easy to mess up functionality.

Offline giggy

  • Occasional poster
  • *
  • Posts: 23
    • View Profile
Re: How to edit templates in FHFS.
« Reply #3 on: January 06, 2013, 03:33:12 PM »
Thanks. But could you answer me one specific question I have now?

If I want to replace FHFS logo with my own, where can I start?

I see base64 files are the only image files and I velieve I should replace a file with that extension and I do not know hpow to edit that file.

Thank you for your answer in advance.
« Last Edit: January 06, 2013, 03:44:21 PM by giggy »

Offline raybob

  • Moderator
  • Tireless poster
  • *****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: How to edit templates in FHFS.
« Reply #4 on: January 07, 2013, 01:23:07 AM »
Well, you can replace the base64 data with that from your own image (you can find base64 encoders online) or you can also just replace the base64 data with a URL to your logo.  Just open up the file with notepad to see the data.  In FHFS, pretty much everything that's not an EXE or DLL is written in plain-text and can be edited with notepad (that's what I use for writing FHFS, no IDE or anything :) ).

Basically whatever you put in that file will go into the HTML between the quotes in

 
Code: [Select]
<img src="" />
« Last Edit: January 07, 2013, 03:58:28 AM by raybob »

Offline giggy

  • Occasional poster
  • *
  • Posts: 23
    • View Profile
Re: How to edit templates in FHFS.
« Reply #5 on: January 13, 2013, 07:54:49 PM »
Well, you can replace the base64 data with that from your own image (you can find base64 encoders online)
Basically whatever you put in that file will go into the HTML between the quotes in


So I should convert my img to base64. Right?

or you can also just replace the base64 data with a URL to your logo.  Just open up the file with notepad to see the data.


You mean to open up the base64 file or template file?

And the folder, resource" is the only place image files are stored. Right?

Thanks.

Offline raybob

  • Moderator
  • Tireless poster
  • *****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: How to edit templates in FHFS.
« Reply #6 on: January 15, 2013, 12:08:44 AM »
1) Yes

2) Open the .base64 file.  This can contain either base64 image data or a URL to an external image.

3) Yes, all images are stored encoded in base64 format to be sent out as part of the webpage.

Offline bobf

  • Occasional poster
  • *
  • Posts: 10
    • View Profile
Re: How to edit templates in FHFS.
« Reply #7 on: February 18, 2014, 04:36:31 PM »
I've been trying to put my own logo in FHFS but I can't seem to figure out how. When I open the base64 image file in a text editor it's just a bunch of mumbo jumbo. I don't see any paths or anything that would be useful.

I've also tried to code my own image and rename the base64 file to a file name that's already in the /resources/images directory but it doesn't seem to do anything. I can't even break anything it seems!

I've never worked with base64 images before so any other help you can lend would be great. Thanks!

Offline raybob

  • Moderator
  • Tireless poster
  • *****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: How to edit templates in FHFS.
« Reply #8 on: February 18, 2014, 05:23:36 PM »
Simply replace all the mumbo jumbo in the .base64 file with a URL to an image you want to use. 

Offline bobf

  • Occasional poster
  • *
  • Posts: 10
    • View Profile
Re: How to edit templates in FHFS.
« Reply #9 on: February 19, 2014, 04:39:01 PM »
Can I use the local url path in Windows to an image?

I managed to break the main fhfs.png image but it's not showing up with the image I want it to. The fhfs image simply just goes away. Almost there...

Thanks for the help.

Offline bobf

  • Occasional poster
  • *
  • Posts: 10
    • View Profile
Re: How to edit templates in FHFS.
« Reply #10 on: February 19, 2014, 07:02:07 PM »
I got it to work with an image online but can I use a local image or does it have to be an url that's on the internet?

Thanks again.

Offline raybob

  • Moderator
  • Tireless poster
  • *****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: How to edit templates in FHFS.
« Reply #11 on: February 21, 2014, 05:14:21 AM »
It either has to be a URL on the internet or encoded base64 data.  Whatever is in that file will be sent directly to the client's browser, so it would not be able to open a local file on the server.